Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactored the generic addon

  • Loading branch information...
commit 9f255f542b755056147f62453978f595ce718c5e 1 parent 924dd85
@toedter authored
Showing with 49 additions and 49 deletions.
  1. +1 −1  com.toedter.e4.demo.contacts.javafx/contacts.product
  2. +2 −2 com.toedter.e4.demo.contacts.javafx/e4 Renderer JavaFX Contacts Demo (Clear).launch
  3. +1 −1  com.toedter.e4.demo.contacts.swing/contacts.product
  4. +1 −1  com.toedter.e4.demo.contacts.swt2/contacts.product
  5. +1 −1  com.toedter.e4.ui.workbench.addons.javafx/.project
  6. +1 −1  com.toedter.e4.ui.workbench.addons.javafx/META-INF/MANIFEST.MF
  7. +1 −1  com.toedter.e4.ui.workbench.addons.javafx/OSGI-INF/minMaxAddon.xml
  8. +1 −1  com.toedter.e4.ui.workbench.addons.javafx/plugin.xml
  9. +2 −2 ...toedter.e4.ui.workbench.addons.javafx/src/com/toedter/e4/ui/workbench/addons/javafx/minmax/MinMaxAddon.java
  10. +1 −1  com.toedter.e4.ui.workbench.addons.swing/.project
  11. +1 −1  com.toedter.e4.ui.workbench.addons.swing/META-INF/MANIFEST.MF
  12. +1 −1  com.toedter.e4.ui.workbench.addons.swing/OSGI-INF/minMaxAddon.xml
  13. +1 −1  com.toedter.e4.ui.workbench.addons.swing/plugin.xml
  14. +2 −2 com.toedter.e4.ui.workbench.addons.swing/src/com/toedter/e4/ui/workbench/addons/swing/minmax/MinMaxAddon.java
  15. +1 −1  com.toedter.e4.ui.workbench.addons.swt/.project
  16. +1 −1  com.toedter.e4.ui.workbench.addons.swt/META-INF/MANIFEST.MF
  17. +1 −1  com.toedter.e4.ui.workbench.addons.swt/OSGI-INF/minMaxAddon.xml
  18. +1 −1  com.toedter.e4.ui.workbench.addons.swt/plugin.xml
  19. +2 −2 com.toedter.e4.ui.workbench.addons.swt/src/com/toedter/e4/ui/workbench/addons/swt/minmax/MinMaxAddon.java
  20. +1 −1  com.toedter.e4.ui.workbench.addons/.project
  21. +4 −4 com.toedter.e4.ui.workbench.addons/META-INF/MANIFEST.MF
  22. +1 −1  com.toedter.e4.ui.workbench.addons/plugin.xml
  23. +6 −6 ...oedter.e4.ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/MinMaxProcessor.java
  24. +1 −1  ...e4.ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/minmax/FastViewHandler.java
  25. +8 −8 ...ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/minmax/GenericMinMaxAddon.java
  26. +1 −1  ...er.e4.ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/minmax/IMinMaxAddon.java
  27. +2 −2 ...i.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/minmax/ResetWindowsHandler.java
  28. +2 −2 ....e4.ui.workbench.addons/src/com/toedter/e4/ui/workbench/addons/{ → generic}/minmax/RestoreHandler.java
View
2  com.toedter.e4.demo.contacts.javafx/contacts.product
@@ -43,7 +43,7 @@
<plugin id="com.toedter.e4.demo.contacts.generic"/>
<plugin id="com.toedter.e4.demo.contacts.javafx"/>
<plugin id="com.toedter.e4.ui.controls.javafx"/>
- <plugin id="com.toedter.e4.ui.workbench.addons"/>
+ <plugin id="com.toedter.e4.ui.workbench.addons.generic"/>
<plugin id="com.toedter.e4.ui.workbench.addons.javafx"/>
<plugin id="com.toedter.e4.ui.workbench.generic"/>
<plugin id="com.toedter.e4.ui.workbench.javafx"/>
View
4 com.toedter.e4.demo.contacts.javafx/e4 Renderer JavaFX Contacts Demo (Clear).launch
@@ -20,8 +20,8 @@
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="com.toedter.e4.demo.contacts.javafx.product"/>
<stringAttribute key="productFile" value="\com.toedter.e4.demo.contacts.javafx\contacts.product"/>
-<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,javax.annotation@default:default,javax.inject@default:default,org.eclipse.emf.common@default:default,org.eclipse.emf.ecore.change@default:default,org.eclipse.emf.ecore.xmi@default:default,org.eclipse.emf.ecore@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.util@default:default,org.eclipse.osgi.services@default:default"/>
-<stringAttribute key="selected_workspace_plugins" value="at.bestsolution.efxclipse.runtime.application@default:default,at.bestsolution.efxclipse.runtime.databinding@default:default,at.bestsolution.efxclipse.runtime.di@default:default,at.bestsolution.efxclipse.runtime.javafx@default:default,at.bestsolution.efxclipse.runtime.osgi.util@default:default,at.bestsolution.efxclipse.runtime.osgi@default:false,at.bestsolution.efxclipse.runtime.panels@default:default,at.bestsolution.efxclipse.runtime.services@default:default,at.bestsolution.efxclipse.runtime.theme@default:default,at.bestsolution.efxclipse.runtime.workbench@default:default,com.toedter.e4.demo.contacts.generic@default:default,com.toedter.e4.demo.contacts.javafx@default:default,com.toedter.e4.ui.controls.javafx@default:default,com.toedter.e4.ui.workbench.addons.javafx@default:default,com.toedter.e4.ui.workbench.addons@default:default,com.toedter.e4.ui.workbench.generic@default:default,com.toedter.e4.ui.workbench.javafx@default:default,com.toedter.e4.ui.workbench.renderers.javafx@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.beans@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.e4.core.commands@default:default,org.eclipse.e4.core.contexts@default:default,org.eclipse.e4.core.di.extensions@default:default,org.eclipse.e4.core.di@default:default,org.eclipse.e4.core.services@default:default,org.eclipse.e4.ui.di@default:default,org.eclipse.e4.ui.model.workbench@default:default,org.eclipse.e4.ui.services@default:default,org.eclipse.e4.ui.workbench@default:default,org.eclipse.osgi@-1:true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.emf.ecore.xmi@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.common@default:default,org.eclipse.equinox.util@default:default,org.eclipse.emf.ecore@default:default,org.eclipse.emf.ecore.change@default:default,org.eclipse.equinox.event@default:default,org.eclipse.osgi.services@default:default,org.eclipse.emf.common@default:default,javax.inject@default:default,javax.annotation@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.ds@default:default,com.ibm.icu@default:default,org.eclipse.equinox.app@default:default,"/>
+<stringAttribute key="selected_workspace_plugins" value="org.eclipse.core.databinding.property@default:default,com.toedter.e4.demo.contacts.generic@default:default,org.eclipse.core.databinding@default:default,at.bestsolution.efxclipse.runtime.services@default:default,at.bestsolution.efxclipse.runtime.panels@default:default,com.toedter.e4.ui.workbench.javafx@default:default,org.eclipse.core.commands@default:default,org.eclipse.e4.ui.model.workbench@default:default,com.toedter.e4.ui.workbench.addons.javafx@default:default,at.bestsolution.efxclipse.runtime.databinding@default:default,com.toedter.e4.ui.controls.javafx@default:default,at.bestsolution.efxclipse.runtime.osgi@default:default,org.eclipse.e4.core.commands@default:default,com.toedter.e4.ui.workbench.generic@default:default,at.bestsolution.efxclipse.runtime.di@default:default,at.bestsolution.efxclipse.runtime.application@default:default,org.eclipse.e4.core.di.extensions@default:default,com.toedter.e4.ui.workbench.renderers.javafx@default:default,org.eclipse.e4.core.contexts@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.databinding.beans@default:default,org.eclipse.core.runtime.compatibility.registry@default:default,com.toedter.e4.demo.contacts.javafx@default:default,org.eclipse.core.runtime@default:default,at.bestsolution.efxclipse.runtime.osgi.util@default:default,org.eclipse.e4.ui.services@default:default,org.eclipse.e4.ui.di@default:default,org.eclipse.core.contenttype@default:default,com.toedter.e4.ui.workbench.addons.generic@default:default,org.eclipse.e4.core.di@default:default,at.bestsolution.efxclipse.runtime.javafx@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.osgi@default:default,at.bestsolution.efxclipse.runtime.theme@default:default,org.eclipse.e4.ui.workbench@default:default,org.eclipse.core.jobs@default:default,org.eclipse.e4.core.services@default:default,at.bestsolution.efxclipse.runtime.workbench@default:default,"/>
<booleanAttribute key="show_selected_only" value="false"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="false"/>
View
2  com.toedter.e4.demo.contacts.swing/contacts.product
@@ -33,7 +33,7 @@
<plugin id="com.ibm.icu"/>
<plugin id="com.toedter.e4.demo.contacts.generic"/>
<plugin id="com.toedter.e4.demo.contacts.swing"/>
- <plugin id="com.toedter.e4.ui.workbench.addons"/>
+ <plugin id="com.toedter.e4.ui.workbench.addons.generic"/>
<plugin id="com.toedter.e4.ui.workbench.addons.swing"/>
<plugin id="com.toedter.e4.ui.workbench.generic"/>
<plugin id="com.toedter.e4.ui.workbench.renderers.swing"/>
View
2  com.toedter.e4.demo.contacts.swt2/contacts.product
@@ -33,7 +33,7 @@
<plugin id="com.ibm.icu"/>
<plugin id="com.toedter.e4.demo.contacts.generic"/>
<plugin id="com.toedter.e4.demo.contacts.swt2"/>
- <plugin id="com.toedter.e4.ui.workbench.addons"/>
+ <plugin id="com.toedter.e4.ui.workbench.addons.generic"/>
<plugin id="com.toedter.e4.ui.workbench.addons.swt"/>
<plugin id="com.toedter.e4.ui.workbench.generic"/>
<plugin id="com.toedter.e4.ui.workbench.renderers.swt"/>
View
2  com.toedter.e4.ui.workbench.addons.javafx/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>com.toedter.e4.ui.workbench.addons.javafx</name>
+ <name>com.toedter.e4.ui.workbench.addons.generic.javafx</name>
<comment></comment>
<projects>
</projects>
View
2  com.toedter.e4.ui.workbench.addons.javafx/META-INF/MANIFEST.MF
@@ -14,7 +14,7 @@ Require-Bundle: javax.inject;bundle-version="1.0.0",
org.eclipse.e4.core.contexts;bundle-version="1.0.0",
org.eclipse.osgi;bundle-version="3.8.0",
org.eclipse.core.runtime;bundle-version="3.8.0",
- com.toedter.e4.ui.workbench.addons;bundle-version="0.1.0",
+ com.toedter.e4.ui.workbench.addons.generic;bundle-version="0.1.0",
at.bestsolution.efxclipse.runtime.javafx;bundle-version="2.0.0",
com.toedter.e4.ui.controls.javafx;bundle-version="0.1.0"
Service-Component: OSGI-INF/minMaxAddon.xml
View
2  com.toedter.e4.ui.workbench.addons.javafx/OSGI-INF/minMaxAddon.xml
@@ -2,6 +2,6 @@
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.toedter.e4.ui.workbench.javafx.minmaxaddon">
<implementation class="com.toedter.e4.ui.workbench.addons.javafx.minmax.MinMaxAddon"/>
<service>
- <provide interface="com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon"/>
+ <provide interface="com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon"/>
</service>
</scr:component>
View
2  com.toedter.e4.ui.workbench.addons.javafx/plugin.xml
@@ -7,7 +7,7 @@
point="org.eclipse.e4.workbench.model">
<processor
beforefragment="true"
- class="com.toedter.e4.ui.workbench.addons.MinMaxProcessor">
+ class="com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor">
</processor>
</extension>
</plugin>
View
4 ...dter.e4.ui.workbench.addons.javafx/src/com/toedter/e4/ui/workbench/addons/javafx/minmax/MinMaxAddon.java
@@ -15,8 +15,8 @@
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import com.toedter.e4.ui.controls.javafx.CTabPane;
-import com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon;
-import com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.GenericMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon;
@SuppressWarnings("restriction")
public class MinMaxAddon implements IMinMaxAddon {
View
2  com.toedter.e4.ui.workbench.addons.swing/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>com.toedter.e4.ui.workbench.addons.swing</name>
+ <name>com.toedter.e4.ui.workbench.addons.generic.swing</name>
<comment></comment>
<projects>
</projects>
View
2  com.toedter.e4.ui.workbench.addons.swing/META-INF/MANIFEST.MF
@@ -14,7 +14,7 @@ Require-Bundle: javax.inject;bundle-version="1.0.0",
org.eclipse.e4.core.contexts;bundle-version="1.0.0",
org.eclipse.osgi;bundle-version="3.8.0",
org.eclipse.core.runtime;bundle-version="3.8.0",
- com.toedter.e4.ui.workbench.addons;bundle-version="0.1.0",
+ com.toedter.e4.ui.workbench.addons.generic;bundle-version="0.1.0",
com.toedter.e4.ui.workbench.renderers.swing;bundle-version="0.1.0"
Service-Component: OSGI-INF/minMaxAddon.xml
Export-Package: com.toedter.e4.ui.workbench.addons.swing.minmax
View
2  com.toedter.e4.ui.workbench.addons.swing/OSGI-INF/minMaxAddon.xml
@@ -2,6 +2,6 @@
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.toedter.e4.ui.workbench.javafx.minmaxaddon">
<implementation class="com.toedter.e4.ui.workbench.addons.swing.minmax.MinMaxAddon"/>
<service>
- <provide interface="com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon"/>
+ <provide interface="com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon"/>
</service>
</scr:component>
View
2  com.toedter.e4.ui.workbench.addons.swing/plugin.xml
@@ -7,7 +7,7 @@
point="org.eclipse.e4.workbench.model">
<processor
beforefragment="true"
- class="com.toedter.e4.ui.workbench.addons.MinMaxProcessor">
+ class="com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor">
</processor>
</extension>
</plugin>
View
4 ...oedter.e4.ui.workbench.addons.swing/src/com/toedter/e4/ui/workbench/addons/swing/minmax/MinMaxAddon.java
@@ -14,8 +14,8 @@
import org.eclipse.e4.ui.model.application.ui.MUIElement;
-import com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon;
-import com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.GenericMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon;
import com.toedter.e4.ui.workbench.renderers.swing.controls.CTabbedPane;
@SuppressWarnings("restriction")
View
2  com.toedter.e4.ui.workbench.addons.swt/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>com.toedter.e4.ui.workbench.addons.swt</name>
+ <name>com.toedter.e4.ui.workbench.addons.generic.swt</name>
<comment></comment>
<projects>
</projects>
View
2  com.toedter.e4.ui.workbench.addons.swt/META-INF/MANIFEST.MF
@@ -14,7 +14,7 @@ Require-Bundle: javax.inject;bundle-version="1.0.0",
org.eclipse.e4.core.contexts;bundle-version="1.0.0",
org.eclipse.osgi;bundle-version="3.8.0",
org.eclipse.core.runtime;bundle-version="3.8.0",
- com.toedter.e4.ui.workbench.addons;bundle-version="0.1.0",
+ com.toedter.e4.ui.workbench.addons.generic;bundle-version="0.1.0",
org.eclipse.swt;bundle-version="3.8.0"
Service-Component: OSGI-INF/minMaxAddon.xml
Export-Package: com.toedter.e4.ui.workbench.addons.swt.minmax
View
2  com.toedter.e4.ui.workbench.addons.swt/OSGI-INF/minMaxAddon.xml
@@ -2,6 +2,6 @@
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.toedter.e4.ui.workbench.javafx.minmaxaddon">
<implementation class="com.toedter.e4.ui.workbench.addons.swt.minmax.MinMaxAddon"/>
<service>
- <provide interface="com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon"/>
+ <provide interface="com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon"/>
</service>
</scr:component>
View
2  com.toedter.e4.ui.workbench.addons.swt/plugin.xml
@@ -7,7 +7,7 @@
point="org.eclipse.e4.workbench.model">
<processor
beforefragment="true"
- class="com.toedter.e4.ui.workbench.addons.MinMaxProcessor">
+ class="com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor">
</processor>
</extension>
</plugin>
View
4 com.toedter.e4.ui.workbench.addons.swt/src/com/toedter/e4/ui/workbench/addons/swt/minmax/MinMaxAddon.java
@@ -19,8 +19,8 @@
import org.eclipse.swt.custom.CTabFolder2Listener;
import org.eclipse.swt.custom.CTabFolderEvent;
-import com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon;
-import com.toedter.e4.ui.workbench.addons.minmax.IMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.GenericMinMaxAddon;
+import com.toedter.e4.ui.workbench.addons.generic.minmax.IMinMaxAddon;
@SuppressWarnings("restriction")
public class MinMaxAddon implements IMinMaxAddon {
View
2  com.toedter.e4.ui.workbench.addons/.project
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>com.toedter.e4.ui.workbench.addons</name>
+ <name>com.toedter.e4.ui.workbench.addons.generic</name>
<comment></comment>
<projects>
</projects>
View
8 com.toedter.e4.ui.workbench.addons/META-INF/MANIFEST.MF
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: e4 workbench addons
-Bundle-SymbolicName: com.toedter.e4.ui.workbench.addons;singleton:=true
+Bundle-Name: e4 workbench generic addons
+Bundle-SymbolicName: com.toedter.e4.ui.workbench.addons.generic;singleton:=true
Bundle-Version: 0.1.0.qualifier
Bundle-Vendor: Kai Toedter
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
@@ -16,7 +16,7 @@ Require-Bundle: javax.inject;bundle-version="1.0.0",
org.eclipse.core.runtime;bundle-version="3.8.0",
com.toedter.e4.ui.workbench.generic;bundle-version="0.1.0",
org.eclipse.e4.core.commands;bundle-version="0.10.0"
-Export-Package: com.toedter.e4.ui.workbench.addons,
- com.toedter.e4.ui.workbench.addons.minmax
+Export-Package: com.toedter.e4.ui.workbench.addons.generic,
+ com.toedter.e4.ui.workbench.addons.generic.minmax
Bundle-Localization: plugin
View
2  com.toedter.e4.ui.workbench.addons/plugin.xml
@@ -7,7 +7,7 @@
point="org.eclipse.e4.workbench.model">
<processor
beforefragment="true"
- class="com.toedter.e4.ui.workbench.addons.MinMaxProcessor">
+ class="com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor">
</processor>
</extension>
</plugin>
View
12 ...edter/e4/ui/workbench/addons/MinMaxProcessor.java → .../ui/workbench/addons/generic/MinMaxProcessor.java
@@ -10,7 +10,7 @@
* Kai Toedter - initial API and implementation
******************************************************************************/
-package com.toedter.e4.ui.workbench.addons;
+package com.toedter.e4.ui.workbench.addons.generic;
import java.util.List;
@@ -28,11 +28,11 @@
@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$
+ private static final String BUNDLE_ID = "platform:/plugin/com.toedter.e4.ui.workbench.addons.generic"; //$NON-NLS-1$
+ private static final String BUNDLE_CLASS = "bundleclass://com.toedter.e4.ui.workbench.addons.generic"; //$NON-NLS-1$
public static final String GEN_MIN_MAX_CONTRIBUTION_URI = BUNDLE_CLASS
- + "/com.toedter.e4.ui.workbench.addons.minmax.GenericMinMaxAddon";
+ + "/com.toedter.e4.ui.workbench.addons.generic.minmax.GenericMinMaxAddon";
@Execute
void addMinMaxAddon(MApplication application) {
@@ -52,14 +52,14 @@ void addMinMaxAddon(MApplication application) {
application.getAddons().add(minMaxAddon);
MCommand resetWindowsCommand = MCommandsFactory.INSTANCE.createCommand();
- resetWindowsCommand.setElementId("com.toedter.e4.ui.workbench.addons.testCommand");
+ resetWindowsCommand.setElementId("com.toedter.e4.ui.workbench.addons.generic.testCommand");
resetWindowsCommand.setCommandName("testCommand");
resetWindowsCommand.setDescription("testCommand description");
application.getCommands().add(resetWindowsCommand);
MHandler resetWindowsHandler = MCommandsFactory.INSTANCE.createHandler();
resetWindowsHandler.setContributionURI(BUNDLE_CLASS
- + "/com.toedter.e4.ui.workbench.addons.minmax.ResetWindowsHandler");
+ + "/com.toedter.e4.ui.workbench.addons.generic.minmax.ResetWindowsHandler");
resetWindowsHandler.setCommand(resetWindowsCommand);
application.getHandlers().add(resetWindowsHandler);
View
2  ...4/ui/workbench/addons/minmax/FastViewHandler.java → ...kbench/addons/generic/minmax/FastViewHandler.java
@@ -1,4 +1,4 @@
-package com.toedter.e4.ui.workbench.addons.minmax;
+package com.toedter.e4.ui.workbench.addons.generic.minmax;
import org.eclipse.e4.core.di.annotations.Execute;
View
16 ...i/workbench/addons/minmax/GenericMinMaxAddon.java → ...nch/addons/generic/minmax/GenericMinMaxAddon.java
@@ -10,7 +10,7 @@
* Kai Toedter - initial API and implementation
******************************************************************************/
-package com.toedter.e4.ui.workbench.addons.minmax;
+package com.toedter.e4.ui.workbench.addons.generic.minmax;
import java.util.ArrayList;
import java.util.List;
@@ -48,7 +48,7 @@
@SuppressWarnings("restriction")
public class GenericMinMaxAddon {
- public static final String ADDONS_MINMAX_TRIM_STACK_ID = "com.toedter.e4.ui.workbench.addons.minmax.trimStackId";
+ public static final String ADDONS_MINMAX_TRIM_STACK_ID = "com.toedter.e4.ui.workbench.addons.generic.minmax.trimStackId";
static String ID_SUFFIX = "(minimized)"; //$NON-NLS-1$
@@ -328,13 +328,13 @@ private void createTrim(MUIElement element) {
trimStack.setElementId(trimId);
// MCommand command = MCommandsFactory.INSTANCE.createCommand();
- // command.setElementId("com.toedter.e4.ui.workbench.addons.minmax.restore");
+ // command.setElementId("com.toedter.e4.ui.workbench.addons.generic.minmax.restore");
// command.setCommandName("Restore Stack");
// command.setDescription("xxx");
// command.setContributorURI("kai");
//
// MHandler handler = MCommandsFactory.INSTANCE.createHandler();
- // handler.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons/com.toedter.e4.ui.workbench.addons.minmax.RestoreHandler");
+ // handler.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons.generic/com.toedter.e4.ui.workbench.addons.generic.minmax.RestoreHandler");
// handler.setCommand(command);
//
// MHandledToolItem toolItem =
@@ -345,7 +345,7 @@ private void createTrim(MUIElement element) {
// parameter.setName(ADDONS_MINMAX_TRIM_STACK_ID);
// parameter.setValue(element.getElementId());
// toolItem.getParameters().add(parameter);
- // toolItem.setIconURI("platform:/plugin/com.toedter.e4.ui.workbench.addons/icons/fastview_restore.gif");
+ // toolItem.setIconURI("platform:/plugin/com.toedter.e4.ui.workbench.addons.generic/icons/fastview_restore.gif");
// toolItem.setCommand(command);
//
// application.getHandlers().add(handler);
@@ -357,8 +357,8 @@ private void createTrim(MUIElement element) {
// MCommandsFactory.INSTANCE.createCommandParameter();
MDirectToolItem toolItem = MenuFactoryImpl.eINSTANCE.createDirectToolItem();
- toolItem.setIconURI("platform:/plugin/com.toedter.e4.ui.workbench.addons/icons/fastview_restore.gif");
- toolItem.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons/com.toedter.e4.ui.workbench.addons.minmax.RestoreHandler");
+ toolItem.setIconURI("platform:/plugin/com.toedter.e4.ui.workbench.addons.generic/icons/fastview_restore.gif");
+ toolItem.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons.generic/com.toedter.e4.ui.workbench.addons.generic.minmax.RestoreHandler");
toolItem.setContainerData(element.getElementId());
trimStack.getChildren().add(toolItem);
@@ -378,7 +378,7 @@ private void createTrim(MUIElement element) {
}
MDirectToolItem partItem = MenuFactoryImpl.eINSTANCE.createDirectToolItem();
- partItem.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons/com.toedter.e4.ui.workbench.addons.minmax.FastViewHandler");
+ partItem.setContributionURI("bundleclass://com.toedter.e4.ui.workbench.addons.generic/com.toedter.e4.ui.workbench.addons.generic.minmax.FastViewHandler");
MUILabel labelElement = getLabelElement(stackElement);
partItem.setIconURI(labelElement.getIconURI());
View
2  ...r/e4/ui/workbench/addons/minmax/IMinMaxAddon.java → ...workbench/addons/generic/minmax/IMinMaxAddon.java
@@ -10,7 +10,7 @@
* Kai Toedter - initial API and implementation
******************************************************************************/
-package com.toedter.e4.ui.workbench.addons.minmax;
+package com.toedter.e4.ui.workbench.addons.generic.minmax;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
View
4 .../workbench/addons/minmax/ResetWindowsHandler.java → ...ch/addons/generic/minmax/ResetWindowsHandler.java
@@ -1,4 +1,4 @@
-package com.toedter.e4.ui.workbench.addons.minmax;
+package com.toedter.e4.ui.workbench.addons.generic.minmax;
import java.util.List;
@@ -7,7 +7,7 @@
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
-import com.toedter.e4.ui.workbench.addons.MinMaxProcessor;
+import com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor;
@SuppressWarnings("restriction")
public class ResetWindowsHandler {
View
4 ...e4/ui/workbench/addons/minmax/RestoreHandler.java → ...rkbench/addons/generic/minmax/RestoreHandler.java
@@ -1,4 +1,4 @@
-package com.toedter.e4.ui.workbench.addons.minmax;
+package com.toedter.e4.ui.workbench.addons.generic.minmax;
import java.util.List;
@@ -17,7 +17,7 @@
import org.eclipse.e4.ui.workbench.IPresentationEngine;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
-import com.toedter.e4.ui.workbench.addons.MinMaxProcessor;
+import com.toedter.e4.ui.workbench.addons.generic.MinMaxProcessor;
import com.toedter.e4.ui.workbench.generic.IPresentationEngine2;
@SuppressWarnings("restriction")
Please sign in to comment.
Something went wrong with that request. Please try again.