Permalink
Browse files

for contribution URIs: platform:/plugin => bundleclass://

  • Loading branch information...
1 parent f646213 commit 610dbfe2727faf2bd7baf28ea7c9e1d865225210 @toedter committed Jan 30, 2012
Showing with 48 additions and 123 deletions.
  1. +13 −13 com.toedter.e4.demo.contacts.generic/Application.e4xmi
  2. +4 −4 ...emo.contacts.javafx/src/com/toedter/e4/demo/contacts/javafx/processors/ContributionProcessor.java
  3. +4 −4 ....demo.contacts.swing/src/com/toedter/e4/demo/contacts/swing/processors/ContributionProcessor.java
  4. +2 −2 com.toedter.e4.demo.contacts.swt/src/com/toedter/e4/demo/contacts/swt/processors/AddonProcessor.java
  5. +4 −4 ...r.e4.demo.contacts.swt/src/com/toedter/e4/demo/contacts/swt/processors/ContributionProcessor.java
  6. +4 −4 ....e4.demo.contacts.swt2/src/com/toedter/e4/demo/contacts/swt/processors/ContributionProcessor.java
  7. +1 −1 com.toedter.e4.tools.modeleditor/src/com/toedter/e4/tools/modeleditor/Processor.java
  8. +3 −2 com.toedter.e4.ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/MinMaxProcessor.java
  9. +2 −78 ...toedter.e4.ui.workbench.generic/src/com/toedter/e4/ui/workbench/generic/GenericE4Application.java
  10. +1 −1 ...er.e4.ui.workbench.generic/src/com/toedter/e4/ui/workbench/generic/GenericPresentationEngine.java
  11. +1 −1 ...edter.e4.ui.workbench.generic/src/com/toedter/e4/ui/workbench/generic/GenericRendererFactory.java
  12. +1 −1 com.toedter.e4.ui.workbench.javafx/src/com/toedter/e4/ui/workbench/javafx/JavaFXE4Application.java
  13. +1 −1 ...edter.e4.ui.workbench.javafx/src/com/toedter/e4/ui/workbench/javafx/JavaFXPresentationEngine.java
  14. +1 −1 ...ench.renderers.javafx/src/com/toedter/e4/ui/workbench/renderers/javafx/JavaFXRendererFactory.java
  15. +1 −1 ...rkbench.renderers.swing/src/com/toedter/e4/ui/workbench/renderers/swing/SwingRendererFactory.java
  16. +1 −1 ....ui.workbench.renderers.swt/src/com/toedter/e4/ui/workbench/renderers/swt/SWTRendererFactory.java
  17. +1 −1 com.toedter.e4.ui.workbench.swing/src/com/toedter/e4/ui/workbench/swing/SwingE4Application.java
  18. +1 −1 com.toedter.e4.ui.workbench.swing/src/com/toedter/e4/ui/workbench/swing/SwingPresentationEngine.java
  19. +1 −1 com.toedter.e4.ui.workbench.swt/src/com/toedter/e4/ui/workbench/swt/SWTE4Application.java
  20. +1 −1 com.toedter.e4.ui.workbench.swt/src/com/toedter/e4/ui/workbench/swt/SWTPresentationEngine.java
@@ -4,35 +4,35 @@
<tags>no-decoration#topdecoration.fxml</tags>
<children xsi:type="basic:PartSashContainer" xmi:id="_SeXUCu8EEd6FC9cDb6iV7g" elementId="_SeXUCu8EEd6FC9cDb6iV7g" horizontal="true">
<children xsi:type="basic:PartStack" xmi:id="_SeXUC-8EEd6FC9cDb6iV7g" elementId="_SeXUC-8EEd6FC9cDb6iV7g" containerData="30">
- <children xsi:type="basic:Part" xmi:id="_SeXUDO8EEd6FC9cDb6iV7g" elementId="part:listView" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.views.ListView" label="%contactsList" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/folder_user.png" tooltip="%contactsTooltip"/>
+ <children xsi:type="basic:Part" xmi:id="_SeXUDO8EEd6FC9cDb6iV7g" elementId="part:listView" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.views.ListView" label="%contactsList" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/folder_user.png" tooltip="%contactsTooltip"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_SeXUDe8EEd6FC9cDb6iV7g" elementId="com.toedter.e4.demo.contacts.generic.partstacks.second" containerData="70">
- <children xsi:type="basic:Part" xmi:id="DetailsView" elementId="part:detailsView" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.views.DetailsView" label="%partDetails" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/report_user.png" tooltip="%detailsTooltip"/>
+ <children xsi:type="basic:Part" xmi:id="DetailsView" elementId="part:detailsView" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.views.DetailsView" label="%partDetails" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/report_user.png" tooltip="%detailsTooltip"/>
</children>
</children>
<mainMenu xmi:id="menu:org.eclipse.ui.main.menu" elementId="menu:org.eclipse.ui.main.menu">
<children xsi:type="menu:Menu" xmi:id="_SeXUD-8EEd6FC9cDb6iV7g" elementId="_SeXUD-8EEd6FC9cDb6iV7g" label="%fileMenu">
<children xsi:type="menu:HandledMenuItem" xmi:id="_SeXUEO8EEd6FC9cDb6iV7g" elementId="_SeXUEO8EEd6FC9cDb6iV7g" label="%menuLabelSave" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/disk.png" command="contacts.save"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_SeXUEe8EEd6FC9cDb6iV7g" elementId="_SeXUEe8EEd6FC9cDb6iV7g" label="%menuLabelDelete" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/user_delete.png" command="contacts.delete"/>
- <children xsi:type="menu:DirectMenuItem" xmi:id="_SeXUEu8EEd6FC9cDb6iV7g" elementId="_SeXUEu8EEd6FC9cDb6iV7g" label="%menuLabelDirectExit" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.ExitHandler"/>
+ <children xsi:type="menu:DirectMenuItem" xmi:id="_SeXUEu8EEd6FC9cDb6iV7g" elementId="_SeXUEu8EEd6FC9cDb6iV7g" label="%menuLabelDirectExit" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.ExitHandler"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_SeXUE-8EEd6FC9cDb6iV7g" elementId="_SeXUE-8EEd6FC9cDb6iV7g" label="%menuLabelExit" command="contacts.exit"/>
</children>
</mainMenu>
<trimBars xmi:id="_SeXUAu8EEd6FC9cDb6iV7g" elementId="toolbar:org.eclipse.ui.main.toolbar">
<children xsi:type="menu:ToolBar" xmi:id="toolbar:org.eclipse.ui.main.toolbar" elementId="">
- <children xsi:type="menu:DirectToolItem" xmi:id="_SeXUBO8EEd6FC9cDb6iV7g" elementId="_SeXUBO8EEd6FC9cDb6iV7g" label="" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/disk.png" tooltip="%toolbarSaveTooltip" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SaveHandler"/>
+ <children xsi:type="menu:DirectToolItem" xmi:id="_SeXUBO8EEd6FC9cDb6iV7g" elementId="_SeXUBO8EEd6FC9cDb6iV7g" label="" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/disk.png" tooltip="%toolbarSaveTooltip" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SaveHandler"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_6RnVUE8FEeCyZoR8urPqaw" elementId="">
<children xsi:type="menu:HandledToolItem" xmi:id="_9UPfUBqZEeGFVucrmhucYg" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/user_add.png" tooltip="%menuLabelAdd" command="_I7WTwCDZEeGWLaml_QLjug"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_Vw4jUE8FEeCyZoR8urPqaw" label="" iconURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/icons/silk/user_delete.png" tooltip="%menuLabelDelete" command="contacts.delete"/>
</children>
</trimBars>
</children>
- <handlers xmi:id="_SeXUF-8EEd6FC9cDb6iV7g" elementId="handler:exit" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.ExitHandler" command="contacts.exit"/>
- <handlers xmi:id="_SeXUGO8EEd6FC9cDb6iV7g" elementId="_SeXUGO8EEd6FC9cDb6iV7g" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SaveHandler" command="contacts.save"/>
- <handlers xmi:id="_SeXUGe8EEd6FC9cDb6iV7g" elementId="_SeXUGe8EEd6FC9cDb6iV7g" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.DeleteContactHandler" command="contacts.delete"/>
- <handlers xmi:id="_SeXUG=8EEd6FC9cDb6iV7g" elementId="handler:switchTheme" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SwitchThemeHandler" command="contacts.switchTheme"/>
- <handlers xmi:id="_FfssQCDZEeGWLaml_QLjug" elementId="handler:add" contributionURI="platform:/plugin/com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.AddContactHandler" command="_I7WTwCDZEeGWLaml_QLjug"/>
+ <handlers xmi:id="_SeXUF-8EEd6FC9cDb6iV7g" elementId="handler:exit" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.ExitHandler" command="contacts.exit"/>
+ <handlers xmi:id="_SeXUGO8EEd6FC9cDb6iV7g" elementId="_SeXUGO8EEd6FC9cDb6iV7g" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SaveHandler" command="contacts.save"/>
+ <handlers xmi:id="_SeXUGe8EEd6FC9cDb6iV7g" elementId="_SeXUGe8EEd6FC9cDb6iV7g" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.DeleteContactHandler" command="contacts.delete"/>
+ <handlers xmi:id="_SeXUG=8EEd6FC9cDb6iV7g" elementId="handler:switchTheme" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.SwitchThemeHandler" command="contacts.switchTheme"/>
+ <handlers xmi:id="_FfssQCDZEeGWLaml_QLjug" elementId="handler:add" contributionURI="bundleclass://com.toedter.e4.demo.contacts.generic/com.toedter.e4.demo.contacts.generic.handlers.AddContactHandler" command="_I7WTwCDZEeGWLaml_QLjug"/>
<bindingTables xmi:id="_SeXUEO8EEd6FC9cDb6iV7x" elementId="_SeXUEO8EEd6FC9cDb6iV7x" bindingContext="_SeXUHO8EEd6FC9cDb6iV7y">
<bindings xmi:id="_SeXUHu8EEd6FC9cDb6iV7g" elementId="_SeXUHu8EEd6FC9cDb6iV7g" keySequence="CTRL+S" command="contacts.save"/>
<bindings xmi:id="_SeXUH-8EEd6FC9cDb6iV7g" elementId="_SeXUH-8EEd6FC9cDb6iV7g" keySequence="Delete" command="contacts.delete"/>
@@ -49,8 +49,8 @@
<parameters xmi:id="contacts.commands.switchtheme.themeid" elementId="contacts.commands.switchtheme.themeid" name="Theme Id" typeId="" optional="false"/>
</commands>
<commands xmi:id="_I7WTwCDZEeGWLaml_QLjug" elementId="contacts.add" commandName="%menuLabelAdd"/>
- <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXg" elementId="org.eclipse.e4.core.commands.service" contributionURI="platform:/plugin/org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
- <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXh" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="platform:/plugin/org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
- <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXj" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="platform:/plugin/org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
- <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXk" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="platform:/plugin/org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
+ <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXg" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
+ <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXh" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
+ <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXj" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
+ <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXk" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
</application:Application>
@@ -46,12 +46,12 @@
public void process() {
mainWindow.setLabel("e4 JavaFX Contacts Demo");
// mainWindow.setLabel("%windowTitle"); // does not work
- listView.setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.views.ListView");
+ listView.setContributionURI("bundleclass://com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.views.ListView");
detailsView
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.views.DetailsView");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.views.DetailsView");
switchThemeHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.handlers.SwitchThemeHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.handlers.SwitchThemeHandler");
exitHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.handlers.ExitHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.javafx/com.toedter.e4.demo.contacts.javafx.handlers.ExitHandler");
}
}
@@ -47,12 +47,12 @@ public void process() {
mainWindow.setLabel("e4 Swing Contacts Demo");
// mainWindow.setLabel("%windowTitle"); // does not work
- listView.setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.views.ListView");
+ listView.setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.views.ListView");
detailsView
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.views.DetailsView");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.views.DetailsView");
exitHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.handlers.ExitHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.handlers.ExitHandler");
switchThemeHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.handlers.SwitchThemeHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swing/com.toedter.e4.demo.contacts.swing.handlers.SwitchThemeHandler");
}
}
@@ -24,13 +24,13 @@ public void process(MApplication app) {
MAddon bindingServiceAddon = ApplicationFactoryImpl.eINSTANCE.createAddon();
bindingServiceAddon.setElementId("org.eclipse.e4.ui.bindings.service"); //$NON-NLS-1$
bindingServiceAddon
- .setContributionURI("platform:/plugin/org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"); //$NON-NLS-1$
+ .setContributionURI("bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"); //$NON-NLS-1$
app.getAddons().add(bindingServiceAddon);
MAddon bindingProcessingAddon = ApplicationFactoryImpl.eINSTANCE.createAddon();
bindingProcessingAddon.setElementId("org.eclipse.e4.ui.workbench.bindings.model"); //$NON-NLS-1$
bindingProcessingAddon
- .setContributionURI("platform:/plugin/org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"); //$NON-NLS-1$
+ .setContributionURI("bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"); //$NON-NLS-1$
app.getAddons().add(bindingProcessingAddon);
}
}
@@ -47,12 +47,12 @@ public void process() {
mainWindow.setLabel("e4 SWT Contacts Demo (with Original Rendering Engine)");
// mainWindow.setLabel("%windowTitle"); // does not work
- listView.setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.views.ListView");
+ listView.setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.views.ListView");
detailsView
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.views.DetailsView");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.views.DetailsView");
exitHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.handlers.ExitHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.handlers.ExitHandler");
switchThemeHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.handlers.SwitchThemeHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt/com.toedter.e4.demo.contacts.swt.handlers.SwitchThemeHandler");
}
}
@@ -47,12 +47,12 @@ public void process() {
mainWindow.setLabel("e4 SWT Contacts Demo (with New Rendering Engine)");
// mainWindow.setLabel("%windowTitle"); // does not work
- listView.setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.views.ListView");
+ listView.setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.views.ListView");
detailsView
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.views.DetailsView");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.views.DetailsView");
exitHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.handlers.ExitHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.handlers.ExitHandler");
switchThemeHandler
- .setContributionURI("platform:/plugin/com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.handlers.SwitchThemeHandler");
+ .setContributionURI("bundleclass://com.toedter.e4.demo.contacts.swt2/com.toedter.e4.demo.contacts.swt.handlers.SwitchThemeHandler");
}
}
@@ -43,7 +43,7 @@ public void process(MApplication application,
application.getCommands().add(command);
MHandler handler = MCommandsFactory.INSTANCE.createHandler();
- handler.setContributionURI("platform:/plugin/com.toedter.e4.tools.modeleditor/com.toedter.e4.tools.modeleditor.OpenModelEditorHandler");
+ handler.setContributionURI("bundleclass://com.toedter.e4.tools.modeleditor/com.toedter.e4.tools.modeleditor.OpenModelEditorHandler");
handler.setCommand(command);
application.getHandlers().add(handler);
@@ -29,6 +29,7 @@
@SuppressWarnings("restriction")
public class MinMaxProcessor {
private static final String BUNDLE_ID = "platform:/plugin/com.toedter.e4.ui.workbench.addons"; //$NON-NLS-1$
+ private static final String BUNDLE_CLASS = "bundleclass://com.toedter.e4.ui.workbench.addons"; //$NON-NLS-1$
@Execute
void addMinMaxAddon(MApplication application) {
@@ -44,7 +45,7 @@ void addMinMaxAddon(MApplication application) {
// Insert the addon into the system
MAddon minMaxAddon = ApplicationFactoryImpl.eINSTANCE.createAddon();
minMaxAddon.setElementId("GenericMinMaxAddon"); //$NON-NLS-1$
- minMaxAddon.setContributionURI(BUNDLE_ID + "/com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon"); //$NON-NLS-1$
+ minMaxAddon.setContributionURI(BUNDLE_CLASS + "/com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon"); //$NON-NLS-1$
application.getAddons().add(minMaxAddon);
MCommand resetWindowsCommand = MCommandsFactory.INSTANCE.createCommand();
@@ -54,7 +55,7 @@ void addMinMaxAddon(MApplication application) {
application.getCommands().add(resetWindowsCommand);
MHandler resetWindowsHandler = MCommandsFactory.INSTANCE.createHandler();
- resetWindowsHandler.setContributionURI(BUNDLE_ID
+ resetWindowsHandler.setContributionURI(BUNDLE_CLASS
+ "/com.toedter.e4.ui.workbench.addons.minmax.ResetWindowsHandler");
resetWindowsHandler.setCommand(resetWindowsCommand);
application.getHandlers().add(resetWindowsHandler);
Oops, something went wrong.

0 comments on commit 610dbfe

Please sign in to comment.