RTSDK : Hide build & flash menu in debug perspective
authordaeryong.park <bdragon.park@samsung.com>
Wed, 22 Feb 2017 09:02:27 +0000 (18:02 +0900)
committerHyeongseok Heo <harry.heo@samsung.com>
Thu, 23 Feb 2017 02:02:31 +0000 (11:02 +0900)
Change-Id: I59f658b6381febbee62708b42d1d5575f2e623d7
Signed-off-by: daeryong.park <bdragon.park@samsung.com>
rt-ide/tizen.rt.product.plugin/plugin.xml

index d2ba36b..430a131 100644 (file)
                   commandId="rtosBuild.commands.buildCommand"
                   mnemonic="S"
                   id="rtosBuild.menus.buildCommand">
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="org.tizen.rt.product.rt_perspective">
+                  </reference>
+               </visibleWhen>
             </command>
                        <command
                   commandId="rtosBuild.commands.flashCommand"
                   mnemonic="S"
                   id="rtosBuild.menus.flashCommand">
-            </command>            
+      <visibleWhen
+            checkEnabled="true">
+         <reference
+               definitionId="org.tizen.rt.product.rt_perspective">
+         </reference>
+      </visibleWhen>
+            </command>
          </menu>
       </menuContribution>
       
                   icon="icons/buildSample.gif"
                   tooltip="build rtos project"
                   id="rtosBuild.toolbars.buildCommand">
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="org.tizen.rt.product.rt_perspective">
+                  </reference>
+               </visibleWhen>
             </command>
             <command
                   commandId="rtosBuild.commands.flashCommand"
                   icon="icons/flashSample.gif"
                   tooltip="flash rtos project"
                   id="rtosBuild.toolbars.flsahCommand">
+               <visibleWhen
+                     checkEnabled="true">
+                  <reference
+                        definitionId="org.tizen.rt.product.rt_perspective">
+                  </reference>
+               </visibleWhen>
             </command>            
          </toolbar>
       </menuContribution>
       <image
             icon="icons/releng_gears.gif"
             id="org.tizen.rt.product.RtProjectImage"
-            natureId="org.tizen.rt.product.RtProjectNature">
+            natureId="org.tizen.rt.product.plugin.RtProjectNature">
       </image>
    </extension>
    <extension
             </and>
          </with>
       </definition>
+      <definition
+            id="org.tizen.rt.product.rt_perspective">
+         <with
+               variable="activeWorkbenchWindow.activePerspective">
+            <equals
+                  value="org.tizen.rt.ide.perspectives.TizenRT">
+            </equals>
+         </with>
+      </definition>
    </extension>
 </plugin>