Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-09-20 05:35:04 +0000
committerLars Vogel2020-09-22 07:24:24 +0000
commit56ac7400dc777c9f500a228608511ef6b58d3799 (patch)
tree8f7dda9011720a0a0e1487d6bea80e68a7291552
parent74ab2ee99d316c2a66d34b5f93a11b0c422b4d29 (diff)
downloadeclipse.pde.ui-56ac7400dc777c9f500a228608511ef6b58d3799.tar.gz
eclipse.pde.ui-56ac7400dc777c9f500a228608511ef6b58d3799.tar.xz
eclipse.pde.ui-56ac7400dc777c9f500a228608511ef6b58d3799.zip
Bug 550259 - Update IDE e4 command templates to remove menu / command /
handers if the plug-in is not present Mark menu / handler and command with persistState false to ensure that these elements are not persisted after shutdown. This way they will only be present if the plug-in exists. Change-Id: I13a2719067e6b6a5a10ae7866a2c36c76af371c3
-rw-r--r--ui/org.eclipse.pde.ui.templates/templates_3.5/E4Handler/fragment.e4xmi10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/org.eclipse.pde.ui.templates/templates_3.5/E4Handler/fragment.e4xmi b/ui/org.eclipse.pde.ui.templates/templates_3.5/E4Handler/fragment.e4xmi
index 17666f6a0b..1a922241e4 100644
--- a/ui/org.eclipse.pde.ui.templates/templates_3.5/E4Handler/fragment.e4xmi
+++ b/ui/org.eclipse.pde.ui.templates/templates_3.5/E4Handler/fragment.e4xmi
@@ -1,18 +1,24 @@
<?xml version="1.0" encoding="ASCII"?>
<fragment:ModelFragments xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:commands="http://www.eclipse.org/ui/2010/UIModel/application/commands" xmlns:fragment="http://www.eclipse.org/ui/2010/UIModel/fragment" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_BxaXACerEeWxCPrV0pAZQQ">
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_QqSikIrOEeW7h_qdP9N9fw" featurename="commands" parentElementId="xpath:/">
- <elements xsi:type="commands:Command" xmi:id="_UCYfwIrOEeW7h_qdP9N9fw" elementId="test.handler.helloWorldCommand" commandName="Hello World"/>
+ <elements xsi:type="commands:Command" xmi:id="_UCYfwIrOEeW7h_qdP9N9fw" elementId="test.handler.helloWorldCommand" commandName="Hello World">
+ <persistedState key="persistState" value="false"/>
+ </elements>
</fragments>
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_fW12kIrOEeW7h_qdP9N9fw" featurename="handlers" parentElementId="xpath:/">
- <elements xsi:type="commands:Handler" xmi:id="_k2L0IIrOEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.handler.0" contributionURI="bundleclass://$pluginId$/$packageName$.handlers.$className$" command="_UCYfwIrOEeW7h_qdP9N9fw"/>
+ <elements xsi:type="commands:Handler" xmi:id="_k2L0IIrOEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.handler.0" contributionURI="bundleclass://$pluginId$/$packageName$.handlers.$className$" command="_UCYfwIrOEeW7h_qdP9N9fw">
+ <persistedState key="persistState" value="false"/>
+ </elements>
</fragments>
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_pVgfIIrOEeW7h_qdP9N9fw" featurename="menuContributions" parentElementId="xpath:/">
<elements xsi:type="menu:MenuContribution" xmi:id="_tSwX0IrOEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.menucontribution.0" positionInParent="after=additions" parentId="org.eclipse.ui.main.menu">
+ <persistedState key="persistState" value="false"/>
<children xsi:type="menu:Menu" xmi:id="_wg9ZMIrOEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.menu.e4handlers" label="E4 Handlers">
<children xsi:type="menu:HandledMenuItem" xmi:id="_2LM_MIrOEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.handledmenuitem." label="" iconURI="platform:/plugin/$pluginId$/icons/Sample.png" command="_UCYfwIrOEeW7h_qdP9N9fw"/>
</children>
</elements>
<elements xsi:type="menu:MenuContribution" xmi:id="_BducUIrPEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.menucontribution.1" positionInParent="after=additions" parentId="popup">
+ <persistedState key="persistState" value="false"/>
<children xsi:type="menu:Menu" xmi:id="_Dtii0IrPEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.menu.e4handlers" label="E4 Handlers" iconURI="platform:/plugin/$pluginId$/icons/Sample.png">
<children xsi:type="menu:HandledMenuItem" xmi:id="_Dtii0YrPEeW7h_qdP9N9fw" elementId="org.eclipse.pde.ui.templates.handledmenuitem." label="" iconURI="platform:/plugin/$pluginId$/icons/Sample.png" command="_UCYfwIrOEeW7h_qdP9N9fw"/>
</children>

Back to the top