[Title] Hidden unnecessary context run/debug menu of project
authordonghyuk.yang <donghyuk.yang@samsung.com>
Sat, 17 Nov 2012 10:33:01 +0000 (19:33 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Sat, 17 Nov 2012 10:33:01 +0000 (19:33 +0900)
org.tizen.nativeplatform/OSGI-INF/l10n/bundle.properties
org.tizen.nativeplatform/plugin.xml

index 1bcf689..acc330b 100644 (file)
@@ -5,4 +5,14 @@ org.tizen.nativeplatform.proxyconfig.label=HTTP Proxy
 org.tizen.nativeplatform.password.label=Password
 org.tizen.nativeplatform.page.name=Platform
 
-view.rootstrap = Rootstrap View
\ No newline at end of file
+view.rootstrap = Rootstrap View
+
+activity.description = Popup UI
+activity.name.2 = Popup UI
+activity.description.0 = Launch UI elements from CDT
+activity.name.3 = CDT Launch UI Elements
+activity.description.1 = ToolChain Editor Property Page
+activity.name.4 = CDT ToolChain Editor Page Elements
+activity.description.2 = Wizard UI
+activity.name.5 = Wizard UI
+
index 6e8ad90..61060b7 100644 (file)
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach"
             name="Tizen Platform Project - Attach"
             public="true"/>
-
+               <!--
         <launchConfigurationType
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore"
             name="Tizen Platform Project - Coredump"
             public="true"/>
+               -->            
     </extension>
 
     <extension
             sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
             type="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach"/>
-
+               <!--
         <launchDelegate
             delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"
             sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"
             type="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore"/>
+               -->            
     </extension>
 
     <extension
             <associatedDelegate delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForAttach"/>
         </tab>
 
+               <!--
         <tab
             id="org.tizen.nativeplatform.launch.ui.TizenDebianMainCoreTab"
             group="org.tizen.nativeplatform.launch.ui.TizenDebianLaunchConfigurationForCoreTabGroup"
             class="org.tizen.nativeplatform.launch.ui.TizenDebianMainCoreTab">
             <associatedDelegate delegate="org.tizen.nativeplatform.launch.TizenDebianLaunchDelegateForCore"/>
         </tab>
+        -->
     </extension>
     
     <extension
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForAttach">
         </configurationType>
         </shortcut>
-
+               <!--
         <shortcut
             label="Tizen Platform Project - Coredump"
             icon="icons/Tizen_Custom_Debian_ConfigurationType_Image_Core.gif"
             id="org.tizen.nativeplatform.launch.TizenDebianLaunchConfigurationTypeForCore">
         </configurationType>
         </shortcut>
+        -->
     </extension>
 <!-- launching & debugging end -->
 
             parentId="org.eclipse.ui.contexts.window">
       </context>
        </extension>
+       
+       <extension
+        point="org.eclipse.ui.activities">
+        <!-- disable rhino lauch shortcuts & wst launch shortcut -->
+        <activity
+            name="%activity.name.2"
+            description="%activity.description"
+            id="org.tizen.web.launch.DisablePopupMenu">
+        <enabledWhen>
+            <with variable="activeWorkbenchWindow.activePerspective">
+                               <not>
+                                       <equals value="org.tizen.nativeplatform.perspective"/>
+                               </not>
+            </with>
+        </enabledWhen>
+        </activity>
+        
+        <activity
+            name="%activity.name.3"
+            description="%activity.description.0"
+            id="org.tizen.nativeapp.DisableCDTLaunchUIActivity">
+
+            <enabledWhen>
+                <with variable="activeWorkbenchWindow.activePerspective">
+                                       <not>
+                                               <equals value="org.tizen.nativeplatform.perspective"/>
+                                       </not>                   
+                </with>
+            </enabledWhen>
+        </activity>
+        
+        <activity
+              description="%activity.description.1"
+              id="org.tizen.nativeapp.DisableCDTToolChainEditorPageActivity"
+              name="%activity.name.4">
+            <enabledWhen>
+                <with variable="activeWorkbenchWindow.activePerspective">
+                                       <not>
+                                               <equals value="org.tizen.nativeplatform.perspective"/>
+                                       </not>
+                </with>
+            </enabledWhen>
+        </activity>
+        
+        <activity
+            name="%activity.name.5"
+            description="%activity.description.2"
+            id="org.tizen.web.DisableWizardsActivity">
+            <enabledWhen>
+                <with variable="activeWorkbenchWindow.activePerspective">
+                                       <not>
+                                               <equals value="org.tizen.nativeplatform.perspective"/>
+                                       </not>
+                </with>
+            </enabledWhen>
+        </activity>
+    </extension>
+       
 <!-- package manager end -->
 </plugin>