diff options
| author | Lars Vogel | 2014-01-29 17:36:38 +0000 |
|---|---|---|
| committer | Lars Vogel | 2014-03-17 21:47:51 +0000 |
| commit | 2ce422edf938b3ae7040a725c2a131d4895d1250 (patch) | |
| tree | 765cbb224b01c742ccdfa8811f4349ceee216438 | |
| parent | 5f7ffa8824e60cf7bd06c984bb193df337b4424e (diff) | |
| download | eclipse.platform.ui-2ce422edf938b3ae7040a725c2a131d4895d1250.tar.gz eclipse.platform.ui-2ce422edf938b3ae7040a725c2a131d4895d1250.tar.xz eclipse.platform.ui-2ce422edf938b3ae7040a725c2a131d4895d1250.zip | |
Bug 403420 - Remove org.eclipse.e4.ui.model.workbench.edit from
eclipse.platform.ui
Change-Id: I4b06077a7df9c315c4867072f5c14f24612d9194
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
558 files changed, 0 insertions, 19285 deletions
diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.classpath b/bundles/org.eclipse.e4.ui.model.workbench.edit/.classpath deleted file mode 100644 index 304e86186aa..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.project b/bundles/org.eclipse.e4.ui.model.workbench.edit/.project deleted file mode 100644 index f79ef8d1a46..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.e4.ui.model.workbench.edit</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - </natures> -</projectDescription> diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.core.runtime.prefs b/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.core.runtime.prefs deleted file mode 100644 index c522e1f4ae2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.core.runtime.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1
-line.separator=\n
diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 2554c5c820d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -#Tue Jun 01 15:18:56 EDT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 3eb5488fdf3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,6 +0,0 @@ -#Tue Jun 01 17:27:07 EDT 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=; -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.staticondemandthreshold=99 diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.api.tools.prefs b/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.api.tools.prefs deleted file mode 100644 index a09ec9c2c71..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.api.tools.prefs +++ /dev/null @@ -1,97 +0,0 @@ -ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error -ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error -ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error -API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error -API_USE_SCAN_FIELD_SEVERITY=Error -API_USE_SCAN_METHOD_SEVERITY=Error -API_USE_SCAN_TYPE_SEVERITY=Error -CLASS_ELEMENT_TYPE_ADDED_METHOD=Error -CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error -CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error -CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error -CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error -ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error -ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error -ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -FIELD_ELEMENT_TYPE_ADDED_VALUE=Error -FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error -FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error -FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error -FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error -ILLEGAL_EXTEND=Warning -ILLEGAL_IMPLEMENT=Warning -ILLEGAL_INSTANTIATE=Warning -ILLEGAL_OVERRIDE=Warning -ILLEGAL_REFERENCE=Warning -INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error -INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error -INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error -INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error -INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error -INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error -INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -INVALID_JAVADOC_TAG=Warning -INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Error -LEAK_EXTEND=Warning -LEAK_FIELD_DECL=Warning -LEAK_IMPLEMENT=Warning -LEAK_METHOD_PARAM=Warning -LEAK_METHOD_RETURN_TYPE=Warning -METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error -METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error -METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error -METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error -METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error -METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error -METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error -MISSING_EE_DESCRIPTIONS=Warning -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error -TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error -UNUSED_PROBLEM_FILTERS=Warning -automatically_removed_unused_problem_filters=false -eclipse.preferences.version=1 -incompatible_api_component_version=Error -incompatible_api_component_version_include_major_without_breaking_change=Disabled -incompatible_api_component_version_include_minor_without_api_change=Disabled -invalid_since_tag_version=Error -malformed_since_tag=Error -missing_since_tag=Error -report_api_breakage_when_major_version_incremented=Disabled -report_resolution_errors_api_component=Warning diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 2ce50474bb3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,32 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=1 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=1 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=1 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.not-externalized-att=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.ui.model.workbench.edit/META-INF/MANIFEST.MF deleted file mode 100644 index 2bb2fc614c2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,25 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.e4.ui.model.workbench.edit;singleton:=true -Bundle-Version: 0.12.0.qualifier -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin$Implementation -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Export-Package: org.eclipse.e4.ui.model.application.commands.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.descriptor.basic.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.ui.advanced.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.ui.basic.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.ui.menu.provider;x-internal:=true, - org.eclipse.e4.ui.model.application.ui.provider;x-internal:=true, - org.eclipse.e4.ui.model.fragment.provider;x-internal:=true -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)", - org.eclipse.e4.ui.model.workbench;bundle-version="0.10.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="[2.6.0,3.0.0)";visibility:=reexport, - org.eclipse.e4.core.services;bundle-version="0.9.1", - org.eclipse.e4.core.contexts;bundle-version="1.0.0", - org.eclipse.e4.core.di;bundle-version="1.1.0" -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/about.html b/bundles/org.eclipse.e4.ui.model.workbench.edit/about.html deleted file mode 100644 index 3ce4e7e75bf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> -<title>About</title> -</head> -<body lang="EN-US"> -<h2>About This Content</h2> - -<p>November 20, 2008</p> -<h3>License</h3> - -<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. -For purposes of the EPL, "Program" will mean the Content.</p> - -<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p> - -</body> -</html>
\ No newline at end of file diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/build.properties b/bundles/org.eclipse.e4.ui.model.workbench.edit/build.properties deleted file mode 100644 index efe396ec210..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/build.properties +++ /dev/null @@ -1,28 +0,0 @@ -############################################################################### -# Copyright (c) 2013 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -# Copyright (c) 2008 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation - -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html -jars.compile.order = . -source.. = src/ -output.. = bin/ diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/forceQualifierUpdate.txt b/bundles/org.eclipse.e4.ui.model.workbench.edit/forceQualifierUpdate.txt deleted file mode 100644 index 56f1032a8a4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/forceQualifierUpdate.txt +++ /dev/null @@ -1,2 +0,0 @@ -# To force a version qualifier update add the bug here -Bug 403352 - Update all parent versions to match our build stream diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Addon.gif Binary files differdeleted file mode 100644 index ab7abfd64fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Application.gif Binary files differdeleted file mode 100644 index aa1863626cf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Area.gif Binary files differdeleted file mode 100644 index ceae5afb676..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingContext.gif Binary files differdeleted file mode 100644 index d553a7a5165..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingTable.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingTable.gif Binary files differdeleted file mode 100644 index 62e1e1aeb81..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_BindingTable.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Category.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Category.gif Binary files differdeleted file mode 100644 index dad7ecb700f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Category.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Command.gif Binary files differdeleted file mode 100644 index aeba3686951..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CommandParameter.gif Binary files differdeleted file mode 100644 index a38f9aec748..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CoreExpression.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CoreExpression.gif Binary files differdeleted file mode 100644 index b7364612037..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_CoreExpression.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 296fdb457be..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectToolItem.gif Binary files differdeleted file mode 100644 index 3159bcce48a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 5766979ace0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledToolItem.gif Binary files differdeleted file mode 100644 index 5b6f7bd4d41..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Handler.gif Binary files differdeleted file mode 100644 index d9593bd0d14..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_InputPart.gif Binary files differdeleted file mode 100644 index 6dffd43dc6c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_KeyBinding.gif Binary files differdeleted file mode 100644 index ceae5afb676..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Menu.gif Binary files differdeleted file mode 100644 index 1ded75de0c5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuContribution.gif Binary files differdeleted file mode 100644 index 4b0d2e1ace8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuSeparator.gif Binary files differdeleted file mode 100644 index 134c8fd89ef..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenu.gif Binary files differdeleted file mode 100644 index 1ded75de0c5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuItem.gif Binary files differdeleted file mode 100644 index 52a37bad328..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuSeparator.gif Binary files differdeleted file mode 100644 index 134c8fd89ef..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueMenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueToolItem.gif Binary files differdeleted file mode 100644 index 7943912208c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_OpaqueToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Parameter.gif Binary files differdeleted file mode 100644 index d021963654e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Part.gif Binary files differdeleted file mode 100644 index a86f915621e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartDescriptor.gif Binary files differdeleted file mode 100644 index dcc8a06c4ab..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartSashContainer.gif Binary files differdeleted file mode 100644 index c4bac7155ca..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartStack.gif Binary files differdeleted file mode 100644 index da8415c3c76..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Perspective.gif Binary files differdeleted file mode 100644 index 5a0697e635e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PerspectiveStack.gif Binary files differdeleted file mode 100644 index f7c61c23bbd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Placeholder.gif Binary files differdeleted file mode 100644 index 8b750f7b970..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PopupMenu.gif Binary files differdeleted file mode 100644 index 8b750f7b970..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenu.gif Binary files differdeleted file mode 100644 index 6dffd43dc6c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index 19ce4385366..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 296fdb457be..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBar.gif Binary files differdeleted file mode 100644 index 40d0cddf777..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarContribution.gif Binary files differdeleted file mode 100644 index ab7abfd64fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 1787dca5d72..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolControl.gif Binary files differdeleted file mode 100644 index be505f92e0c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimBar.gif Binary files differdeleted file mode 100644 index dcc8a06c4ab..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimContribution.gif Binary files differdeleted file mode 100644 index ab7abfd64fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimmedWindow.gif Binary files differdeleted file mode 100644 index fb66338ebff..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Window.gif Binary files differdeleted file mode 100644 index 013290dbffd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_clonableSnippets_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_persistedState_StringToStringMap.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_persistedState_StringToStringMap.gif Binary files differdeleted file mode 100644 index 40d0cddf777..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplicationElement_persistedState_StringToStringMap.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_addons_Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_addons_Addon.gif Binary files differdeleted file mode 100644 index ed645c34d5a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_addons_Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_categories_Category.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_categories_Category.gif Binary files differdeleted file mode 100644 index 2e2932fd765..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_categories_Category.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_Command.gif Binary files differdeleted file mode 100644 index 2de4789c272..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_TestHarness.gif Binary files differdeleted file mode 100644 index df3eebc9432..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateApplication_commands_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingContext_children_BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingContext_children_BindingContext.gif Binary files differdeleted file mode 100644 index 09741e808c9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingContext_children_BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingTable_bindings_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingTable_bindings_KeyBinding.gif Binary files differdeleted file mode 100644 index 845de0f9bd8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateBindingTable_bindings_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateCommand_parameters_CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateCommand_parameters_CommandParameter.gif Binary files differdeleted file mode 100644 index 43bee183bc2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateCommand_parameters_CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateContext_properties_StringToStringMap.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateContext_properties_StringToStringMap.gif Binary files differdeleted file mode 100644 index 57d043b4f2d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateContext_properties_StringToStringMap.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Application.gif Binary files differdeleted file mode 100644 index a2dd68e660a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Area.gif Binary files differdeleted file mode 100644 index a36743b171e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 9fcf2c77902..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectToolItem.gif Binary files differdeleted file mode 100644 index ac071eed977..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DynamicMenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DynamicMenuContribution.gif Binary files differdeleted file mode 100644 index 4f1420c5598..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_DynamicMenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Editor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Editor.gif Binary files differdeleted file mode 100644 index 92d407e4c4a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Editor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledItem.gif Binary files differdeleted file mode 100644 index a32a7b54134..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 68005ae0cc1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledToolItem.gif Binary files differdeleted file mode 100644 index 07b0fd98951..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_InputPart.gif Binary files differdeleted file mode 100644 index 86d7811ddcf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Item.gif Binary files differdeleted file mode 100644 index c022715faf4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MArea.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MArea.gif Binary files differdeleted file mode 100644 index 6baa8a5a3b7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MArea.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Menu.gif Binary files differdeleted file mode 100644 index b067e51fccb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuContribution.gif Binary files differdeleted file mode 100644 index e88df1ce2bd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuItem.gif Binary files differdeleted file mode 100644 index 28de654b291..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuSeparator.gif Binary files differdeleted file mode 100644 index 0d557467a1b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenu.gif Binary files differdeleted file mode 100644 index b067e51fccb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuItem.gif Binary files differdeleted file mode 100644 index 28de654b291..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuSeparator.gif Binary files differdeleted file mode 100644 index 0d557467a1b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueMenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueToolItem.gif Binary files differdeleted file mode 100644 index e0a45416a60..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_OpaqueToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Part.gif Binary files differdeleted file mode 100644 index 0a9ad1c7ea8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartDescriptor.gif Binary files differdeleted file mode 100644 index 5fe40c460d2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartSashContainer.gif Binary files differdeleted file mode 100644 index 3891882f907..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartStack.gif Binary files differdeleted file mode 100644 index 1e0e0f326f8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Perspective.gif Binary files differdeleted file mode 100644 index 88d8844103d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PerspectiveStack.gif Binary files differdeleted file mode 100644 index bee2a075173..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Placeholder.gif Binary files differdeleted file mode 100644 index 08f15c5851e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PopupMenu.gif Binary files differdeleted file mode 100644 index 08f15c5851e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenu.gif Binary files differdeleted file mode 100644 index 86d7811ddcf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index a32a7b54134..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 9fcf2c77902..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_SaveablePart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_SaveablePart.gif Binary files differdeleted file mode 100644 index b067e51fccb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_SaveablePart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_StackElement.gif Binary files differdeleted file mode 100644 index 08f15c5851e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TestHarness.gif Binary files differdeleted file mode 100644 index a2dd68e660a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBar.gif Binary files differdeleted file mode 100644 index f66fdd6f684..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContribution.gif Binary files differdeleted file mode 100644 index 91444988c4e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContributions.gif Binary files differdeleted file mode 100644 index 06250be4d48..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 0cf27b2923f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolControl.gif Binary files differdeleted file mode 100644 index de6e628c932..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolItem.gif Binary files differdeleted file mode 100644 index e0a45416a60..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_ToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimBar.gif Binary files differdeleted file mode 100644 index 5fe40c460d2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContainer.gif Binary files differdeleted file mode 100644 index 09b55686f56..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContribution.gif Binary files differdeleted file mode 100644 index 91444988c4e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContributions.gif Binary files differdeleted file mode 100644 index 06250be4d48..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimedPartContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimedPartContainer.gif Binary files differdeleted file mode 100644 index 7b652ac0ce4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimedPartContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 464f0930743..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Window.gif Binary files differdeleted file mode 100644 index a3037614eef..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_WindowTrim.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_WindowTrim.gif Binary files differdeleted file mode 100644 index ac071eed977..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateElementContainer_children_WindowTrim.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_Parameter.gif Binary files differdeleted file mode 100644 index 542f33aab83..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_TestHarness.gif Binary files differdeleted file mode 100644 index b0dbd48f304..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateHandledItem_parameters_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_Parameter.gif Binary files differdeleted file mode 100644 index 6fc892d00e3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_TestHarness.gif Binary files differdeleted file mode 100644 index f0666f7248b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateKeyBinding_parameters_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateMenuContributions_menuContributions_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateMenuContributions_menuContributions_MenuContribution.gif Binary files differdeleted file mode 100644 index ab255f3d573..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateMenuContributions_menuContributions_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_bindings_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_bindings_KeyBinding.gif Binary files differdeleted file mode 100644 index d0db396817a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_bindings_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Application.gif Binary files differdeleted file mode 100644 index 6fe84d75448..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 5ef9a94e8da..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectToolItem.gif Binary files differdeleted file mode 100644 index 618a818c271..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Editor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Editor.gif Binary files differdeleted file mode 100644 index 5e822cdd7dc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Editor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledItem.gif Binary files differdeleted file mode 100644 index 6f8b380a87e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 083f29cfd45..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledToolItem.gif Binary files differdeleted file mode 100644 index 08d0c499843..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_InputPart.gif Binary files differdeleted file mode 100644 index 5a340d5744a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Item.gif Binary files differdeleted file mode 100644 index a6753909aba..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Menu.gif Binary files differdeleted file mode 100644 index dac4138ca01..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuContribution.gif Binary files differdeleted file mode 100644 index 6b99a7f3dc0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuItem.gif Binary files differdeleted file mode 100644 index fe708946d58..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuSeparator.gif Binary files differdeleted file mode 100644 index 52d5d6813b7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Part.gif Binary files differdeleted file mode 100644 index 8e46df1be82..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartDescriptor.gif Binary files differdeleted file mode 100644 index a44d89bc600..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartSashContainer.gif Binary files differdeleted file mode 100644 index c45d7459f2a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartStack.gif Binary files differdeleted file mode 100644 index f93c92d061a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Perspective.gif Binary files differdeleted file mode 100644 index f08356ef9bb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PerspectiveStack.gif Binary files differdeleted file mode 100644 index da5a15f5c5e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Placeholder.gif Binary files differdeleted file mode 100644 index 7605c6b00db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PopupMenu.gif Binary files differdeleted file mode 100644 index 7605c6b00db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedMenu.gif Binary files differdeleted file mode 100644 index 5a340d5744a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 5ef9a94e8da..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_SaveablePart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_SaveablePart.gif Binary files differdeleted file mode 100644 index dac4138ca01..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_SaveablePart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_StackElement.gif Binary files differdeleted file mode 100644 index 7605c6b00db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TestHarness.gif Binary files differdeleted file mode 100644 index 6fe84d75448..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBar.gif Binary files differdeleted file mode 100644 index 20f19ea9f65..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContribution.gif Binary files differdeleted file mode 100644 index bbf242da6a9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContributions.gif Binary files differdeleted file mode 100644 index d3effc1f01a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index dea9e2d9379..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolControl.gif Binary files differdeleted file mode 100644 index 2fc02f8496d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolItem.gif Binary files differdeleted file mode 100644 index 628ff3f4312..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_ToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimBar.gif Binary files differdeleted file mode 100644 index a44d89bc600..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContainer.gif Binary files differdeleted file mode 100644 index d193bf30f4e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContribution.gif Binary files differdeleted file mode 100644 index bbf242da6a9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContributions.gif Binary files differdeleted file mode 100644 index d3effc1f01a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimedPartContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimedPartContainer.gif Binary files differdeleted file mode 100644 index f0846fb5af6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimedPartContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimmedWindow.gif Binary files differdeleted file mode 100644 index a885bb892a0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Window.gif Binary files differdeleted file mode 100644 index 446da01cb74..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_WindowTrim.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_WindowTrim.gif Binary files differdeleted file mode 100644 index 618a818c271..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_children_WindowTrim.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_Command.gif Binary files differdeleted file mode 100644 index 2249611ef7c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_TestHarness.gif Binary files differdeleted file mode 100644 index 6fe84d75448..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_commands_TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_handlers_Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_handlers_Handler.gif Binary files differdeleted file mode 100644 index 83775d08f5d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponent_handlers_Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_components_ModelComponent.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_components_ModelComponent.gif Binary files differdeleted file mode 100644 index daa2b9d19cf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_components_ModelComponent.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Addon.gif Binary files differdeleted file mode 100644 index f2b0a1e0745..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Application.gif Binary files differdeleted file mode 100644 index 1b27a1e766e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingContext.gif Binary files differdeleted file mode 100644 index d8233b0ffd4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingTable.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingTable.gif Binary files differdeleted file mode 100644 index 7387309112e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_BindingTable.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Command.gif Binary files differdeleted file mode 100644 index 8cd9cfa90b9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_CommandParameter.gif Binary files differdeleted file mode 100644 index 14bbb4b8b19..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectMenuItem.gif Binary files differdeleted file mode 100644 index dac0ebb0d01..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectToolItem.gif Binary files differdeleted file mode 100644 index 92c6e53c956..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledItem.gif Binary files differdeleted file mode 100644 index 34d140b0efd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledMenuItem.gif Binary files differdeleted file mode 100644 index a12f58d3e5c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledToolItem.gif Binary files differdeleted file mode 100644 index d4964909f5d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Handler.gif Binary files differdeleted file mode 100644 index 96a3cb79d20..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_InputPart.gif Binary files differdeleted file mode 100644 index 84d142daee9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Item.gif Binary files differdeleted file mode 100644 index 9e34a5327b3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_KeyBinding.gif Binary files differdeleted file mode 100644 index fac7c9b1014..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Menu.gif Binary files differdeleted file mode 100644 index c970d5d34f9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuContribution.gif Binary files differdeleted file mode 100644 index 05f18cc43c9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuSeparator.gif Binary files differdeleted file mode 100644 index c5686b5c011..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ModelComponent.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ModelComponent.gif Binary files differdeleted file mode 100644 index daa2b9d19cf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ModelComponent.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Parameter.gif Binary files differdeleted file mode 100644 index 7f8e88eb17b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Part.gif Binary files differdeleted file mode 100644 index 52a6a5bec34..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartDescriptor.gif Binary files differdeleted file mode 100644 index 845e9f477fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartSashContainer.gif Binary files differdeleted file mode 100644 index 07b82efc3d7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartStack.gif Binary files differdeleted file mode 100644 index 9a3eff95131..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Perspective.gif Binary files differdeleted file mode 100644 index 95a524524a9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PerspectiveStack.gif Binary files differdeleted file mode 100644 index b6f318a0925..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Placeholder.gif Binary files differdeleted file mode 100644 index b4db3ff10e9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PopupMenu.gif Binary files differdeleted file mode 100644 index b4db3ff10e9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedMenu.gif Binary files differdeleted file mode 100644 index 84d142daee9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedToolBar.gif Binary files differdeleted file mode 100644 index dac0ebb0d01..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_StackElement.gif Binary files differdeleted file mode 100644 index b4db3ff10e9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBar.gif Binary files differdeleted file mode 100644 index a45fc7df64a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContribution.gif Binary files differdeleted file mode 100644 index f2b0a1e0745..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContributions.gif Binary files differdeleted file mode 100644 index d1b1538861d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 889f3af917f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolControl.gif Binary files differdeleted file mode 100644 index 0f107c5ff07..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimBar.gif Binary files differdeleted file mode 100644 index 845e9f477fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContribution.gif Binary files differdeleted file mode 100644 index f2b0a1e0745..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContributions.gif Binary files differdeleted file mode 100644 index d1b1538861d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 82807fa1fe6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Window.gif Binary files differdeleted file mode 100644 index 252ab407d1c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelComponents_imports_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Addon.gif Binary files differdeleted file mode 100644 index 8ae0d1520f3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Application.gif Binary files differdeleted file mode 100644 index b036b3f31fb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Area.gif Binary files differdeleted file mode 100644 index 33623fc2ef1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingContext.gif Binary files differdeleted file mode 100644 index 1a5c3bd438e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingTable.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingTable.gif Binary files differdeleted file mode 100644 index 1831c4a56db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_BindingTable.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Category.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Category.gif Binary files differdeleted file mode 100644 index e45936a8f3c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Category.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Command.gif Binary files differdeleted file mode 100644 index e04b1b4a7c6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_CommandParameter.gif Binary files differdeleted file mode 100644 index a891a7c4610..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 2e9e4015787..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectToolItem.gif Binary files differdeleted file mode 100644 index 3034f0e11ee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledItem.gif Binary files differdeleted file mode 100644 index ba7c5b5f696..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 0cb85ba0381..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledToolItem.gif Binary files differdeleted file mode 100644 index abda75555ed..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Handler.gif Binary files differdeleted file mode 100644 index 639ce14868f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_InputPart.gif Binary files differdeleted file mode 100644 index 3dc627e8524..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Item.gif Binary files differdeleted file mode 100644 index 06e47ff2be4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_KeyBinding.gif Binary files differdeleted file mode 100644 index 33623fc2ef1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Menu.gif Binary files differdeleted file mode 100644 index 1c4ad4346d0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuContribution.gif Binary files differdeleted file mode 100644 index 5c5dfd48dc4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuSeparator.gif Binary files differdeleted file mode 100644 index 37ddf242b3e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ModelComponent.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ModelComponent.gif Binary files differdeleted file mode 100644 index e910934a871..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ModelComponent.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Parameter.gif Binary files differdeleted file mode 100644 index e577d5e6a2d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Part.gif Binary files differdeleted file mode 100644 index b91642a2225..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartDescriptor.gif Binary files differdeleted file mode 100644 index df7c27bc5db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartSashContainer.gif Binary files differdeleted file mode 100644 index 7d5aad03d80..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartStack.gif Binary files differdeleted file mode 100644 index 4c76674f6f4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Perspective.gif Binary files differdeleted file mode 100644 index 4d2f3b96438..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PerspectiveStack.gif Binary files differdeleted file mode 100644 index 78645ad2b51..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Placeholder.gif Binary files differdeleted file mode 100644 index 3b8d98911cc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PopupMenu.gif Binary files differdeleted file mode 100644 index 3b8d98911cc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenu.gif Binary files differdeleted file mode 100644 index 3dc627e8524..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index ba7c5b5f696..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 2e9e4015787..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_StackElement.gif Binary files differdeleted file mode 100644 index 3b8d98911cc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBar.gif Binary files differdeleted file mode 100644 index f85cafc532c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarContribution.gif Binary files differdeleted file mode 100644 index 8ae0d1520f3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 9b4e66aba85..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolControl.gif Binary files differdeleted file mode 100644 index 761cb2b8785..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimBar.gif Binary files differdeleted file mode 100644 index df7c27bc5db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimContribution.gif Binary files differdeleted file mode 100644 index 8ae0d1520f3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 14d8d5f6819..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Window.gif Binary files differdeleted file mode 100644 index fa9b5195109..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragment_elements_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_fragments_StringModelFragment.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_fragments_StringModelFragment.gif Binary files differdeleted file mode 100644 index 6e01af8eb50..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_fragments_StringModelFragment.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Addon.gif Binary files differdeleted file mode 100644 index 59b15e28fd5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Application.gif Binary files differdeleted file mode 100644 index 23bed02a9a4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Area.gif Binary files differdeleted file mode 100644 index d8d5fa98a50..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingContext.gif Binary files differdeleted file mode 100644 index efff0c9aa7b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingTable.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingTable.gif Binary files differdeleted file mode 100644 index b7fdb143d59..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_BindingTable.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Category.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Category.gif Binary files differdeleted file mode 100644 index f02a6fd24e1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Category.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Command.gif Binary files differdeleted file mode 100644 index fcfec345ba6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_CommandParameter.gif Binary files differdeleted file mode 100644 index fff28cf178b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectMenuItem.gif Binary files differdeleted file mode 100644 index bfe2863deeb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectToolItem.gif Binary files differdeleted file mode 100644 index ed9bacf6845..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledItem.gif Binary files differdeleted file mode 100644 index 214d0c228c2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 8d9cbe9d423..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledToolItem.gif Binary files differdeleted file mode 100644 index 826ffa9de5d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Handler.gif Binary files differdeleted file mode 100644 index 8e0ea4d6adb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_InputPart.gif Binary files differdeleted file mode 100644 index 054a42f2efd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Item.gif Binary files differdeleted file mode 100644 index 3951fc11ae6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_KeyBinding.gif Binary files differdeleted file mode 100644 index d8d5fa98a50..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Menu.gif Binary files differdeleted file mode 100644 index c01322f2958..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuContribution.gif Binary files differdeleted file mode 100644 index 1abfdde8f21..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuSeparator.gif Binary files differdeleted file mode 100644 index 07d4cba6e20..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ModelComponent.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ModelComponent.gif Binary files differdeleted file mode 100644 index 1c99c0ab316..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ModelComponent.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Parameter.gif Binary files differdeleted file mode 100644 index df046406a90..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Part.gif Binary files differdeleted file mode 100644 index 054211b9a60..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartDescriptor.gif Binary files differdeleted file mode 100644 index c9a458c5673..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartSashContainer.gif Binary files differdeleted file mode 100644 index bb564b133f9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartStack.gif Binary files differdeleted file mode 100644 index 937120ba4f6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Perspective.gif Binary files differdeleted file mode 100644 index 5cfd2a857ce..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PerspectiveStack.gif Binary files differdeleted file mode 100644 index 00fdba3ec4c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Placeholder.gif Binary files differdeleted file mode 100644 index c9af92d8910..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PopupMenu.gif Binary files differdeleted file mode 100644 index c9af92d8910..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenu.gif Binary files differdeleted file mode 100644 index 054a42f2efd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index 214d0c228c2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedToolBar.gif Binary files differdeleted file mode 100644 index bfe2863deeb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_StackElement.gif Binary files differdeleted file mode 100644 index c9af92d8910..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBar.gif Binary files differdeleted file mode 100644 index e6f8fad0d56..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarContribution.gif Binary files differdeleted file mode 100644 index 59b15e28fd5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 6a5dfd409aa..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolControl.gif Binary files differdeleted file mode 100644 index 0b72453d8a5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimBar.gif Binary files differdeleted file mode 100644 index c9a458c5673..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimContribution.gif Binary files differdeleted file mode 100644 index 59b15e28fd5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 5d6719970cb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Window.gif Binary files differdeleted file mode 100644 index 05a14746bd2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateModelFragments_imports_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptorContainer_descriptors_PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptorContainer_descriptors_PartDescriptor.gif Binary files differdeleted file mode 100644 index 993d0905a90..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptorContainer_descriptors_PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_Menu.gif Binary files differdeleted file mode 100644 index 33f4da09f6a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_OpaqueMenu.gif Binary files differdeleted file mode 100644 index 33f4da09f6a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_PopupMenu.gif Binary files differdeleted file mode 100644 index fd2e2cc8a40..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_RenderedMenu.gif Binary files differdeleted file mode 100644 index cdb5a673351..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_menus_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_RenderedToolBar.gif Binary files differdeleted file mode 100644 index a10c850374e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_ToolBar.gif Binary files differdeleted file mode 100644 index 85afdbb7feb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePartDescriptor_toolbar_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 9fcf2c77902..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 68005ae0cc1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_Menu.gif Binary files differdeleted file mode 100644 index b067e51fccb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_MenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_MenuItem.gif Binary files differdeleted file mode 100644 index 28de654b291..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_MenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_OpaqueMenu.gif Binary files differdeleted file mode 100644 index b067e51fccb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_PopupMenu.gif Binary files differdeleted file mode 100644 index 08f15c5851e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_RenderedMenu.gif Binary files differdeleted file mode 100644 index 86d7811ddcf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_menus_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 9fcf2c77902..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_ToolBar.gif Binary files differdeleted file mode 100644 index f66fdd6f684..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePart_toolbar_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_TrimmedWindow.gif Binary files differdeleted file mode 100644 index e268a9e4429..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_Window.gif Binary files differdeleted file mode 100644 index 5a20caaa715..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreatePerspective_windows_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Application.gif Binary files differdeleted file mode 100644 index 7acbca393c0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Area.gif Binary files differdeleted file mode 100644 index ffebaf4f06c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 84d32674ac7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectToolItem.gif Binary files differdeleted file mode 100644 index e0f28471cd7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledMenuItem.gif Binary files differdeleted file mode 100644 index a2ea8fe4fb0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledToolItem.gif Binary files differdeleted file mode 100644 index df29197e262..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_InputPart.gif Binary files differdeleted file mode 100644 index f82b4be3227..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Menu.gif Binary files differdeleted file mode 100644 index f4369fd0a4e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuContribution.gif Binary files differdeleted file mode 100644 index e441ba7d418..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuSeparator.gif Binary files differdeleted file mode 100644 index 053b43458eb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenu.gif Binary files differdeleted file mode 100644 index f4369fd0a4e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuItem.gif Binary files differdeleted file mode 100644 index 3744cee6aec..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuSeparator.gif Binary files differdeleted file mode 100644 index 053b43458eb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueMenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueToolItem.gif Binary files differdeleted file mode 100644 index 58edd523d02..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_OpaqueToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Part.gif Binary files differdeleted file mode 100644 index 852e7907209..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartSashContainer.gif Binary files differdeleted file mode 100644 index 73f16499bfc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartStack.gif Binary files differdeleted file mode 100644 index 1650299672d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Perspective.gif Binary files differdeleted file mode 100644 index b2556694e4c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PerspectiveStack.gif Binary files differdeleted file mode 100644 index bbdb41d8452..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Placeholder.gif Binary files differdeleted file mode 100644 index 691dd114dee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PopupMenu.gif Binary files differdeleted file mode 100644 index 691dd114dee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenu.gif Binary files differdeleted file mode 100644 index f82b4be3227..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index 4b36c8a973d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 84d32674ac7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBar.gif Binary files differdeleted file mode 100644 index 2d3a78e68de..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarContribution.gif Binary files differdeleted file mode 100644 index 72a560fe4a2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 13e215edfc7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolControl.gif Binary files differdeleted file mode 100644 index 8b41d35c74d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimBar.gif Binary files differdeleted file mode 100644 index fd5f7bbdc88..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimContribution.gif Binary files differdeleted file mode 100644 index 72a560fe4a2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 24f4a759d72..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Window.gif Binary files differdeleted file mode 100644 index 0c070475d5d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateSnippetContainer_snippets_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolBarContributions_toolBarContributions_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolBarContributions_toolBarContributions_ToolBarContribution.gif Binary files differdeleted file mode 100644 index 3270f4e8218..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolBarContributions_toolBarContributions_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_Menu.gif Binary files differdeleted file mode 100644 index c01322f2958..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_OpaqueMenu.gif Binary files differdeleted file mode 100644 index c01322f2958..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_PopupMenu.gif Binary files differdeleted file mode 100644 index c9af92d8910..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_RenderedMenu.gif Binary files differdeleted file mode 100644 index 054a42f2efd..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateToolItem_menu_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_InputPart.gif Binary files differdeleted file mode 100644 index 5477752ac52..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_Part.gif Binary files differdeleted file mode 100644 index 59d6727f1ab..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartSashContainer.gif Binary files differdeleted file mode 100644 index 698771192b6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartStack.gif Binary files differdeleted file mode 100644 index 21acda38dc0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContainer_content_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContributions_trimContributions_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContributions_trimContributions_TrimContribution.gif Binary files differdeleted file mode 100644 index 3270f4e8218..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimContributions_trimContributions_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_InputPart.gif Binary files differdeleted file mode 100644 index b8713703c7c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_Part.gif Binary files differdeleted file mode 100644 index ce02cc1489c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartSashContainer.gif Binary files differdeleted file mode 100644 index 8efd2ad9e15..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartStack.gif Binary files differdeleted file mode 100644 index 8db9bb002c8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimedPartContainer_content_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimmedWindow_trimBars_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimmedWindow_trimBars_TrimBar.gif Binary files differdeleted file mode 100644 index 59d30291b8c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateTrimmedWindow_trimBars_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateUIElement_visibleWhen_CoreExpression.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateUIElement_visibleWhen_CoreExpression.gif Binary files differdeleted file mode 100644 index aff8996b2c4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateUIElement_visibleWhen_CoreExpression.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 775ec094629..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 1f8189adbeb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_Menu.gif Binary files differdeleted file mode 100644 index af07ba12a2b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_MenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_MenuItem.gif Binary files differdeleted file mode 100644 index 908375cea5a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_MenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_OpaqueMenu.gif Binary files differdeleted file mode 100644 index af07ba12a2b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_PopupMenu.gif Binary files differdeleted file mode 100644 index 0855183b08e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_RenderedMenu.gif Binary files differdeleted file mode 100644 index f9be6da8f0d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_mainMenu_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Application.gif Binary files differdeleted file mode 100644 index 38d77bbab6c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Area.gif Binary files differdeleted file mode 100644 index 9dd025aad5c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectMenuItem.gif Binary files differdeleted file mode 100644 index 775ec094629..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectToolItem.gif Binary files differdeleted file mode 100644 index 3cee5b616ab..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DynamicMenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DynamicMenuContribution.gif Binary files differdeleted file mode 100644 index 6b9afeaec63..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_DynamicMenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledItem.gif Binary files differdeleted file mode 100644 index e1785172c44..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledMenuItem.gif Binary files differdeleted file mode 100644 index 1f8189adbeb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledToolItem.gif Binary files differdeleted file mode 100644 index 6b4e4321e6e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_InputPart.gif Binary files differdeleted file mode 100644 index f9be6da8f0d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Item.gif Binary files differdeleted file mode 100644 index 5b78080875c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MArea.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MArea.gif Binary files differdeleted file mode 100644 index 464e623af1b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MArea.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Menu.gif Binary files differdeleted file mode 100644 index af07ba12a2b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuContribution.gif Binary files differdeleted file mode 100644 index 84df4c1f80e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuSeparator.gif Binary files differdeleted file mode 100644 index b25c6299a5c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenu.gif Binary files differdeleted file mode 100644 index af07ba12a2b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuItem.gif Binary files differdeleted file mode 100644 index 908375cea5a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuSeparator.gif Binary files differdeleted file mode 100644 index b25c6299a5c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueMenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueToolItem.gif Binary files differdeleted file mode 100644 index 50cbfbfa2f9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_OpaqueToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Part.gif Binary files differdeleted file mode 100644 index 5d9762db42f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartSashContainer.gif Binary files differdeleted file mode 100644 index d70b2d98dbf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartStack.gif Binary files differdeleted file mode 100644 index daddc877f57..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Perspective.gif Binary files differdeleted file mode 100644 index 56fcea56b72..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PerspectiveStack.gif Binary files differdeleted file mode 100644 index f00122b1e0c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Placeholder.gif Binary files differdeleted file mode 100644 index 0855183b08e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PopupMenu.gif Binary files differdeleted file mode 100644 index 0855183b08e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenu.gif Binary files differdeleted file mode 100644 index f9be6da8f0d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenuItem.gif Binary files differdeleted file mode 100644 index e1785172c44..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedToolBar.gif Binary files differdeleted file mode 100644 index 775ec094629..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_StackElement.gif Binary files differdeleted file mode 100644 index 0855183b08e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBar.gif Binary files differdeleted file mode 100644 index 9c7efc49c09..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContribution.gif Binary files differdeleted file mode 100644 index fc34e45332d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContributions.gif Binary files differdeleted file mode 100644 index d9a9d8d1fc4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 4ce18217080..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolControl.gif Binary files differdeleted file mode 100644 index c05a4184968..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimBar.gif Binary files differdeleted file mode 100644 index d203b1d7444..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContribution.gif Binary files differdeleted file mode 100644 index fc34e45332d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContributions.gif Binary files differdeleted file mode 100644 index d9a9d8d1fc4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 9073955a8bc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Window.gif Binary files differdeleted file mode 100644 index 883ce93b430..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_sharedElements_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_trims_WindowTrim.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_trims_WindowTrim.gif Binary files differdeleted file mode 100644 index 3cee5b616ab..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_trims_WindowTrim.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_TrimmedWindow.gif Binary files differdeleted file mode 100644 index 9073955a8bc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_Window.gif Binary files differdeleted file mode 100644 index 883ce93b430..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/ctool16/CreateWindow_windows_Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Addon.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Addon.gif Binary files differdeleted file mode 100644 index 52f8639f144..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Addon.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Application.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Application.gif Binary files differdeleted file mode 100644 index 9246dfa126e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Application.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ApplicationElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ApplicationElement.gif Binary files differdeleted file mode 100644 index 33be7d827dc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ApplicationElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Area.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Area.gif Binary files differdeleted file mode 100644 index d3dc5a9ad81..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Area.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingContext.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingContext.gif Binary files differdeleted file mode 100644 index 50445d99b8b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingContext.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingTable.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingTable.gif Binary files differdeleted file mode 100644 index ee9038d5bb4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/BindingTable.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Category.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Category.gif Binary files differdeleted file mode 100644 index caf2804510d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Category.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Command.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Command.gif Binary files differdeleted file mode 100644 index c3193fd9ef9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Command.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CommandParameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CommandParameter.gif Binary files differdeleted file mode 100644 index b7f03d56798..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CommandParameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Context.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Context.gif Binary files differdeleted file mode 100644 index badaab0664a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Context.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CoreExpression.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CoreExpression.gif Binary files differdeleted file mode 100644 index ed874747401..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/CoreExpression.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectMenuItem.gif Binary files differdeleted file mode 100644 index 30dbf6b097d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectToolItem.gif Binary files differdeleted file mode 100644 index b225cd5e7ef..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DirectToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DynamicMenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DynamicMenuContribution.gif Binary files differdeleted file mode 100644 index 5a2614a83b0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/DynamicMenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledItem.gif Binary files differdeleted file mode 100644 index e976d437fbe..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledMenuItem.gif Binary files differdeleted file mode 100644 index 710188a9962..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledToolItem.gif Binary files differdeleted file mode 100644 index ac4ff2118b4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/HandledToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Handler.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Handler.gif Binary files differdeleted file mode 100644 index 57f410224cf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Handler.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Input.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Input.gif Binary files differdeleted file mode 100644 index d68e54ec1db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Input.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/InputPart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/InputPart.gif Binary files differdeleted file mode 100644 index 3d3c318876c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/InputPart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Item.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Item.gif Binary files differdeleted file mode 100644 index 7787c40e9ca..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Item.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/KeyBinding.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/KeyBinding.gif Binary files differdeleted file mode 100644 index d289b194fb6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/KeyBinding.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MArea.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MArea.gif Binary files differdeleted file mode 100644 index 7b7c428c715..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MArea.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Menu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Menu.gif Binary files differdeleted file mode 100644 index 64173281d28..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Menu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContribution.gif Binary files differdeleted file mode 100644 index 2b692560297..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContributions.gif Binary files differdeleted file mode 100644 index cdd3b76e3c0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuItem.gif Binary files differdeleted file mode 100644 index b7c3c562a84..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuSeparator.gif Binary files differdeleted file mode 100644 index 16d63ff2495..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/MenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponent.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponent.gif Binary files differdeleted file mode 100644 index 93f75ae4554..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponent.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponents.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponents.gif Binary files differdeleted file mode 100644 index c4a8af41844..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelComponents.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelFragments.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelFragments.gif Binary files differdeleted file mode 100644 index d92f34c8aea..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ModelFragments.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenu.gif Binary files differdeleted file mode 100644 index c00aedf4135..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuItem.gif Binary files differdeleted file mode 100644 index 90d10f94707..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuSeparator.gif Binary files differdeleted file mode 100644 index 8a5c70cbd74..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueMenuSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueToolItem.gif Binary files differdeleted file mode 100644 index d92f34c8aea..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/OpaqueToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Parameter.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Parameter.gif Binary files differdeleted file mode 100644 index 46e9bfa6684..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Parameter.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Part.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Part.gif Binary files differdeleted file mode 100644 index 610f58441a3..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Part.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptor.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptor.gif Binary files differdeleted file mode 100644 index 7a31c5065d5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptor.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptorContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptorContainer.gif Binary files differdeleted file mode 100644 index afb82ea48a5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartDescriptorContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer.gif Binary files differdeleted file mode 100644 index bbbdd559a91..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer_vertical.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer_vertical.gif Binary files differdeleted file mode 100644 index 013e818ecb5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartSashContainer_vertical.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartStack.gif Binary files differdeleted file mode 100644 index edd6060d561..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PartStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Perspective.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Perspective.gif Binary files differdeleted file mode 100644 index ba1a1998590..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Perspective.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PerspectiveStack.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PerspectiveStack.gif Binary files differdeleted file mode 100644 index 0624021bc1e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PerspectiveStack.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Placeholder.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Placeholder.gif Binary files differdeleted file mode 100644 index 25c66a1838d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Placeholder.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PopupMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PopupMenu.gif Binary files differdeleted file mode 100644 index 7c2aaac84ee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/PopupMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenu.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenu.gif Binary files differdeleted file mode 100644 index a26660ec28f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenu.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenuItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenuItem.gif Binary files differdeleted file mode 100644 index 136e3b27269..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedMenuItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedToolBar.gif Binary files differdeleted file mode 100644 index 45731fe28e7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/RenderedToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SaveablePart.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SaveablePart.gif Binary files differdeleted file mode 100644 index d906b981123..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SaveablePart.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SnippetContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SnippetContainer.gif Binary files differdeleted file mode 100644 index 90d10f94707..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/SnippetContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StackElement.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StackElement.gif Binary files differdeleted file mode 100644 index 7c2aaac84ee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StackElement.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringModelFragment.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringModelFragment.gif Binary files differdeleted file mode 100644 index 30f0c48da8d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringModelFragment.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToObjectMap.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToObjectMap.gif Binary files differdeleted file mode 100644 index d92f34c8aea..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToObjectMap.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToStringMap.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToStringMap.gif Binary files differdeleted file mode 100644 index 75b4d2651a9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/StringToStringMap.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TestHarness.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TestHarness.gif Binary files differdeleted file mode 100644 index c414fe9f728..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TestHarness.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBar.gif Binary files differdeleted file mode 100644 index 64173281d28..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContribution.gif Binary files differdeleted file mode 100644 index 5915591825a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContributions.gif Binary files differdeleted file mode 100644 index 48e3cf22687..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarSeparator.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarSeparator.gif Binary files differdeleted file mode 100644 index 81d54f3192b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolBarSeparator.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolControl.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolControl.gif Binary files differdeleted file mode 100644 index 3e53cbdc5fc..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolControl.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolItem.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolItem.gif Binary files differdeleted file mode 100644 index 619f79d6ba8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/ToolItem.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimBar.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimBar.gif Binary files differdeleted file mode 100644 index a17dc7d88e9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimBar.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContribution.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContribution.gif Binary files differdeleted file mode 100644 index 5915591825a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContribution.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContributions.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContributions.gif Binary files differdeleted file mode 100644 index 48e3cf22687..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimContributions.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimedPartContainer.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimedPartContainer.gif Binary files differdeleted file mode 100644 index 83afb9b3c9a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimedPartContainer.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimmedWindow.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimmedWindow.gif Binary files differdeleted file mode 100644 index f8ad4b4af82..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/TrimmedWindow.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Window.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Window.gif Binary files differdeleted file mode 100644 index 37aad784dd4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/Window.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/WindowTrim.gif b/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/WindowTrim.gif Binary files differdeleted file mode 100644 index 37aad784dd4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/icons/full/obj16/WindowTrim.gif +++ /dev/null diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.properties b/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.properties deleted file mode 100644 index eaf04cfe781..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.properties +++ /dev/null @@ -1,295 +0,0 @@ -############################################################################### -# Copyright (c) 2013 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -# Copyright (c) 2008 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation - -pluginName = UIElements Edit (Incubation) -providerName = Eclipse.org - -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_text3 = {1} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - -_UI_PropertyDescriptor_description = The {0} of the {1} - -_UI_V____________ConstantsAndTypes_____________V_type = VConstants And Types V -_UI_V____________Abstract_____________V_type = VAbstract V -_UI_ApplicationElement_type = Element -_UI_Contribution_type = Contribution -_UI_Dirtyable_type = Dirtyable -_UI_Input_type = Input -_UI_UIElement_type = UI Element -_UI_UILabel_type = UI Label -_UI_Context_type = Context -_UI_V_________AbstractContainers__________V_type = VAbstract Containers V -_UI_ElementContainer_type = Element Container -_UI_GenericStack_type = Generic Stack -_UI_GenericTile_type = Generic Tile -_UI_V______________MenusAndTBs_______________V_type = VMenus And TBs V -_UI_Item_type = Item -_UI_MenuItem_type = Menu Item -_UI_DirectMenuItem_type = Direct Menu Item -_UI_Menu_type = Menu -_UI_ToolItem_type = Tool Item -_UI_DirectToolItem_type = Direct Tool Item -_UI_ToolBar_type = Tool Bar -_UI_V______________RCP_______________V_type = VRCP V -_UI_Application_type = Application -_UI_PSCElement_type = PSC Element -_UI_Part_type = Part -_UI_PartDescriptor_type = Part Descriptor -_UI_PartDescriptorContainer_type = Part Descriptor Container -_UI_SaveablePart_type = Saveable Part -_UI_PartStack_type = Part Stack -_UI_PartSashContainer_type = Part Sash Container -_UI_Window_type = Window -_UI_ModelComponents_type = Model Components -_UI_ModelComponent_type = Model Component -_UI_V______________Commands_______________V_type = VCommands V -_UI_BindingContainer_type = Binding Container -_UI_Command_type = Command -_UI_CommandParameter_type = Command Parameter -_UI_Handler_type = Handler -_UI_HandlerContainer_type = Handler Container -_UI_HandledItem_type = Handled Item -_UI_HandledMenuItem_type = Handled Menu Item -_UI_HandledToolItem_type = Handled Tool Item -_UI_KeyBinding_type = Key Binding -_UI_KeySequence_type = Key Sequence -_UI_Parameter_type = Parameter -_UI_V______________Trim_______________V_type = VTrim V -_UI_TrimContainer_type = Trim Container -_UI_WindowTrim_type = Window Trim -_UI_V______________Editing_______________V_type = VEditing V -_UI_Editor_type = Editor -_UI_V______________SharedElements_______________V_type = VShared Elements V -_UI_Placeholder_type = Placeholder -_UI_Perspective_type = Perspective -_UI_PerspectiveStack_type = Perspective Stack -_UI_V_________Testing__________V_type = VTesting V -_UI_TestHarness_type = Test Harness -_UI_Unknown_type = Object - -_UI_Unknown_datatype= Value - -_UI_ApplicationElement_id_feature = Id -_UI_ApplicationElement_style_feature = Style -_UI_Contribution_URI_feature = URI -_UI_Contribution_object_feature = Object -_UI_Contribution_persistedState_feature = Persisted State -_UI_Dirtyable_dirty_feature = Dirty -_UI_Input_inputURI_feature = Input URI -_UI_UIElement_widget_feature = Widget -_UI_UIElement_renderer_feature = Renderer -_UI_UIElement_toBeRendered_feature = To Be Rendered -_UI_UIElement_onTop_feature = On Top -_UI_UIElement_visible_feature = Visible -_UI_UIElement_parent_feature = Parent -_UI_UIElement_containerData_feature = Container Data -_UI_UILabel_label_feature = Label -_UI_UILabel_iconURI_feature = Icon URI -_UI_UILabel_tooltip_feature = Tooltip -_UI_Context_context_feature = Context -_UI_Context_variables_feature = Variables -_UI_ElementContainer_children_feature = Children -_UI_ElementContainer_activeChild_feature = Active Child -_UI_GenericTile_horizontal_feature = Horizontal -_UI_Item_enabled_feature = Enabled -_UI_Item_selected_feature = Selected -_UI_Item_type_feature = Type -_UI_Application_commands_feature = Commands -_UI_Part_menus_feature = Menus -_UI_Part_toolbar_feature = Toolbar -_UI_PartDescriptor_allowMultiple_feature = Allow Multiple -_UI_PartDescriptor_category_feature = Category -_UI_PartDescriptorContainer_descriptors_feature = Descriptors -_UI_Window_mainMenu_feature = Main Menu -_UI_Window_x_feature = X -_UI_Window_y_feature = Y -_UI_Window_width_feature = Width -_UI_Window_height_feature = Height -_UI_ModelComponents_components_feature = Components -_UI_ModelComponent_positionInParent_feature = Position In Parent -_UI_ModelComponent_parentID_feature = Parent ID -_UI_ModelComponent_children_feature = Children -_UI_ModelComponent_commands_feature = Commands -_UI_ModelComponent_handlers_feature = Handlers -_UI_BindingContainer_bindings_feature = Bindings -_UI_Command_commandName_feature = Command Name -_UI_Command_description_feature = Description -_UI_Command_parameters_feature = Parameters -_UI_CommandParameter_name_feature = Name -_UI_CommandParameter_typeId_feature = Type Id -_UI_CommandParameter_optional_feature = Optional -_UI_Handler_command_feature = Command -_UI_HandlerContainer_handlers_feature = Handlers -_UI_HandledItem_command_feature = Command -_UI_HandledItem_wbCommand_feature = Wb Command -_UI_HandledItem_parameters_feature = Parameters -_UI_KeyBinding_command_feature = Command -_UI_KeyBinding_parameters_feature = Parameters -_UI_KeySequence_keySequence_feature = Key Sequence -_UI_Parameter_tag_feature = Tag -_UI_Parameter_value_feature = Value -_UI_TrimContainer_side_feature = Side -_UI_Placeholder_ref_feature = Ref -_UI_Unknown_feature = Unspecified - -_UI_ItemType_Push_literal = Push -_UI_ItemType_Check_literal = Check -_UI_ItemType_Radio_literal = Radio -_UI_ItemType_Separator_literal = Separator -_UI_SideValue_Top_literal = Top -_UI_SideValue_Bottom_literal = Bottom -_UI_SideValue_Left_literal = Left -_UI_SideValue_Right_literal = Right -_UI_StringToStringMap_type = String To String Map -_UI_StringToStringMap_key_feature = Key -_UI_StringToStringMap_value_feature = Value -_UI_ApplicationElement_tags_feature = Tags -_UI_Context_properties_feature = Properties -_UI_ElementContainer_selectedElement_feature = Selected Element -_UI_ModelComponent_processor_feature = Processor -_UI_InputPart_type = Input Part -_UI_Part_closeable_feature = Closeable -_UI_BindingContext_type = Binding Context -_UI_BindingTable_type = Binding Table -_UI_BindingContainer_bindingTables_feature = Binding Tables -_UI_BindingContainer_rootContext_feature = Root Context -_UI_BindingContext_name_feature = Name -_UI_BindingContext_description_feature = Description -_UI_BindingContext_children_feature = Children -_UI_BindingTable_bindingContextId_feature = Binding Context Id -_UI_BindingTable_bindings_feature = Bindings -_UI_Bindings_type = Bindings -_UI_Bindings_bindingContexts_feature = Binding Contexts -_UI_ModelComponent_bindings_feature = Bindings -_UI_BindingTableContainer_type = Binding Table Container -_UI_MenuElement_type = Element -_UI_MenuSeparator_type = Separator -_UI_ToolBarElement_type = Tool Bar Element -_UI_ToolControl_type = Tool Control -_UI_ToolBarSeparator_type = Tool Bar Separator -_UI_TrimElement_type = Trim Element -_UI_PartSashContainerElement_type = Part Sash Container Element -_UI_WindowElement_type = Window Element -_UI_ApplicationElement_elementId_feature = Element Id -_UI_Contribution_contributionURI_feature = Contribution URI -_UI_BindingTableContainer_bindingTables_feature = Binding Tables -_UI_BindingTableContainer_rootContext_feature = Root Context -_UI_Parameter_name_feature = Name -_UI_MenuItem_mnemonics_feature = Mnemonics -_UI_Menu_enabled_feature = Enabled -_UI_Window_trims_feature = Trims -_UI_Window_windows_feature = Windows -_UI_Perspective_windows_feature = Windows -_UI_PartDescriptor_menus_feature = Menus -_UI_PartDescriptor_toolbar_feature = Toolbar -_UI_PartDescriptor_closeable_feature = Closeable -_UI_PartDescriptor_dirtyable_feature = Dirtyable -_UI_PartDescriptor_contributionURI_feature = Contribution URI -_UI_Addon_type = Addon -_UI_TrimedPartContainer_type = Trimed Part Container -_UI_Application_addons_feature = Addons -_UI_TrimedPartContainer_content_feature = Content -_UI_GenericTrimContainer_type = Generic Trim Container -_UI_TrimBar_type = Trim Bar -_UI_GenericTrimContainer_side_feature = Side -_UI_TrimContainer_content_feature = Content -_UI_TrimmedWindow_type = Trimmed Window -_UI_TrimmedWindow_trimBars_feature = Trim Bars -_UI_StackElement_type = Stack Element -_UI_Window_sharedElements_feature = Shared Elements -_UI_Expression_type = Expression -_UI_CoreExpression_type = Core Expression -_UI_PopupMenu_type = Popup Menu -_UI_UIElement_curSharedRef_feature = Cur Shared Ref -_UI_UIElement_visibleWhen_feature = Visible When -_UI_CoreExpression_coreExpressionId_feature = Core Expression Id -_UI_MenuContribution_type = Contribution -_UI_MenuContributions_type = Contributions -_UI_MenuContribution_positionInParent_feature = Position In Parent -_UI_MenuContributions_menuContributions_feature = Menu Contributions -_UI_RenderedMenu_type = Rendered Menu -_UI_ModelComponents_imports_feature = Imports -_UI_RenderedMenu_enabled_feature = Enabled -_UI_RenderedMenu_contributionManager_feature = Contribution Manager -_UI_RenderedToolBar_type = Rendered Tool Bar -_UI_RenderedToolBar_enabled_feature = Enabled -_UI_RenderedToolBar_contributionManager_feature = Contribution Manager -_UI_MenuContribution_parentID_feature = Parent ID -_UI_CoreExpression_coreExpression_feature = Core Expression -_UI_ModelFragments_type = Model Fragments -_UI_ModelFragment_type = Model Fragment -_UI_StringModelFragment_type = String Model Fragment -_UI_ModelFragments_imports_feature = Imports -_UI_ModelFragments_fragments_feature = Fragments -_UI_ModelFragment_elements_feature = Elements -_UI_StringModelFragment_featurename_feature = Featurename -_UI_StringModelFragment_parentElementId_feature = Parent Element Id -_UI_StringModelFragment_positionInList_feature = Position In List -_UI_ToolBarContribution_type = Tool Bar Contribution -_UI_ToolBarContributions_type = Tool Bar Contributions -_UI_TrimContribution_type = Trim Contribution -_UI_TrimContributions_type = Trim Contributions -_UI_ToolBarContributions_toolBarContributions_feature = Tool Bar Contributions -_UI_TrimContributions_trimContributions_feature = Trim Contributions -_UI_ToolBarContribution_parentId_feature = Parent Id -_UI_ToolBarContribution_positionInParent_feature = Position In Parent -_UI_TrimContribution_parentId_feature = Parent Id -_UI_TrimContribution_positionInParent_feature = Position In Parent -_UI_ToolItem_menu_feature = Menu -_UI_RenderedMenuItem_type = Rendered Menu Item -_UI_RenderedMenuItem_contributionItem_feature = Contribution Item -_UI_MenuContribution_parentId_feature = Parent Id -_UI_Category_type = Category -_UI_Application_categories_feature = Categories -_UI_Command_category_feature = Category -_UI_Category_name_feature = Name -_UI_Category_description_feature = Description -_UI_UIElement_accessibilityPhrase_feature = Accessibility Phrase -_UI_MArea_type = MArea -_UI_Area_type = Area -_UI_OpaqueMenuItem_type = Opaque Menu Item -_UI_OpaqueMenuSeparator_type = Opaque Menu Separator -_UI_OpaqueMenu_type = Opaque Menu -_UI_UILabel_localLabel_feature = Local Label -_UI_UILabel_localTooltip_feature = Local Tooltip -_UI_UILabel_localImage_feature = Local Image -_UI_OpaqueMenuItem_opaqueItem_feature = Opaque Item -_UI_OpaqueMenuSeparator_opaqueItem_feature = Opaque Item -_UI_ApplicationElement_contributorURI_feature = Contributor URI -_UI_MenuElement_mnemonics_feature = Mnemonics -_UI_Part_description_feature = Description -_UI_PartDescriptor_description_feature = Description -_UI_BindingTable_bindingContext_feature = Binding Context -_UI_OpaqueToolItem_type = Opaque Tool Item -_UI_ApplicationElement_tranientData_feature = Tranient Data -_UI_ApplicationElement_clonableSnippets_feature = Clonable Snippets -_UI_OpaqueToolItem_opaqueItem_feature = Opaque Item -_UI_Placeholder_closeable_feature = Closeable -_UI_ApplicationElement_transientData_feature = Transient Data -_UI_StringToObjectMap_type = String To Object Map -_UI_StringToObjectMap_key_feature = Key -_UI_StringToObjectMap_value_feature = Value -_UI_SnippetContainer_type = Snippet Container -_UI_SnippetContainer_snippets_feature = Snippets -_UI_ApplicationElement_persistedState_feature = Persisted State -_UI_DynamicMenuContribution_type = Dynamic Menu Contribution diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.xml b/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.xml deleted file mode 100644 index f2dda5b3212..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/plugin.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> - -<!-- - Copyright (c) 2008 IBM Corporation and others. - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Public License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html - - Contributors: - IBM Corporation - initial API and implementation ---> - -<plugin> - - <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories"> - <factory - uri="http://www.eclipse.org/ui/2008/UIModel" - class="org.eclipse.e4.ui.model.application.provider.ApplicationItemProviderAdapterFactory" - supportedTypes= - "org.eclipse.emf.edit.provider.IEditingDomainItemProvider - org.eclipse.emf.edit.provider.IStructuredItemContentProvider - org.eclipse.emf.edit.provider.ITreeItemContentProvider - org.eclipse.emf.edit.provider.IItemLabelProvider - org.eclipse.emf.edit.provider.IItemPropertySource"/> - </extension> - -</plugin> diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/pom.xml b/bundles/org.eclipse.e4.ui.model.workbench.edit/pom.xml deleted file mode 100644 index 98d643cb82c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/pom.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (c) 2012 Eclipse Foundation. - All rights reserved. This program and the accompanying materials - are made available under the terms of the Eclipse Distribution License v1.0 - which accompanies this distribution, and is available at - http://www.eclipse.org/org/documents/edl-v10.php - - Contributors: - Igor Fedorenko - initial implementation ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <artifactId>eclipse.platform.ui</artifactId> - <groupId>eclipse.platform.ui</groupId> - <version>4.4.0-SNAPSHOT</version> - <relativePath>../../</relativePath> - </parent> - <groupId>org.eclipse.e4</groupId> - <artifactId>org.eclipse.e4.ui.model.workbench.edit</artifactId> - <version>0.12.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> -</project> diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingContextItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingContextItemProvider.java deleted file mode 100644 index 30f3078a54a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingContextItemProvider.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MBindingContext; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MBindingContext} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class BindingContextItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BindingContextItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingContext_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingContext_name_feature", "_UI_BindingContext_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDING_CONTEXT__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Description feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingContext_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingContext_description_feature", "_UI_BindingContext_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDING_CONTEXT__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CommandsPackageImpl.Literals.BINDING_CONTEXT__CHILDREN); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns BindingContext.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/BindingContext")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MBindingContext)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_BindingContext_type") : //$NON-NLS-1$ - getString("_UI_BindingContext_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MBindingContext.class)) { - case CommandsPackageImpl.BINDING_CONTEXT__NAME: - case CommandsPackageImpl.BINDING_CONTEXT__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case CommandsPackageImpl.BINDING_CONTEXT__CHILDREN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.BINDING_CONTEXT__CHILDREN, - MCommandsFactory.INSTANCE.createBindingContext())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingTableItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingTableItemProvider.java deleted file mode 100644 index 1c5714cf81c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/BindingTableItemProvider.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MBindingTable; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MBindingTable} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class BindingTableItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BindingTableItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addBindingContextPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Binding Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addBindingContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_BindingTable_bindingContext_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_BindingTable_bindingContext_feature", "_UI_BindingTable_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDING_TABLE__BINDING_CONTEXT, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CommandsPackageImpl.Literals.BINDING_TABLE__BINDINGS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns BindingTable.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/BindingTable")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MBindingTable)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_BindingTable_type") : //$NON-NLS-1$ - getString("_UI_BindingTable_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MBindingTable.class)) { - case CommandsPackageImpl.BINDING_TABLE__BINDINGS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.BINDING_TABLE__BINDINGS, - MCommandsFactory.INSTANCE.createKeyBinding())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CategoryItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CategoryItemProvider.java deleted file mode 100644 index 5bbae4c26d5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CategoryItemProvider.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.commands.MCategory; - -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; - -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCategory} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class CategoryItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CategoryItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Category_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Category_name_feature", "_UI_Category_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.CATEGORY__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Description feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Category_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Category_description_feature", "_UI_Category_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.CATEGORY__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Category.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Category")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MCategory)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_Category_type") : //$NON-NLS-1$ - getString("_UI_Category_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MCategory.class)) { - case CommandsPackageImpl.CATEGORY__NAME: - case CommandsPackageImpl.CATEGORY__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandItemProvider.java deleted file mode 100644 index 6c5035819eb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandItemProvider.java +++ /dev/null @@ -1,250 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommand; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCommand} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class CommandItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommandItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCommandNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - addCategoryPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Command Name feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Command_commandName_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Command_commandName_feature", "_UI_Command_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND__COMMAND_NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Description feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Command_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Command_description_feature", "_UI_Command_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Category feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCategoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Command_category_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Command_category_feature", "_UI_Command_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND__CATEGORY, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CommandsPackageImpl.Literals.COMMAND__PARAMETERS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Command.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Command")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MCommand)object).getCommandName(); - return label == null || label.length() == 0 ? - getString("_UI_Command_type") : //$NON-NLS-1$ - getString("_UI_Command_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MCommand.class)) { - case CommandsPackageImpl.COMMAND__COMMAND_NAME: - case CommandsPackageImpl.COMMAND__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case CommandsPackageImpl.COMMAND__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.COMMAND__PARAMETERS, - MCommandsFactory.INSTANCE.createCommandParameter())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandParameterItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandParameterItemProvider.java deleted file mode 100644 index 9afcace8150..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandParameterItemProvider.java +++ /dev/null @@ -1,210 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandParameter; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCommandParameter} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class CommandParameterItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommandParameterItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - addTypeIdPropertyDescriptor(object); - addOptionalPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CommandParameter_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CommandParameter_name_feature", "_UI_CommandParameter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND_PARAMETER__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Type Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTypeIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CommandParameter_typeId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CommandParameter_typeId_feature", "_UI_CommandParameter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND_PARAMETER__TYPE_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Optional feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addOptionalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CommandParameter_optional_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CommandParameter_optional_feature", "_UI_CommandParameter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.COMMAND_PARAMETER__OPTIONAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns CommandParameter.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/CommandParameter")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MCommandParameter)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_CommandParameter_type") : //$NON-NLS-1$ - getString("_UI_CommandParameter_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MCommandParameter.class)) { - case CommandsPackageImpl.COMMAND_PARAMETER__NAME: - case CommandsPackageImpl.COMMAND_PARAMETER__TYPE_ID: - case CommandsPackageImpl.COMMAND_PARAMETER__OPTIONAL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandsItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandsItemProviderAdapterFactory.java deleted file mode 100644 index cb2f58ac45b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/CommandsItemProviderAdapterFactory.java +++ /dev/null @@ -1,372 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.commands.util.CommandsAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class CommandsItemProviderAdapterFactory extends CommandsAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CommandsItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MBindingContext} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BindingContextItemProvider bindingContextItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MBindingContext}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createBindingContextAdapter() { - if (bindingContextItemProvider == null) { - bindingContextItemProvider = new BindingContextItemProvider(this); - } - - return bindingContextItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MBindingTable} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BindingTableItemProvider bindingTableItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MBindingTable}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createBindingTableAdapter() { - if (bindingTableItemProvider == null) { - bindingTableItemProvider = new BindingTableItemProvider(this); - } - - return bindingTableItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MCommand} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CommandItemProvider commandItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createCommandAdapter() { - if (commandItemProvider == null) { - commandItemProvider = new CommandItemProvider(this); - } - - return commandItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MCommandParameter} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CommandParameterItemProvider commandParameterItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCommandParameter}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createCommandParameterAdapter() { - if (commandParameterItemProvider == null) { - commandParameterItemProvider = new CommandParameterItemProvider(this); - } - - return commandParameterItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MHandler} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HandlerItemProvider handlerItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MHandler}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createHandlerAdapter() { - if (handlerItemProvider == null) { - handlerItemProvider = new HandlerItemProvider(this); - } - - return handlerItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MKeyBinding} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected KeyBindingItemProvider keyBindingItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MKeyBinding}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createKeyBindingAdapter() { - if (keyBindingItemProvider == null) { - keyBindingItemProvider = new KeyBindingItemProvider(this); - } - - return keyBindingItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MParameter} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ParameterItemProvider parameterItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MParameter}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createParameterAdapter() { - if (parameterItemProvider == null) { - parameterItemProvider = new ParameterItemProvider(this); - } - - return parameterItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.commands.MCategory} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CategoryItemProvider categoryItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.commands.MCategory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createCategoryAdapter() { - if (categoryItemProvider == null) { - categoryItemProvider = new CategoryItemProvider(this); - } - - return categoryItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (bindingContextItemProvider != null) bindingContextItemProvider.dispose(); - if (bindingTableItemProvider != null) bindingTableItemProvider.dispose(); - if (commandItemProvider != null) commandItemProvider.dispose(); - if (commandParameterItemProvider != null) commandParameterItemProvider.dispose(); - if (handlerItemProvider != null) handlerItemProvider.dispose(); - if (keyBindingItemProvider != null) keyBindingItemProvider.dispose(); - if (parameterItemProvider != null) parameterItemProvider.dispose(); - if (categoryItemProvider != null) categoryItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/HandlerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/HandlerItemProvider.java deleted file mode 100644 index 5daace8fd03..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/HandlerItemProvider.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MHandler; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ContributionItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MHandler} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class HandlerItemProvider - extends ContributionItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HandlerItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCommandPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Handler_command_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Handler_command_feature", "_UI_Handler_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.HANDLER__COMMAND, - true, - false, - true, - null, - null, - null)); - } - - /** - * This returns Handler.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Handler")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MHandler)object).getContributionURI(); - return label == null || label.length() == 0 ? - getString("_UI_Handler_type") : //$NON-NLS-1$ - getString("_UI_Handler_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/KeyBindingItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/KeyBindingItemProvider.java deleted file mode 100644 index e43bfeee18e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/KeyBindingItemProvider.java +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.MKeyBinding; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MKeyBinding} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class KeyBindingItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public KeyBindingItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addKeySequencePropertyDescriptor(object); - addCommandPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Key Sequence feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addKeySequencePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_KeySequence_keySequence_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeySequence_keySequence_feature", "_UI_KeySequence_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.KEY_SEQUENCE__KEY_SEQUENCE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_KeyBinding_command_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeyBinding_command_feature", "_UI_KeyBinding_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.KEY_BINDING__COMMAND, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CommandsPackageImpl.Literals.KEY_BINDING__PARAMETERS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns KeyBinding.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/KeyBinding")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MKeyBinding)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_KeyBinding_type") : //$NON-NLS-1$ - getString("_UI_KeyBinding_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MKeyBinding.class)) { - case CommandsPackageImpl.KEY_BINDING__KEY_SEQUENCE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case CommandsPackageImpl.KEY_BINDING__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.KEY_BINDING__PARAMETERS, - MCommandsFactory.INSTANCE.createParameter())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/ParameterItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/ParameterItemProvider.java deleted file mode 100644 index a43fc59d589..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/commands/provider/ParameterItemProvider.java +++ /dev/null @@ -1,186 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.commands.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MParameter; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.commands.MParameter} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ParameterItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ParameterItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - addValuePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Parameter_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Parameter_name_feature", "_UI_Parameter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.PARAMETER__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Value feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Parameter_value_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Parameter_value_feature", "_UI_Parameter_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.PARAMETER__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Parameter.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Parameter")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MParameter)object).getName(); - return label == null || label.length() == 0 ? - getString("_UI_Parameter_type") : //$NON-NLS-1$ - getString("_UI_Parameter_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MParameter.class)) { - case CommandsPackageImpl.PARAMETER__NAME: - case CommandsPackageImpl.PARAMETER__VALUE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/BasicItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/BasicItemProviderAdapterFactory.java deleted file mode 100644 index 63f21732d5f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/BasicItemProviderAdapterFactory.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.descriptor.basic.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.descriptor.basic.util.BasicAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class BasicItemProviderAdapterFactory extends BasicAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BasicItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PartDescriptorItemProvider partDescriptorItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPartDescriptorAdapter() { - if (partDescriptorItemProvider == null) { - partDescriptorItemProvider = new PartDescriptorItemProvider(this); - } - - return partDescriptorItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (partDescriptorItemProvider != null) partDescriptorItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorContainerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorContainerItemProvider.java deleted file mode 100644 index 71a802656ee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorContainerItemProvider.java +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.descriptor.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.descriptor.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorContainer; -import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorContainer} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PartDescriptorContainerItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PartDescriptorContainerItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(BasicPackageImpl.Literals.PART_DESCRIPTOR_CONTAINER__DESCRIPTORS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns PartDescriptorContainer.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PartDescriptorContainer")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_PartDescriptorContainer_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPartDescriptorContainer.class)) { - case BasicPackageImpl.PART_DESCRIPTOR_CONTAINER__DESCRIPTORS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR_CONTAINER__DESCRIPTORS, - MBasicFactory.INSTANCE.createPartDescriptor())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorItemProvider.java deleted file mode 100644 index 0eeeea53a52..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/descriptor/basic/provider/PartDescriptorItemProvider.java +++ /dev/null @@ -1,457 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.descriptor.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor; -import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.provider.UILabelItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PartDescriptorItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PartDescriptorItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addBindingContextsPropertyDescriptor(object); - addAllowMultiplePropertyDescriptor(object); - addCategoryPropertyDescriptor(object); - addCloseablePropertyDescriptor(object); - addDirtyablePropertyDescriptor(object); - addContributionURIPropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Binding Contexts feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addBindingContextsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Bindings_bindingContexts_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Bindings_bindingContexts_feature", "_UI_Bindings_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, - true, - false, - false, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Allow Multiple feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addAllowMultiplePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_allowMultiple_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_allowMultiple_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__ALLOW_MULTIPLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Category feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCategoryPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_category_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_category_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__CATEGORY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Closeable feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCloseablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_closeable_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_closeable_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__CLOSEABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Dirtyable feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDirtyablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_dirtyable_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_dirtyable_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__DIRTYABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_contributionURI_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Description feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PartDescriptor_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_PartDescriptor_description_feature", "_UI_PartDescriptor_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART_DESCRIPTOR__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS); - childrenFeatures.add(BasicPackageImpl.Literals.PART_DESCRIPTOR__MENUS); - childrenFeatures.add(BasicPackageImpl.Literals.PART_DESCRIPTOR__TOOLBAR); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns PartDescriptor.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PartDescriptor")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MPartDescriptor)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_PartDescriptor_type") : //$NON-NLS-1$ - getString("_UI_PartDescriptor_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPartDescriptor.class)) { - case BasicPackageImpl.PART_DESCRIPTOR__LABEL: - case BasicPackageImpl.PART_DESCRIPTOR__ICON_URI: - case BasicPackageImpl.PART_DESCRIPTOR__TOOLTIP: - case BasicPackageImpl.PART_DESCRIPTOR__BINDING_CONTEXTS: - case BasicPackageImpl.PART_DESCRIPTOR__ALLOW_MULTIPLE: - case BasicPackageImpl.PART_DESCRIPTOR__CATEGORY: - case BasicPackageImpl.PART_DESCRIPTOR__CLOSEABLE: - case BasicPackageImpl.PART_DESCRIPTOR__DIRTYABLE: - case BasicPackageImpl.PART_DESCRIPTOR__CONTRIBUTION_URI: - case BasicPackageImpl.PART_DESCRIPTOR__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case BasicPackageImpl.PART_DESCRIPTOR__HANDLERS: - case BasicPackageImpl.PART_DESCRIPTOR__MENUS: - case BasicPackageImpl.PART_DESCRIPTOR__TOOLBAR: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__MENUS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__MENUS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__MENUS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__MENUS, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__TOOLBAR, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR__TOOLBAR, - MMenuFactory.INSTANCE.createRenderedToolBar())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/AddonItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/AddonItemProvider.java deleted file mode 100644 index 1225a100c93..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/AddonItemProvider.java +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MAddon; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.MAddon} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class AddonItemProvider - extends ContributionItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AddonItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns Addon.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Addon")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MAddon)object).getContributionURI(); - return label == null || label.length() == 0 ? - getString("_UI_Addon_type") : //$NON-NLS-1$ - getString("_UI_Addon_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationElementItemProvider.java deleted file mode 100644 index 548c5de7f3a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationElementItemProvider.java +++ /dev/null @@ -1,279 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationElement; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.MUiFactory; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.MApplicationElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ApplicationElementItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addElementIdPropertyDescriptor(object); - addTagsPropertyDescriptor(object); - addContributorURIPropertyDescriptor(object); - addTransientDataPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Element Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addElementIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ApplicationElement_elementId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ApplicationElement_elementId_feature", "_UI_ApplicationElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__ELEMENT_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tags feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTagsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ApplicationElement_tags_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ApplicationElement_tags_feature", "_UI_ApplicationElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TAGS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Contributor URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributorURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ApplicationElement_contributorURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ApplicationElement_contributorURI_feature", "_UI_ApplicationElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__CONTRIBUTOR_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Transient Data feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTransientDataPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ApplicationElement_transientData_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ApplicationElement_transientData_feature", "_UI_ApplicationElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__TRANSIENT_DATA, - true, - false, - false, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ApplicationElement.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ApplicationElement")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MApplicationElement)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ApplicationElement_type") : //$NON-NLS-1$ - getString("_UI_ApplicationElement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MApplicationElement.class)) { - case ApplicationPackageImpl.APPLICATION_ELEMENT__ELEMENT_ID: - case ApplicationPackageImpl.APPLICATION_ELEMENT__TAGS: - case ApplicationPackageImpl.APPLICATION_ELEMENT__CONTRIBUTOR_URI: - case ApplicationPackageImpl.APPLICATION_ELEMENT__TRANSIENT_DATA: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ApplicationPackageImpl.APPLICATION_ELEMENT__PERSISTED_STATE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProvider.java deleted file mode 100644 index a8ea00cc178..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProvider.java +++ /dev/null @@ -1,517 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplication; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.descriptor.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a - * {@link org.eclipse.e4.ui.model.application.MApplication} object. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ -public class ApplicationItemProvider extends ElementContainerItemProvider - implements IEditingDomainItemProvider, IStructuredItemContentProvider, - ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ApplicationItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - addBindingContextsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Context feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Binding Contexts feature. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void addBindingContextsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Bindings_bindingContexts_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Bindings_bindingContexts_feature", "_UI_Bindings_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, - true, - false, - false, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures( - Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - childrenFeatures.add(CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS); - childrenFeatures.add(CommandsPackageImpl.Literals.BINDING_TABLE_CONTAINER__BINDING_TABLES); - childrenFeatures.add(CommandsPackageImpl.Literals.BINDING_TABLE_CONTAINER__ROOT_CONTEXT); - childrenFeatures.add(BasicPackageImpl.Literals.PART_DESCRIPTOR_CONTAINER__DESCRIPTORS); - childrenFeatures.add(MenuPackageImpl.Literals.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS); - childrenFeatures.add(MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS); - childrenFeatures.add(MenuPackageImpl.Literals.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS); - childrenFeatures.add(UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS); - childrenFeatures.add(ApplicationPackageImpl.Literals.APPLICATION__COMMANDS); - childrenFeatures.add(ApplicationPackageImpl.Literals.APPLICATION__ADDONS); - childrenFeatures.add(ApplicationPackageImpl.Literals.APPLICATION__CATEGORIES); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Application.gif. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Application")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MApplication)object).getElementId(); - return label == null || label.length() == 0 ? getString("_UI_Application_type") : //$NON-NLS-1$ - getString("_UI_Application_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> <!-- - * end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MApplication.class)) { - case ApplicationPackageImpl.APPLICATION__CONTEXT: - case ApplicationPackageImpl.APPLICATION__VARIABLES: - case ApplicationPackageImpl.APPLICATION__BINDING_CONTEXTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ApplicationPackageImpl.APPLICATION__PROPERTIES: - case ApplicationPackageImpl.APPLICATION__HANDLERS: - case ApplicationPackageImpl.APPLICATION__BINDING_TABLES: - case ApplicationPackageImpl.APPLICATION__ROOT_CONTEXT: - case ApplicationPackageImpl.APPLICATION__DESCRIPTORS: - case ApplicationPackageImpl.APPLICATION__MENU_CONTRIBUTIONS: - case ApplicationPackageImpl.APPLICATION__TOOL_BAR_CONTRIBUTIONS: - case ApplicationPackageImpl.APPLICATION__TRIM_CONTRIBUTIONS: - case ApplicationPackageImpl.APPLICATION__SNIPPETS: - case ApplicationPackageImpl.APPLICATION__COMMANDS: - case ApplicationPackageImpl.APPLICATION__ADDONS: - case ApplicationPackageImpl.APPLICATION__CATEGORIES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s - * describing the children that can be created under this object. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected void collectNewChildDescriptors( - Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.BINDING_TABLE_CONTAINER__BINDING_TABLES, - MCommandsFactory.INSTANCE.createBindingTable())); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.BINDING_TABLE_CONTAINER__ROOT_CONTEXT, - MCommandsFactory.INSTANCE.createBindingContext())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART_DESCRIPTOR_CONTAINER__DESCRIPTORS, - MBasicFactory.INSTANCE.createPartDescriptor())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createArea())); - - newChildDescriptors.add - (createChildParameter - (ApplicationPackageImpl.Literals.APPLICATION__COMMANDS, - MCommandsFactory.INSTANCE.createCommand())); - - newChildDescriptors.add - (createChildParameter - (ApplicationPackageImpl.Literals.APPLICATION__ADDONS, - MApplicationFactory.INSTANCE.createAddon())); - - newChildDescriptors.add - (createChildParameter - (ApplicationPackageImpl.Literals.APPLICATION__CATEGORIES, - MCommandsFactory.INSTANCE.createCategory())); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES || - childFeature == UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN || - childFeature == UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS || - childFeature == MenuPackageImpl.Literals.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS || - childFeature == MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS || - childFeature == MenuPackageImpl.Literals.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - - /** - * Return the resource locator for this item provider's resources. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProviderAdapterFactory.java deleted file mode 100644 index 45471e70eaf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ApplicationItemProviderAdapterFactory.java +++ /dev/null @@ -1,276 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.util.ApplicationAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ApplicationItemProviderAdapterFactory extends ApplicationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ApplicationItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected StringToStringMapItemProvider stringToStringMapItemProvider; - - /** - * This creates an adapter for a {@link java.util.Map.Entry}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createStringToStringMapAdapter() { - if (stringToStringMapItemProvider == null) { - stringToStringMapItemProvider = new StringToStringMapItemProvider(this); - } - - return stringToStringMapItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.MApplication} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ApplicationItemProvider applicationItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.MApplication}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createApplicationAdapter() { - if (applicationItemProvider == null) { - applicationItemProvider = new ApplicationItemProvider(this); - } - - return applicationItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.MAddon} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AddonItemProvider addonItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.MAddon}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createAddonAdapter() { - if (addonItemProvider == null) { - addonItemProvider = new AddonItemProvider(this); - } - - return addonItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link java.util.Map.Entry} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected StringToObjectMapItemProvider stringToObjectMapItemProvider; - - /** - * This creates an adapter for a {@link java.util.Map.Entry}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createStringToObjectMapAdapter() { - if (stringToObjectMapItemProvider == null) { - stringToObjectMapItemProvider = new StringToObjectMapItemProvider(this); - } - - return stringToObjectMapItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (stringToStringMapItemProvider != null) stringToStringMapItemProvider.dispose(); - if (applicationItemProvider != null) applicationItemProvider.dispose(); - if (addonItemProvider != null) addonItemProvider.dispose(); - if (stringToObjectMapItemProvider != null) stringToObjectMapItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ContributionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ContributionItemProvider.java deleted file mode 100644 index f919e681196..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/ContributionItemProvider.java +++ /dev/null @@ -1,161 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MContribution; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.MContribution} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ContributionItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ContributionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MContribution)object).getContributionURI(); - return label == null || label.length() == 0 ? - getString("_UI_Contribution_type") : //$NON-NLS-1$ - getString("_UI_Contribution_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MContribution.class)) { - case ApplicationPackageImpl.CONTRIBUTION__CONTRIBUTION_URI: - case ApplicationPackageImpl.CONTRIBUTION__OBJECT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToObjectMapItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToObjectMapItemProvider.java deleted file mode 100644 index 50a9d136cfe..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToObjectMapItemProvider.java +++ /dev/null @@ -1,187 +0,0 @@ -/**
- * Copyright (c) 2008, 2011 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- */
-package org.eclipse.e4.ui.model.application.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-/**
- * This is the item provider adapter for a {@link java.util.Map.Entry} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class StringToObjectMapItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StringToObjectMapItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- addKeyPropertyDescriptor(object);
- addValuePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Key feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addKeyPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_StringToObjectMap_key_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_StringToObjectMap_key_feature", "_UI_StringToObjectMap_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- ApplicationPackageImpl.Literals.STRING_TO_OBJECT_MAP__KEY,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Value feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addValuePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_StringToObjectMap_value_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_StringToObjectMap_value_feature", "_UI_StringToObjectMap_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- ApplicationPackageImpl.Literals.STRING_TO_OBJECT_MAP__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns StringToObjectMap.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/StringToObjectMap")); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- Map.Entry<?, ?> stringToObjectMap = (Map.Entry<?, ?>)object;
- return "" + stringToObjectMap.getKey() + " -> " + stringToObjectMap.getValue(); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(Map.Entry.class)) {
- case ApplicationPackageImpl.STRING_TO_OBJECT_MAP__KEY:
- case ApplicationPackageImpl.STRING_TO_OBJECT_MAP__VALUE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return UIElementsEditPlugin.INSTANCE;
- }
-
-}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToStringMapItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToStringMapItemProvider.java deleted file mode 100644 index 4568b4bf351..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/StringToStringMapItemProvider.java +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - - -import java.util.Collection; -import java.util.List; -import java.util.Map; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link java.util.Map.Entry} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class StringToStringMapItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public StringToStringMapItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addKeyPropertyDescriptor(object); - addValuePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Key feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addKeyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StringToStringMap_key_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_StringToStringMap_key_feature", "_UI_StringToStringMap_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP__KEY, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Value feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addValuePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StringToStringMap_value_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_StringToStringMap_value_feature", "_UI_StringToStringMap_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP__VALUE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns StringToStringMap.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/StringToStringMap")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - Map.Entry<?, ?> stringToStringMap = (Map.Entry<?, ?>)object; - return "" + stringToStringMap.getKey() + " -> " + stringToStringMap.getValue(); //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Map.Entry.class)) { - case ApplicationPackageImpl.STRING_TO_STRING_MAP__KEY: - case ApplicationPackageImpl.STRING_TO_STRING_MAP__VALUE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/UIElementsEditPlugin.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/UIElementsEditPlugin.java deleted file mode 100644 index 3013feb0749..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/provider/UIElementsEditPlugin.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.provider; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the UIElements edit plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public final class UIElementsEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final UIElementsEditPlugin INSTANCE = new UIElementsEditPlugin(); - - /** - * Keep track of the singleton. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UIElementsEditPlugin() { - super - (new ResourceLocator [] { - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse <b>Plugin</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AdvancedItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AdvancedItemProviderAdapterFactory.java deleted file mode 100644 index a442e89b282..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AdvancedItemProviderAdapterFactory.java +++ /dev/null @@ -1,276 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.advanced.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.ui.advanced.util.AdvancedAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class AdvancedItemProviderAdapterFactory extends AdvancedAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AdvancedItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PlaceholderItemProvider placeholderItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPlaceholderAdapter() { - if (placeholderItemProvider == null) { - placeholderItemProvider = new PlaceholderItemProvider(this); - } - - return placeholderItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspective} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PerspectiveItemProvider perspectiveItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspective}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPerspectiveAdapter() { - if (perspectiveItemProvider == null) { - perspectiveItemProvider = new PerspectiveItemProvider(this); - } - - return perspectiveItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspectiveStack} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PerspectiveStackItemProvider perspectiveStackItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspectiveStack}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPerspectiveStackAdapter() { - if (perspectiveStackItemProvider == null) { - perspectiveStackItemProvider = new PerspectiveStackItemProvider(this); - } - - return perspectiveStackItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.advanced.MArea} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AreaItemProvider areaItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MArea}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createAreaAdapter() { - if (areaItemProvider == null) { - areaItemProvider = new AreaItemProvider(this); - } - - return areaItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (placeholderItemProvider != null) placeholderItemProvider.dispose(); - if (perspectiveItemProvider != null) perspectiveItemProvider.dispose(); - if (perspectiveStackItemProvider != null) perspectiveStackItemProvider.dispose(); - if (areaItemProvider != null) areaItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AreaItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AreaItemProvider.java deleted file mode 100644 index 1ed063ea2c9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/AreaItemProvider.java +++ /dev/null @@ -1,220 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.advanced.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; - -import org.eclipse.e4.ui.model.application.ui.advanced.MArea; - -import org.eclipse.e4.ui.model.application.ui.advanced.impl.AdvancedPackageImpl; - -import org.eclipse.e4.ui.model.application.ui.basic.provider.PartSashContainerItemProvider; - -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MArea} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class AreaItemProvider - extends PartSashContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public AreaItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Area.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Area")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MArea)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_Area_type") : //$NON-NLS-1$ - getString("_UI_Area_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MArea.class)) { - case AdvancedPackageImpl.AREA__LABEL: - case AdvancedPackageImpl.AREA__ICON_URI: - case AdvancedPackageImpl.AREA__TOOLTIP: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveItemProvider.java deleted file mode 100644 index f69879dfeec..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveItemProvider.java +++ /dev/null @@ -1,339 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.advanced.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.advanced.MPerspective; -import org.eclipse.e4.ui.model.application.ui.advanced.impl.AdvancedPackageImpl; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspective} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PerspectiveItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PerspectiveItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - childrenFeatures.add(AdvancedPackageImpl.Literals.PERSPECTIVE__WINDOWS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Perspective.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Perspective")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MPerspective)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_Perspective_type") : //$NON-NLS-1$ - getString("_UI_Perspective_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPerspective.class)) { - case AdvancedPackageImpl.PERSPECTIVE__LABEL: - case AdvancedPackageImpl.PERSPECTIVE__ICON_URI: - case AdvancedPackageImpl.PERSPECTIVE__TOOLTIP: - case AdvancedPackageImpl.PERSPECTIVE__CONTEXT: - case AdvancedPackageImpl.PERSPECTIVE__VARIABLES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case AdvancedPackageImpl.PERSPECTIVE__PROPERTIES: - case AdvancedPackageImpl.PERSPECTIVE__WINDOWS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - - newChildDescriptors.add - (createChildParameter - (AdvancedPackageImpl.Literals.PERSPECTIVE__WINDOWS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (AdvancedPackageImpl.Literals.PERSPECTIVE__WINDOWS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES || - childFeature == UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN || - childFeature == AdvancedPackageImpl.Literals.PERSPECTIVE__WINDOWS; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveStackItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveStackItemProvider.java deleted file mode 100644 index 8e5a6a53fac..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PerspectiveStackItemProvider.java +++ /dev/null @@ -1,363 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.advanced.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.advanced.MPerspectiveStack; -import org.eclipse.e4.ui.model.application.ui.advanced.impl.AdvancedPackageImpl; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPerspectiveStack} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PerspectiveStackItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PerspectiveStackItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addSelectedElementPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Selected Element feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSelectedElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementContainer_selectedElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ElementContainer_selectedElement_feature", "_UI_ElementContainer_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.ELEMENT_CONTAINER__SELECTED_ELEMENT, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns PerspectiveStack.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PerspectiveStack")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MPerspectiveStack)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_PerspectiveStack_type") : //$NON-NLS-1$ - getString("_UI_PerspectiveStack_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPerspectiveStack.class)) { - case AdvancedPackageImpl.PERSPECTIVE_STACK__CHILDREN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createArea())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimBar())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PlaceholderItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PlaceholderItemProvider.java deleted file mode 100644 index 77476de81e2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/advanced/provider/PlaceholderItemProvider.java +++ /dev/null @@ -1,187 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.advanced.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder; -import org.eclipse.e4.ui.model.application.ui.advanced.impl.AdvancedPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PlaceholderItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PlaceholderItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addRefPropertyDescriptor(object); - addCloseablePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Ref feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addRefPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Placeholder_ref_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Placeholder_ref_feature", "_UI_Placeholder_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - AdvancedPackageImpl.Literals.PLACEHOLDER__REF, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Closeable feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCloseablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Placeholder_closeable_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Placeholder_closeable_feature", "_UI_Placeholder_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - AdvancedPackageImpl.Literals.PLACEHOLDER__CLOSEABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Placeholder.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Placeholder")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MPlaceholder)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_Placeholder_type") : //$NON-NLS-1$ - getString("_UI_Placeholder_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPlaceholder.class)) { - case AdvancedPackageImpl.PLACEHOLDER__CLOSEABLE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/BasicItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/BasicItemProviderAdapterFactory.java deleted file mode 100644 index 043bbded7f1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/BasicItemProviderAdapterFactory.java +++ /dev/null @@ -1,348 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.ui.basic.util.BasicAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class BasicItemProviderAdapterFactory extends BasicAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BasicItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MPart} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PartItemProvider partItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPart}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPartAdapter() { - if (partItemProvider == null) { - partItemProvider = new PartItemProvider(this); - } - - return partItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MInputPart} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected InputPartItemProvider inputPartItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MInputPart}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createInputPartAdapter() { - if (inputPartItemProvider == null) { - inputPartItemProvider = new InputPartItemProvider(this); - } - - return inputPartItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MPartStack} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PartStackItemProvider partStackItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPartStack}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPartStackAdapter() { - if (partStackItemProvider == null) { - partStackItemProvider = new PartStackItemProvider(this); - } - - return partStackItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PartSashContainerItemProvider partSashContainerItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPartSashContainerAdapter() { - if (partSashContainerItemProvider == null) { - partSashContainerItemProvider = new PartSashContainerItemProvider(this); - } - - return partSashContainerItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MWindow} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected WindowItemProvider windowItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MWindow}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createWindowAdapter() { - if (windowItemProvider == null) { - windowItemProvider = new WindowItemProvider(this); - } - - return windowItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TrimmedWindowItemProvider trimmedWindowItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createTrimmedWindowAdapter() { - if (trimmedWindowItemProvider == null) { - trimmedWindowItemProvider = new TrimmedWindowItemProvider(this); - } - - return trimmedWindowItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimBar} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TrimBarItemProvider trimBarItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimBar}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createTrimBarAdapter() { - if (trimBarItemProvider == null) { - trimBarItemProvider = new TrimBarItemProvider(this); - } - - return trimBarItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (partItemProvider != null) partItemProvider.dispose(); - if (inputPartItemProvider != null) inputPartItemProvider.dispose(); - if (partStackItemProvider != null) partStackItemProvider.dispose(); - if (partSashContainerItemProvider != null) partSashContainerItemProvider.dispose(); - if (windowItemProvider != null) windowItemProvider.dispose(); - if (trimmedWindowItemProvider != null) trimmedWindowItemProvider.dispose(); - if (trimBarItemProvider != null) trimBarItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/InputPartItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/InputPartItemProvider.java deleted file mode 100644 index 2c149fc86ee..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/InputPartItemProvider.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.basic.MInputPart; -import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MInputPart} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class InputPartItemProvider - extends PartItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InputPartItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addInputURIPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Input URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addInputURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Input_inputURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Input_inputURI_feature", "_UI_Input_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.INPUT__INPUT_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns InputPart.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/InputPart")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MInputPart)object).getContributionURI(); - return label == null || label.length() == 0 ? - getString("_UI_InputPart_type") : //$NON-NLS-1$ - getString("_UI_InputPart_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MInputPart.class)) { - case BasicPackageImpl.INPUT_PART__INPUT_URI: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartItemProvider.java deleted file mode 100644 index 96b5065f5b8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartItemProvider.java +++ /dev/null @@ -1,514 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ContributionItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MUiFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MPart; -import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPart} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PartItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PartItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addDirtyPropertyDescriptor(object); - addBindingContextsPropertyDescriptor(object); - addCloseablePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Dirty feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDirtyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Dirtyable_dirty_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Dirtyable_dirty_feature", "_UI_Dirtyable_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.DIRTYABLE__DIRTY, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Binding Contexts feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addBindingContextsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Bindings_bindingContexts_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Bindings_bindingContexts_feature", "_UI_Bindings_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, - true, - false, - false, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Closeable feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCloseablePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Part_closeable_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Part_closeable_feature", "_UI_Part_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART__CLOSEABLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Description feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Part_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Part_description_feature", "_UI_Part_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.PART__DESCRIPTION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - childrenFeatures.add(CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS); - childrenFeatures.add(BasicPackageImpl.Literals.PART__MENUS); - childrenFeatures.add(BasicPackageImpl.Literals.PART__TOOLBAR); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Part.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Part")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MPart)object).getContributionURI(); - return label == null || label.length() == 0 ? - getString("_UI_Part_type") : //$NON-NLS-1$ - getString("_UI_Part_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPart.class)) { - case BasicPackageImpl.PART__CONTRIBUTION_URI: - case BasicPackageImpl.PART__OBJECT: - case BasicPackageImpl.PART__CONTEXT: - case BasicPackageImpl.PART__VARIABLES: - case BasicPackageImpl.PART__LABEL: - case BasicPackageImpl.PART__ICON_URI: - case BasicPackageImpl.PART__TOOLTIP: - case BasicPackageImpl.PART__DIRTY: - case BasicPackageImpl.PART__BINDING_CONTEXTS: - case BasicPackageImpl.PART__CLOSEABLE: - case BasicPackageImpl.PART__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case BasicPackageImpl.PART__PROPERTIES: - case BasicPackageImpl.PART__HANDLERS: - case BasicPackageImpl.PART__MENUS: - case BasicPackageImpl.PART__TOOLBAR: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__MENUS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__MENUS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__MENUS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__MENUS, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__TOOLBAR, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.PART__TOOLBAR, - MMenuFactory.INSTANCE.createRenderedToolBar())); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartSashContainerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartSashContainerItemProvider.java deleted file mode 100644 index a871c281561..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartSashContainerItemProvider.java +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.GenericTileItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PartSashContainerItemProvider - extends GenericTileItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PartSashContainerItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns PartSashContainer.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PartSashContainer")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MPartSashContainer)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_PartSashContainer_type") : //$NON-NLS-1$ - getString("_UI_PartSashContainer_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartStackItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartStackItemProvider.java deleted file mode 100644 index 74fdacf44ea..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/PartStackItemProvider.java +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.basic.MPartStack; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.GenericStackItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MPartStack} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PartStackItemProvider - extends GenericStackItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PartStackItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns PartStack.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PartStack")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MPartStack)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_PartStack_type") : //$NON-NLS-1$ - getString("_UI_PartStack_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/StackElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/StackElementItemProvider.java deleted file mode 100644 index 72439bc144b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/StackElementItemProvider.java +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.basic.MStackElement; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MStackElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class StackElementItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public StackElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns StackElement.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/StackElement")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MStackElement)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_StackElement_type") : //$NON-NLS-1$ - getString("_UI_StackElement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimBarItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimBarItemProvider.java deleted file mode 100644 index 0f906e06940..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimBarItemProvider.java +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.GenericTrimContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimBar} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class TrimBarItemProvider - extends GenericTrimContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TrimBarItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns TrimBar.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/TrimBar")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MTrimBar)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_TrimBar_type") : //$NON-NLS-1$ - getString("_UI_TrimBar_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimElementItemProvider.java deleted file mode 100644 index eeb7492191b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimElementItemProvider.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.basic.MTrimElement; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class TrimElementItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TrimElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MTrimElement)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_TrimElement_type") : //$NON-NLS-1$ - getString("_UI_TrimElement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimmedWindowItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimmedWindowItemProvider.java deleted file mode 100644 index 8a8f0cd7f55..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/TrimmedWindowItemProvider.java +++ /dev/null @@ -1,186 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow; -import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow} object. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ -public class TrimmedWindowItemProvider extends WindowItemProvider implements - IEditingDomainItemProvider, IStructuredItemContentProvider, - ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public TrimmedWindowItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures( - Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(BasicPackageImpl.Literals.TRIMMED_WINDOW__TRIM_BARS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns TrimmedWindow.gif. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/TrimmedWindow")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MTrimmedWindow) object).getLabel(); - return label == null || label.length() == 0 ? getString("_UI_TrimmedWindow_type") : //$NON-NLS-1$ - getString("_UI_TrimmedWindow_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> <!-- - * end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MTrimmedWindow.class)) { - case BasicPackageImpl.TRIMMED_WINDOW__TRIM_BARS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s - * describing the children that can be created under this object. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected void collectNewChildDescriptors( - Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.TRIMMED_WINDOW__TRIM_BARS, - MBasicFactory.INSTANCE.createTrimBar())); - } - - /** - * This returns the label text for - * {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, - Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES || - childFeature == UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN || - childFeature == UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS || - childFeature == BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS || - childFeature == BasicPackageImpl.Literals.WINDOW__WINDOWS || - childFeature == BasicPackageImpl.Literals.TRIMMED_WINDOW__TRIM_BARS || - childFeature == BasicPackageImpl.Literals.WINDOW__MAIN_MENU; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/WindowItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/WindowItemProvider.java deleted file mode 100644 index ac627fd97c4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/basic/provider/WindowItemProvider.java +++ /dev/null @@ -1,852 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.basic.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MWindow; -import org.eclipse.e4.ui.model.application.ui.basic.impl.BasicPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.basic.MWindow} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class WindowItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public WindowItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - addBindingContextsPropertyDescriptor(object); - addXPropertyDescriptor(object); - addYPropertyDescriptor(object); - addWidthPropertyDescriptor(object); - addHeightPropertyDescriptor(object); - addSharedElementsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Binding Contexts feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addBindingContextsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Bindings_bindingContexts_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Bindings_bindingContexts_feature", "_UI_Bindings_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - CommandsPackageImpl.Literals.BINDINGS__BINDING_CONTEXTS, - true, - false, - false, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the X feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addXPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Window_x_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Window_x_feature", "_UI_Window_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.WINDOW__X, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Y feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addYPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Window_y_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Window_y_feature", "_UI_Window_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.WINDOW__Y, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Width feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addWidthPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Window_width_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Window_width_feature", "_UI_Window_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.WINDOW__WIDTH, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Height feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addHeightPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Window_height_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Window_height_feature", "_UI_Window_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.WINDOW__HEIGHT, - true, - false, - false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Shared Elements feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSharedElementsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Window_sharedElements_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Window_sharedElements_feature", "_UI_Window_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - true, - false, - false, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - childrenFeatures.add(CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS); - childrenFeatures.add(UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS); - childrenFeatures.add(BasicPackageImpl.Literals.WINDOW__MAIN_MENU); - childrenFeatures.add(BasicPackageImpl.Literals.WINDOW__WINDOWS); - childrenFeatures.add(BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Window.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Window")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MWindow)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_Window_type") : //$NON-NLS-1$ - getString("_UI_Window_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MWindow.class)) { - case BasicPackageImpl.WINDOW__LABEL: - case BasicPackageImpl.WINDOW__ICON_URI: - case BasicPackageImpl.WINDOW__TOOLTIP: - case BasicPackageImpl.WINDOW__CONTEXT: - case BasicPackageImpl.WINDOW__VARIABLES: - case BasicPackageImpl.WINDOW__BINDING_CONTEXTS: - case BasicPackageImpl.WINDOW__X: - case BasicPackageImpl.WINDOW__Y: - case BasicPackageImpl.WINDOW__WIDTH: - case BasicPackageImpl.WINDOW__HEIGHT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case BasicPackageImpl.WINDOW__PROPERTIES: - case BasicPackageImpl.WINDOW__HANDLERS: - case BasicPackageImpl.WINDOW__SNIPPETS: - case BasicPackageImpl.WINDOW__MAIN_MENU: - case BasicPackageImpl.WINDOW__WINDOWS: - case BasicPackageImpl.WINDOW__SHARED_ELEMENTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - - newChildDescriptors.add - (createChildParameter - (CommandsPackageImpl.Literals.HANDLER_CONTAINER__HANDLERS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS, - MAdvancedFactory.INSTANCE.createArea())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__MAIN_MENU, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__MAIN_MENU, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__MAIN_MENU, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__MAIN_MENU, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__WINDOWS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__WINDOWS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS, - MAdvancedFactory.INSTANCE.createArea())); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES || - childFeature == UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN || - childFeature == UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS || - childFeature == BasicPackageImpl.Literals.WINDOW__SHARED_ELEMENTS || - childFeature == BasicPackageImpl.Literals.WINDOW__WINDOWS || - childFeature == BasicPackageImpl.Literals.WINDOW__MAIN_MENU; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectMenuItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectMenuItemItemProvider.java deleted file mode 100644 index e6f704d9393..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectMenuItemItemProvider.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class DirectMenuItemItemProvider - extends MenuItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DirectMenuItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns DirectMenuItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DirectMenuItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MDirectMenuItem)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_DirectMenuItem_type") : //$NON-NLS-1$ - getString("_UI_DirectMenuItem_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MDirectMenuItem.class)) { - case MenuPackageImpl.DIRECT_MENU_ITEM__CONTRIBUTION_URI: - case MenuPackageImpl.DIRECT_MENU_ITEM__OBJECT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectToolItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectToolItemItemProvider.java deleted file mode 100644 index aa2e97d26b5..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DirectToolItemItemProvider.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MDirectToolItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectToolItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class DirectToolItemItemProvider - extends ToolItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DirectToolItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns DirectToolItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DirectToolItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MDirectToolItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_DirectToolItem_type") : //$NON-NLS-1$ - getString("_UI_DirectToolItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MDirectToolItem.class)) { - case MenuPackageImpl.DIRECT_TOOL_ITEM__CONTRIBUTION_URI: - case MenuPackageImpl.DIRECT_TOOL_ITEM__OBJECT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DynamicMenuContributionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DynamicMenuContributionItemProvider.java deleted file mode 100644 index 3e16e1ef576..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/DynamicMenuContributionItemProvider.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; - -import org.eclipse.e4.ui.model.application.ui.menu.MDynamicMenuContribution; - -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDynamicMenuContribution} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class DynamicMenuContributionItemProvider - extends MenuItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DynamicMenuContributionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns DynamicMenuContribution.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/DynamicMenuContribution")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MDynamicMenuContribution)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_DynamicMenuContribution_type") : //$NON-NLS-1$ - getString("_UI_DynamicMenuContribution_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MDynamicMenuContribution.class)) { - case MenuPackageImpl.DYNAMIC_MENU_CONTRIBUTION__CONTRIBUTION_URI: - case MenuPackageImpl.DYNAMIC_MENU_CONTRIBUTION__OBJECT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledItemItemProvider.java deleted file mode 100644 index a048364acdf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledItemItemProvider.java +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MHandledItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class HandledItemItemProvider - extends ItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HandledItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCommandPropertyDescriptor(object); - addWbCommandPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_command_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_command_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__COMMAND, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Wb Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addWbCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_wbCommand_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_wbCommand_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__WB_COMMAND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns HandledItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/HandledItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MHandledItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_HandledItem_type") : //$NON-NLS-1$ - getString("_UI_HandledItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MHandledItem.class)) { - case MenuPackageImpl.HANDLED_ITEM__WB_COMMAND: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case MenuPackageImpl.HANDLED_ITEM__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS, - MCommandsFactory.INSTANCE.createParameter())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledMenuItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledMenuItemItemProvider.java deleted file mode 100644 index 6251fa95be2..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledMenuItemItemProvider.java +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class HandledMenuItemItemProvider - extends MenuItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HandledMenuItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCommandPropertyDescriptor(object); - addWbCommandPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_command_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_command_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__COMMAND, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Wb Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addWbCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_wbCommand_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_wbCommand_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__WB_COMMAND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns HandledMenuItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/HandledMenuItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MHandledMenuItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_HandledMenuItem_type") : //$NON-NLS-1$ - getString("_UI_HandledMenuItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MHandledMenuItem.class)) { - case MenuPackageImpl.HANDLED_MENU_ITEM__WB_COMMAND: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case MenuPackageImpl.HANDLED_MENU_ITEM__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS, - MCommandsFactory.INSTANCE.createParameter())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledToolItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledToolItemItemProvider.java deleted file mode 100644 index 0da4846f92b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/HandledToolItemItemProvider.java +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MHandledToolItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledToolItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class HandledToolItemItemProvider - extends ToolItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public HandledToolItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCommandPropertyDescriptor(object); - addWbCommandPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_command_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_command_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__COMMAND, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Wb Command feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addWbCommandPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_HandledItem_wbCommand_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_HandledItem_wbCommand_feature", "_UI_HandledItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.HANDLED_ITEM__WB_COMMAND, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns HandledToolItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/HandledToolItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MHandledToolItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_HandledToolItem_type") : //$NON-NLS-1$ - getString("_UI_HandledToolItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MHandledToolItem.class)) { - case MenuPackageImpl.HANDLED_TOOL_ITEM__WB_COMMAND: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case MenuPackageImpl.HANDLED_TOOL_ITEM__PARAMETERS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.HANDLED_ITEM__PARAMETERS, - MCommandsFactory.INSTANCE.createParameter())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ItemItemProvider.java deleted file mode 100644 index 25ea0fd46cf..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ItemItemProvider.java +++ /dev/null @@ -1,284 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ItemItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addEnabledPropertyDescriptor(object); - addSelectedPropertyDescriptor(object); - addTypePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Enabled feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addEnabledPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Item_enabled_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Item_enabled_feature", "_UI_Item_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.ITEM__ENABLED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Selected feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSelectedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Item_selected_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Item_selected_feature", "_UI_Item_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.ITEM__SELECTED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Type feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTypePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Item_type_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Item_type_feature", "_UI_Item_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.ITEM__TYPE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns Item.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Item")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_Item_type") : //$NON-NLS-1$ - getString("_UI_Item_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MItem.class)) { - case MenuPackageImpl.ITEM__LABEL: - case MenuPackageImpl.ITEM__ICON_URI: - case MenuPackageImpl.ITEM__TOOLTIP: - case MenuPackageImpl.ITEM__ENABLED: - case MenuPackageImpl.ITEM__SELECTED: - case MenuPackageImpl.ITEM__TYPE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionItemProvider.java deleted file mode 100644 index be0d958c3a7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionItemProvider.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuContribution; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuContribution} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuContributionItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuContributionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addPositionInParentPropertyDescriptor(object); - addParentIdPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Position In Parent feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addPositionInParentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MenuContribution_positionInParent_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_MenuContribution_positionInParent_feature", "_UI_MenuContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.MENU_CONTRIBUTION__POSITION_IN_PARENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Parent Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addParentIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MenuContribution_parentId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_MenuContribution_parentId_feature", "_UI_MenuContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.MENU_CONTRIBUTION__PARENT_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns MenuContribution.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/MenuContribution")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MMenuContribution)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_MenuContribution_type") : //$NON-NLS-1$ - getString("_UI_MenuContribution_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MMenuContribution.class)) { - case MenuPackageImpl.MENU_CONTRIBUTION__POSITION_IN_PARENT: - case MenuPackageImpl.MENU_CONTRIBUTION__PARENT_ID: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionsItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionsItemProvider.java deleted file mode 100644 index f3b7aabe7f4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuContributionsItemProvider.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuContributions; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuContributions} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuContributionsItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuContributionsItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_MenuContributions_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MMenuContributions.class)) { - case MenuPackageImpl.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.MENU_CONTRIBUTIONS__MENU_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createMenuContribution())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuElementItemProvider.java deleted file mode 100644 index 66d57e7c634..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuElementItemProvider.java +++ /dev/null @@ -1,225 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuElementItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - addMnemonicsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Mnemonics feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addMnemonicsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MenuElement_mnemonics_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_MenuElement_mnemonics_feature", "_UI_MenuElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.MENU_ELEMENT__MNEMONICS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MMenuElement)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_MenuElement_type") : //$NON-NLS-1$ - getString("_UI_MenuElement_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MMenuElement.class)) { - case MenuPackageImpl.MENU_ELEMENT__LABEL: - case MenuPackageImpl.MENU_ELEMENT__ICON_URI: - case MenuPackageImpl.MENU_ELEMENT__TOOLTIP: - case MenuPackageImpl.MENU_ELEMENT__MNEMONICS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemItemProvider.java deleted file mode 100644 index e12713d6f78..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuItemItemProvider - extends ItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addMnemonicsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Mnemonics feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addMnemonicsPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_MenuElement_mnemonics_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_MenuElement_mnemonics_feature", "_UI_MenuElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.MENU_ELEMENT__MNEMONICS, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns MenuItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/MenuItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MMenuItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_MenuItem_type") : //$NON-NLS-1$ - getString("_UI_MenuItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MMenuItem.class)) { - case MenuPackageImpl.MENU_ITEM__MNEMONICS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProvider.java deleted file mode 100644 index 55fc7f53dac..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProvider.java +++ /dev/null @@ -1,376 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenu; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenu} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuItemProvider - extends MenuElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addSelectedElementPropertyDescriptor(object); - addEnabledPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Selected Element feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSelectedElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementContainer_selectedElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ElementContainer_selectedElement_feature", "_UI_ElementContainer_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.ELEMENT_CONTAINER__SELECTED_ELEMENT, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Enabled feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addEnabledPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Menu_enabled_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Menu_enabled_feature", "_UI_Menu_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.MENU__ENABLED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Menu.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/Menu")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MMenu)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_Menu_type") : //$NON-NLS-1$ - getString("_UI_Menu_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MMenu.class)) { - case MenuPackageImpl.MENU__ENABLED: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case MenuPackageImpl.MENU__CHILDREN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createArea())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProviderAdapterFactory.java deleted file mode 100644 index 2f4d1c5c8aa..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuItemProviderAdapterFactory.java +++ /dev/null @@ -1,684 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.ui.menu.util.MenuAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuItemProviderAdapterFactory extends MenuAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuSeparator} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MenuSeparatorItemProvider menuSeparatorItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuSeparator}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createMenuSeparatorAdapter() { - if (menuSeparatorItemProvider == null) { - menuSeparatorItemProvider = new MenuSeparatorItemProvider(this); - } - - return menuSeparatorItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MMenu} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MenuItemProvider menuItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenu}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createMenuAdapter() { - if (menuItemProvider == null) { - menuItemProvider = new MenuItemProvider(this); - } - - return menuItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuContribution} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MenuContributionItemProvider menuContributionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuContribution}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createMenuContributionAdapter() { - if (menuContributionItemProvider == null) { - menuContributionItemProvider = new MenuContributionItemProvider(this); - } - - return menuContributionItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MPopupMenu} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PopupMenuItemProvider popupMenuItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MPopupMenu}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createPopupMenuAdapter() { - if (popupMenuItemProvider == null) { - popupMenuItemProvider = new PopupMenuItemProvider(this); - } - - return popupMenuItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DirectMenuItemItemProvider directMenuItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createDirectMenuItemAdapter() { - if (directMenuItemItemProvider == null) { - directMenuItemItemProvider = new DirectMenuItemItemProvider(this); - } - - return directMenuItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HandledMenuItemItemProvider handledMenuItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createHandledMenuItemAdapter() { - if (handledMenuItemItemProvider == null) { - handledMenuItemItemProvider = new HandledMenuItemItemProvider(this); - } - - return handledMenuItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBar} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ToolBarItemProvider toolBarItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBar}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createToolBarAdapter() { - if (toolBarItemProvider == null) { - toolBarItemProvider = new ToolBarItemProvider(this); - } - - return toolBarItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MToolControl} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ToolControlItemProvider toolControlItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolControl}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createToolControlAdapter() { - if (toolControlItemProvider == null) { - toolControlItemProvider = new ToolControlItemProvider(this); - } - - return toolControlItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledToolItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected HandledToolItemItemProvider handledToolItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MHandledToolItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createHandledToolItemAdapter() { - if (handledToolItemItemProvider == null) { - handledToolItemItemProvider = new HandledToolItemItemProvider(this); - } - - return handledToolItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectToolItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DirectToolItemItemProvider directToolItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDirectToolItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createDirectToolItemAdapter() { - if (directToolItemItemProvider == null) { - directToolItemItemProvider = new DirectToolItemItemProvider(this); - } - - return directToolItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarSeparator} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ToolBarSeparatorItemProvider toolBarSeparatorItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarSeparator}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createToolBarSeparatorAdapter() { - if (toolBarSeparatorItemProvider == null) { - toolBarSeparatorItemProvider = new ToolBarSeparatorItemProvider(this); - } - - return toolBarSeparatorItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenu} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RenderedMenuItemProvider renderedMenuItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenu}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createRenderedMenuAdapter() { - if (renderedMenuItemProvider == null) { - renderedMenuItemProvider = new RenderedMenuItemProvider(this); - } - - return renderedMenuItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedToolBar} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RenderedToolBarItemProvider renderedToolBarItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedToolBar}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createRenderedToolBarAdapter() { - if (renderedToolBarItemProvider == null) { - renderedToolBarItemProvider = new RenderedToolBarItemProvider(this); - } - - return renderedToolBarItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarContribution} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ToolBarContributionItemProvider toolBarContributionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarContribution}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createToolBarContributionAdapter() { - if (toolBarContributionItemProvider == null) { - toolBarContributionItemProvider = new ToolBarContributionItemProvider(this); - } - - return toolBarContributionItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MTrimContribution} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TrimContributionItemProvider trimContributionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MTrimContribution}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createTrimContributionAdapter() { - if (trimContributionItemProvider == null) { - trimContributionItemProvider = new TrimContributionItemProvider(this); - } - - return trimContributionItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenuItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RenderedMenuItemItemProvider renderedMenuItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenuItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createRenderedMenuItemAdapter() { - if (renderedMenuItemItemProvider == null) { - renderedMenuItemItemProvider = new RenderedMenuItemItemProvider(this); - } - - return renderedMenuItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueToolItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected OpaqueToolItemItemProvider opaqueToolItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueToolItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createOpaqueToolItemAdapter() { - if (opaqueToolItemItemProvider == null) { - opaqueToolItemItemProvider = new OpaqueToolItemItemProvider(this); - } - - return opaqueToolItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuItem} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected OpaqueMenuItemItemProvider opaqueMenuItemItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuItem}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createOpaqueMenuItemAdapter() { - if (opaqueMenuItemItemProvider == null) { - opaqueMenuItemItemProvider = new OpaqueMenuItemItemProvider(this); - } - - return opaqueMenuItemItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuSeparator} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected OpaqueMenuSeparatorItemProvider opaqueMenuSeparatorItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuSeparator}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createOpaqueMenuSeparatorAdapter() { - if (opaqueMenuSeparatorItemProvider == null) { - opaqueMenuSeparatorItemProvider = new OpaqueMenuSeparatorItemProvider(this); - } - - return opaqueMenuSeparatorItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenu} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected OpaqueMenuItemProvider opaqueMenuItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenu}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createOpaqueMenuAdapter() { - if (opaqueMenuItemProvider == null) { - opaqueMenuItemProvider = new OpaqueMenuItemProvider(this); - } - - return opaqueMenuItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.menu.MDynamicMenuContribution} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DynamicMenuContributionItemProvider dynamicMenuContributionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MDynamicMenuContribution}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createDynamicMenuContributionAdapter() { - if (dynamicMenuContributionItemProvider == null) { - dynamicMenuContributionItemProvider = new DynamicMenuContributionItemProvider(this); - } - - return dynamicMenuContributionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (menuSeparatorItemProvider != null) menuSeparatorItemProvider.dispose(); - if (menuItemProvider != null) menuItemProvider.dispose(); - if (menuContributionItemProvider != null) menuContributionItemProvider.dispose(); - if (popupMenuItemProvider != null) popupMenuItemProvider.dispose(); - if (directMenuItemItemProvider != null) directMenuItemItemProvider.dispose(); - if (handledMenuItemItemProvider != null) handledMenuItemItemProvider.dispose(); - if (toolBarItemProvider != null) toolBarItemProvider.dispose(); - if (toolControlItemProvider != null) toolControlItemProvider.dispose(); - if (handledToolItemItemProvider != null) handledToolItemItemProvider.dispose(); - if (directToolItemItemProvider != null) directToolItemItemProvider.dispose(); - if (toolBarSeparatorItemProvider != null) toolBarSeparatorItemProvider.dispose(); - if (renderedMenuItemProvider != null) renderedMenuItemProvider.dispose(); - if (renderedToolBarItemProvider != null) renderedToolBarItemProvider.dispose(); - if (toolBarContributionItemProvider != null) toolBarContributionItemProvider.dispose(); - if (trimContributionItemProvider != null) trimContributionItemProvider.dispose(); - if (renderedMenuItemItemProvider != null) renderedMenuItemItemProvider.dispose(); - if (opaqueToolItemItemProvider != null) opaqueToolItemItemProvider.dispose(); - if (opaqueMenuItemItemProvider != null) opaqueMenuItemItemProvider.dispose(); - if (opaqueMenuSeparatorItemProvider != null) opaqueMenuSeparatorItemProvider.dispose(); - if (opaqueMenuItemProvider != null) opaqueMenuItemProvider.dispose(); - if (dynamicMenuContributionItemProvider != null) dynamicMenuContributionItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuSeparatorItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuSeparatorItemProvider.java deleted file mode 100644 index d034e263c31..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/MenuSeparatorItemProvider.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuSeparator; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MMenuSeparator} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class MenuSeparatorItemProvider - extends MenuElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MenuSeparatorItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns MenuSeparator.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/MenuSeparator")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MMenuSeparator)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_MenuSeparator_type") : //$NON-NLS-1$ - getString("_UI_MenuSeparator_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemItemProvider.java deleted file mode 100644 index 9745d260d81..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemItemProvider.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuItem; - -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class OpaqueMenuItemItemProvider - extends MenuItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OpaqueMenuItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addOpaqueItemPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Opaque Item feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addOpaqueItemPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpaqueMenuItem_opaqueItem_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_OpaqueMenuItem_opaqueItem_feature", "_UI_OpaqueMenuItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.OPAQUE_MENU_ITEM__OPAQUE_ITEM, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns OpaqueMenuItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/OpaqueMenuItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MOpaqueMenuItem)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_OpaqueMenuItem_type") : //$NON-NLS-1$ - getString("_UI_OpaqueMenuItem_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MOpaqueMenuItem.class)) { - case MenuPackageImpl.OPAQUE_MENU_ITEM__OPAQUE_ITEM: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemProvider.java deleted file mode 100644 index 85675e58f2a..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuItemProvider.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenu; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenu} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class OpaqueMenuItemProvider - extends MenuItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OpaqueMenuItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns OpaqueMenu.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/OpaqueMenu")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MOpaqueMenu)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_OpaqueMenu_type") : //$NON-NLS-1$ - getString("_UI_OpaqueMenu_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuSeparatorItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuSeparatorItemProvider.java deleted file mode 100644 index b54d1d09b9b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueMenuSeparatorItemProvider.java +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuSeparator; - -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueMenuSeparator} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class OpaqueMenuSeparatorItemProvider - extends MenuSeparatorItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OpaqueMenuSeparatorItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addOpaqueItemPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Opaque Item feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addOpaqueItemPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpaqueMenuSeparator_opaqueItem_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_OpaqueMenuSeparator_opaqueItem_feature", "_UI_OpaqueMenuSeparator_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.OPAQUE_MENU_SEPARATOR__OPAQUE_ITEM, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns OpaqueMenuSeparator.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/OpaqueMenuSeparator")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MOpaqueMenuSeparator)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_OpaqueMenuSeparator_type") : //$NON-NLS-1$ - getString("_UI_OpaqueMenuSeparator_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MOpaqueMenuSeparator.class)) { - case MenuPackageImpl.OPAQUE_MENU_SEPARATOR__OPAQUE_ITEM: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueToolItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueToolItemItemProvider.java deleted file mode 100644 index fe7ae3eaf42..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/OpaqueToolItemItemProvider.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; - -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; - -import org.eclipse.e4.ui.model.application.ui.menu.MOpaqueToolItem; - -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MOpaqueToolItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class OpaqueToolItemItemProvider - extends ToolItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public OpaqueToolItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addOpaqueItemPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Opaque Item feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addOpaqueItemPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_OpaqueToolItem_opaqueItem_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_OpaqueToolItem_opaqueItem_feature", "_UI_OpaqueToolItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.OPAQUE_TOOL_ITEM__OPAQUE_ITEM, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns OpaqueToolItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/OpaqueToolItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MOpaqueToolItem)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_OpaqueToolItem_type") : //$NON-NLS-1$ - getString("_UI_OpaqueToolItem_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MOpaqueToolItem.class)) { - case MenuPackageImpl.OPAQUE_TOOL_ITEM__OPAQUE_ITEM: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/PopupMenuItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/PopupMenuItemProvider.java deleted file mode 100644 index 8fe9a192c46..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/PopupMenuItemProvider.java +++ /dev/null @@ -1,238 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MPopupMenu; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MPopupMenu} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class PopupMenuItemProvider - extends MenuItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PopupMenuItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns PopupMenu.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PopupMenu")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MPopupMenu)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_PopupMenu_type") : //$NON-NLS-1$ - getString("_UI_PopupMenu_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MPopupMenu.class)) { - case MenuPackageImpl.POPUP_MENU__CONTEXT: - case MenuPackageImpl.POPUP_MENU__VARIABLES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case MenuPackageImpl.POPUP_MENU__PROPERTIES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - } - - /** - * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { - Object childFeature = feature; - Object childObject = child; - - boolean qualify = - childFeature == ApplicationPackageImpl.Literals.APPLICATION_ELEMENT__PERSISTED_STATE || - childFeature == UiPackageImpl.Literals.CONTEXT__PROPERTIES; - - if (qualify) { - return getString - ("_UI_CreateChild_text2", //$NON-NLS-1$ - new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); - } - return super.getCreateChildText(owner, feature, child, selection); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemItemProvider.java deleted file mode 100644 index edb2814a98e..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenuItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenuItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class RenderedMenuItemItemProvider - extends MenuItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RenderedMenuItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionItemPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution Item feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionItemPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RenderedMenuItem_contributionItem_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_RenderedMenuItem_contributionItem_feature", "_UI_RenderedMenuItem_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.RENDERED_MENU_ITEM__CONTRIBUTION_ITEM, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns RenderedMenuItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/RenderedMenuItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MRenderedMenuItem)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_RenderedMenuItem_type") : //$NON-NLS-1$ - getString("_UI_RenderedMenuItem_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MRenderedMenuItem.class)) { - case MenuPackageImpl.RENDERED_MENU_ITEM__CONTRIBUTION_ITEM: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemProvider.java deleted file mode 100644 index 64b005025c4..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedMenuItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenu; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedMenu} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class RenderedMenuItemProvider - extends MenuItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RenderedMenuItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionManagerPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution Manager feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionManagerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RenderedMenu_contributionManager_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_RenderedMenu_contributionManager_feature", "_UI_RenderedMenu_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.RENDERED_MENU__CONTRIBUTION_MANAGER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns RenderedMenu.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/RenderedMenu")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MRenderedMenu)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_RenderedMenu_type") : //$NON-NLS-1$ - getString("_UI_RenderedMenu_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MRenderedMenu.class)) { - case MenuPackageImpl.RENDERED_MENU__CONTRIBUTION_MANAGER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedToolBarItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedToolBarItemProvider.java deleted file mode 100644 index 78901a0e040..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/RenderedToolBarItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MRenderedToolBar; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MRenderedToolBar} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class RenderedToolBarItemProvider - extends ToolBarItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RenderedToolBarItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionManagerPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution Manager feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionManagerPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_RenderedToolBar_contributionManager_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_RenderedToolBar_contributionManager_feature", "_UI_RenderedToolBar_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.RENDERED_TOOL_BAR__CONTRIBUTION_MANAGER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns RenderedToolBar.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/RenderedToolBar")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MRenderedToolBar)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_RenderedToolBar_type") : //$NON-NLS-1$ - getString("_UI_RenderedToolBar_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MRenderedToolBar.class)) { - case MenuPackageImpl.RENDERED_TOOL_BAR__CONTRIBUTION_MANAGER: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionItemProvider.java deleted file mode 100644 index 94cbeb2f3b7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionItemProvider.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBarContribution; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarContribution} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolBarContributionItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolBarContributionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addParentIdPropertyDescriptor(object); - addPositionInParentPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Parent Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addParentIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ToolBarContribution_parentId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ToolBarContribution_parentId_feature", "_UI_ToolBarContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTION__PARENT_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Position In Parent feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addPositionInParentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ToolBarContribution_positionInParent_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ToolBarContribution_positionInParent_feature", "_UI_ToolBarContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTION__POSITION_IN_PARENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns ToolBarContribution.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ToolBarContribution")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MToolBarContribution)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ToolBarContribution_type") : //$NON-NLS-1$ - getString("_UI_ToolBarContribution_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MToolBarContribution.class)) { - case MenuPackageImpl.TOOL_BAR_CONTRIBUTION__PARENT_ID: - case MenuPackageImpl.TOOL_BAR_CONTRIBUTION__POSITION_IN_PARENT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionsItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionsItemProvider.java deleted file mode 100644 index 3c0bc7055c0..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarContributionsItemProvider.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBarContributions; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarContributions} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolBarContributionsItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolBarContributionsItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ToolBarContributions_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MToolBarContributions.class)) { - case MenuPackageImpl.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_BAR_CONTRIBUTIONS__TOOL_BAR_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createToolBarContribution())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarElementItemProvider.java deleted file mode 100644 index 4e69455551c..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarElementItemProvider.java +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBarElement; -import org.eclipse.e4.ui.model.application.ui.provider.UIElementItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolBarElementItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolBarElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MToolBarElement)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ToolBarElement_type") : //$NON-NLS-1$ - getString("_UI_ToolBarElement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarItemProvider.java deleted file mode 100644 index 7685c6221db..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarItemProvider.java +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBar; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBar} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolBarItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolBarItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns ToolBar.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ToolBar")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; //((MToolBar)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ToolBar_type") : //$NON-NLS-1$ - getString("_UI_ToolBar_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarSeparatorItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarSeparatorItemProvider.java deleted file mode 100644 index 0d768da3ff8..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolBarSeparatorItemProvider.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBarSeparator; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolBarSeparator} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolBarSeparatorItemProvider - extends ToolBarElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolBarSeparatorItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns ToolBarSeparator.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ToolBarSeparator")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MToolBarSeparator)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ToolBarSeparator_type") : //$NON-NLS-1$ - getString("_UI_ToolBarSeparator_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolControlItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolControlItemProvider.java deleted file mode 100644 index c5a91fd507f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolControlItemProvider.java +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ContributionItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MUiFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MToolControl; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolControl} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolControlItemProvider - extends ToolBarElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolControlItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContributionURIPropertyDescriptor(object); - addObjectPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Contribution URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContributionURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_contributionURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_contributionURI_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__CONTRIBUTION_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Object feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addObjectPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Contribution_object_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contribution_object_feature", "_UI_Contribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ApplicationPackageImpl.Literals.CONTRIBUTION__OBJECT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns ToolControl.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ToolControl")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MToolControl)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ToolControl_type") : //$NON-NLS-1$ - getString("_UI_ToolControl_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MToolControl.class)) { - case MenuPackageImpl.TOOL_CONTROL__CONTRIBUTION_URI: - case MenuPackageImpl.TOOL_CONTROL__OBJECT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolItemItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolItemItemProvider.java deleted file mode 100644 index 7937cdc804b..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/ToolItemItemProvider.java +++ /dev/null @@ -1,177 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.MToolItem; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MToolItem} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ToolItemItemProvider - extends ItemItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ToolItemItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.TOOL_ITEM__MENU); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ToolItem.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ToolItem")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MToolItem)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_ToolItem_type") : //$NON-NLS-1$ - getString("_UI_ToolItem_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MToolItem.class)) { - case MenuPackageImpl.TOOL_ITEM__MENU: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_ITEM__MENU, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_ITEM__MENU, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_ITEM__MENU, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TOOL_ITEM__MENU, - MMenuFactory.INSTANCE.createOpaqueMenu())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionItemProvider.java deleted file mode 100644 index 8606af30387..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionItemProvider.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MTrimContribution; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.e4.ui.model.application.ui.provider.ElementContainerItemProvider; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MTrimContribution} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class TrimContributionItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TrimContributionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addParentIdPropertyDescriptor(object); - addPositionInParentPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Parent Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addParentIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TrimContribution_parentId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_TrimContribution_parentId_feature", "_UI_TrimContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.TRIM_CONTRIBUTION__PARENT_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Position In Parent feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addPositionInParentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_TrimContribution_positionInParent_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_TrimContribution_positionInParent_feature", "_UI_TrimContribution_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - MenuPackageImpl.Literals.TRIM_CONTRIBUTION__POSITION_IN_PARENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns TrimContribution.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/TrimContribution")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MTrimContribution)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_TrimContribution_type") : //$NON-NLS-1$ - getString("_UI_TrimContribution_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MTrimContribution.class)) { - case MenuPackageImpl.TRIM_CONTRIBUTION__PARENT_ID: - case MenuPackageImpl.TRIM_CONTRIBUTION__POSITION_IN_PARENT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionsItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionsItemProvider.java deleted file mode 100644 index 81ec2cbe74d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/menu/provider/TrimContributionsItemProvider.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.menu.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.e4.ui.model.application.ui.menu.MTrimContributions; -import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.menu.MTrimContributions} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class TrimContributionsItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TrimContributionsItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(MenuPackageImpl.Literals.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_TrimContributions_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MTrimContributions.class)) { - case MenuPackageImpl.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (MenuPackageImpl.Literals.TRIM_CONTRIBUTIONS__TRIM_CONTRIBUTIONS, - MMenuFactory.INSTANCE.createTrimContribution())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ContextItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ContextItemProvider.java deleted file mode 100644 index ef621c7ae41..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ContextItemProvider.java +++ /dev/null @@ -1,219 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.core.contexts.IEclipseContext; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MContext; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MContext} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ContextItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ContextItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addContextPropertyDescriptor(object); - addVariablesPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Context feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContextPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_context_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_context_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__CONTEXT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Variables feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVariablesPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Context_variables_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Context_variables_feature", "_UI_Context_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CONTEXT__VARIABLES, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.CONTEXT__PROPERTIES); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - IEclipseContext labelValue = ((MContext)object).getContext(); - String label = labelValue == null ? null : labelValue.toString(); - return label == null || label.length() == 0 ? - getString("_UI_Context_type") : //$NON-NLS-1$ - getString("_UI_Context_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MContext.class)) { - case UiPackageImpl.CONTEXT__CONTEXT: - case UiPackageImpl.CONTEXT__VARIABLES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case UiPackageImpl.CONTEXT__PROPERTIES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.CONTEXT__PROPERTIES, - ((EFactory)MApplicationFactory.INSTANCE).create(ApplicationPackageImpl.Literals.STRING_TO_STRING_MAP))); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/CoreExpressionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/CoreExpressionItemProvider.java deleted file mode 100644 index f55436a9c40..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/CoreExpressionItemProvider.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.ui.MCoreExpression; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MCoreExpression} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class CoreExpressionItemProvider - extends ExpressionItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public CoreExpressionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addCoreExpressionIdPropertyDescriptor(object); - addCoreExpressionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Core Expression Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCoreExpressionIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CoreExpression_coreExpressionId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CoreExpression_coreExpressionId_feature", "_UI_CoreExpression_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CORE_EXPRESSION__CORE_EXPRESSION_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Core Expression feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCoreExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_CoreExpression_coreExpression_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_CoreExpression_coreExpression_feature", "_UI_CoreExpression_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.CORE_EXPRESSION__CORE_EXPRESSION, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns CoreExpression.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/CoreExpression")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MCoreExpression)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_CoreExpression_type") : //$NON-NLS-1$ - getString("_UI_CoreExpression_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MCoreExpression.class)) { - case UiPackageImpl.CORE_EXPRESSION__CORE_EXPRESSION_ID: - case UiPackageImpl.CORE_EXPRESSION__CORE_EXPRESSION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/DirtyableItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/DirtyableItemProvider.java deleted file mode 100644 index ebe436225b7..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/DirtyableItemProvider.java +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MDirtyable; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MDirtyable} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class DirtyableItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DirtyableItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addDirtyPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Dirty feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addDirtyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Dirtyable_dirty_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Dirtyable_dirty_feature", "_UI_Dirtyable_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.DIRTYABLE__DIRTY, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - MDirtyable dirtyable = (MDirtyable)object; - return getString("_UI_Dirtyable_type") + " " + dirtyable.isDirty(); //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MDirtyable.class)) { - case UiPackageImpl.DIRTYABLE__DIRTY: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ElementContainerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ElementContainerItemProvider.java deleted file mode 100644 index 07bb4e115e9..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ElementContainerItemProvider.java +++ /dev/null @@ -1,337 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.MApplicationFactory; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.MElementContainer; -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MElementContainer} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ElementContainerItemProvider - extends UIElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ElementContainerItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addSelectedElementPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Selected Element feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSelectedElementPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ElementContainer_selectedElement_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ElementContainer_selectedElement_feature", "_UI_ElementContainer_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.ELEMENT_CONTAINER__SELECTED_ELEMENT, - true, - false, - true, - null, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MElementContainer<?>)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_ElementContainer_type") : //$NON-NLS-1$ - getString("_UI_ElementContainer_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MElementContainer.class)) { - case UiPackageImpl.ELEMENT_CONTAINER__CHILDREN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueToolItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuItem())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createOpaqueMenu())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MMenuFactory.INSTANCE.createDynamicMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.ELEMENT_CONTAINER__CHILDREN, - MAdvancedFactory.INSTANCE.createArea())); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ExpressionItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ExpressionItemProvider.java deleted file mode 100644 index 1f57720b333..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/ExpressionItemProvider.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MExpression; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MExpression} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ExpressionItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ExpressionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MExpression)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_Expression_type") : //$NON-NLS-1$ - getString("_UI_Expression_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericStackItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericStackItemProvider.java deleted file mode 100644 index fdd91a711bb..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericStackItemProvider.java +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.MGenericStack; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MGenericStack} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class GenericStackItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public GenericStackItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MGenericStack<?>)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_GenericStack_type") : //$NON-NLS-1$ - getString("_UI_GenericStack_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTileItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTileItemProvider.java deleted file mode 100644 index 783bd002b42..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTileItemProvider.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.MGenericTile; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MGenericTile} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class GenericTileItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public GenericTileItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addHorizontalPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Horizontal feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addHorizontalPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GenericTile_horizontal_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_GenericTile_horizontal_feature", "_UI_GenericTile_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.GENERIC_TILE__HORIZONTAL, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MGenericTile<?>)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_GenericTile_type") : //$NON-NLS-1$ - getString("_UI_GenericTile_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MGenericTile.class)) { - case UiPackageImpl.GENERIC_TILE__HORIZONTAL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTrimContainerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTrimContainerItemProvider.java deleted file mode 100644 index bb0b2ab4f43..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/GenericTrimContainerItemProvider.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class GenericTrimContainerItemProvider - extends ElementContainerItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public GenericTrimContainerItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addSidePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Side feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addSidePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_GenericTrimContainer_side_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_GenericTrimContainer_side_feature", "_UI_GenericTrimContainer_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.GENERIC_TRIM_CONTAINER__SIDE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MGenericTrimContainer<?>)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_GenericTrimContainer_type") : //$NON-NLS-1$ - getString("_UI_GenericTrimContainer_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MGenericTrimContainer.class)) { - case UiPackageImpl.GENERIC_TRIM_CONTAINER__SIDE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/InputItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/InputItemProvider.java deleted file mode 100644 index c029ce58f9d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/InputItemProvider.java +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Copyright (c) 2008, 2010 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MInput; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MInput} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class InputItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public InputItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addInputURIPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Input URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addInputURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Input_inputURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Input_inputURI_feature", "_UI_Input_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.INPUT__INPUT_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MInput)object).getInputURI(); - return label == null || label.length() == 0 ? - getString("_UI_Input_type") : //$NON-NLS-1$ - getString("_UI_Input_type") + " -> " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MInput.class)) { - case UiPackageImpl.INPUT__INPUT_URI: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/SnippetContainerItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/SnippetContainerItemProvider.java deleted file mode 100644 index 51a7acd58a1..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/SnippetContainerItemProvider.java +++ /dev/null @@ -1,340 +0,0 @@ -/**
- * Copyright (c) 2008, 2011 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- */
-package org.eclipse.e4.ui.model.application.ui.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.e4.ui.model.application.MApplicationFactory;
-
-import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin;
-
-import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
-
-import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory;
-
-import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory;
-
-import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
-
-import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-
-/**
- * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MSnippetContainer} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SnippetContainerItemProvider
- extends ItemProviderAdapter
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SnippetContainerItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-
- /**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
- if (itemPropertyDescriptors == null) {
- super.getPropertyDescriptors(object);
-
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
- * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
- * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS);
- }
- return childrenFeatures;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EStructuralFeature getChildFeature(Object object, Object child) {
- // Check the type of the specified child object and return the proper feature to use for
- // adding (see {@link AddCommand}) it as a child.
-
- return super.getChildFeature(object, child);
- }
-
- /**
- * This returns SnippetContainer.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/SnippetContainer")); //$NON-NLS-1$
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_SnippetContainer_type"); //$NON-NLS-1$
- }
-
- /**
- * This handles model notifications by calling {@link #updateChildren} to update any cached
- * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- updateChildren(notification);
-
- switch (notification.getFeatureID(MSnippetContainer.class)) {
- case UiPackageImpl.SNIPPET_CONTAINER__SNIPPETS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
- return;
- }
- super.notifyChanged(notification);
- }
-
- /**
- * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
- * that can be created under this object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
- super.collectNewChildDescriptors(newChildDescriptors, object);
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MApplicationFactory.INSTANCE.createApplication()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createMenuSeparator()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createMenu()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createMenuContribution()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createPopupMenu()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createDirectMenuItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createHandledMenuItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createToolBar()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createToolControl()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createHandledToolItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createDirectToolItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createToolBarSeparator()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createRenderedMenu()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createRenderedToolBar()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createToolBarContribution()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createTrimContribution()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createRenderedMenuItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createOpaqueToolItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createOpaqueMenuItem()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createOpaqueMenuSeparator()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MMenuFactory.INSTANCE.createOpaqueMenu()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createPart()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createInputPart()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createPartStack()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createPartSashContainer()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createWindow()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createTrimmedWindow()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MBasicFactory.INSTANCE.createTrimBar()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MAdvancedFactory.INSTANCE.createPlaceholder()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MAdvancedFactory.INSTANCE.createPerspective()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MAdvancedFactory.INSTANCE.createPerspectiveStack()));
-
- newChildDescriptors.add
- (createChildParameter
- (UiPackageImpl.Literals.SNIPPET_CONTAINER__SNIPPETS,
- MAdvancedFactory.INSTANCE.createArea()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return UIElementsEditPlugin.INSTANCE;
- }
-
-}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UIElementItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UIElementItemProvider.java deleted file mode 100644 index fc95ca69b67..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UIElementItemProvider.java +++ /dev/null @@ -1,313 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl; -import org.eclipse.e4.ui.model.application.provider.ApplicationElementItemProvider; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MUIElement; -import org.eclipse.e4.ui.model.application.ui.MUiFactory; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MUIElement} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class UIElementItemProvider - extends ApplicationElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UIElementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addToBeRenderedPropertyDescriptor(object); - addOnTopPropertyDescriptor(object); - addVisiblePropertyDescriptor(object); - addContainerDataPropertyDescriptor(object); - addCurSharedRefPropertyDescriptor(object); - addAccessibilityPhrasePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the To Be Rendered feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addToBeRenderedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_toBeRendered_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_toBeRendered_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__TO_BE_RENDERED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the On Top feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addOnTopPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_onTop_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_onTop_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__ON_TOP, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Visible feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addVisiblePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_visible_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_visible_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__VISIBLE, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Container Data feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addContainerDataPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_containerData_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_containerData_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__CONTAINER_DATA, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Cur Shared Ref feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addCurSharedRefPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_curSharedRef_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_curSharedRef_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__CUR_SHARED_REF, - true, - false, - true, - null, - null, - null)); - } - - /** - * This adds a property descriptor for the Accessibility Phrase feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addAccessibilityPhrasePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UIElement_accessibilityPhrase_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UIElement_accessibilityPhrase_feature", "_UI_UIElement_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_ELEMENT__ACCESSIBILITY_PHRASE, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UiPackageImpl.Literals.UI_ELEMENT__VISIBLE_WHEN); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = null; // ((MUIElement)object).getElementId(); - return label == null || label.length() == 0 ? - getString("_UI_UIElement_type") : //$NON-NLS-1$ - getString("_UI_UIElement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MUIElement.class)) { - case UiPackageImpl.UI_ELEMENT__WIDGET: - case UiPackageImpl.UI_ELEMENT__RENDERER: - case UiPackageImpl.UI_ELEMENT__TO_BE_RENDERED: - case UiPackageImpl.UI_ELEMENT__ON_TOP: - case UiPackageImpl.UI_ELEMENT__VISIBLE: - case UiPackageImpl.UI_ELEMENT__CONTAINER_DATA: - case UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case UiPackageImpl.UI_ELEMENT__VISIBLE_WHEN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (UiPackageImpl.Literals.UI_ELEMENT__VISIBLE_WHEN, - MUiFactory.INSTANCE.createCoreExpression())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UILabelItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UILabelItemProvider.java deleted file mode 100644 index 00fcc274620..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UILabelItemProvider.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * Copyright (c) 2008, 2011 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - - -import java.util.Collection; -import java.util.List; -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; -import org.eclipse.e4.ui.model.application.ui.MUILabel; -import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.application.ui.MUILabel} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class UILabelItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UILabelItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addLabelPropertyDescriptor(object); - addIconURIPropertyDescriptor(object); - addTooltipPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Label feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addLabelPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_label_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_label_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__LABEL, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Icon URI feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addIconURIPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_iconURI_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_iconURI_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__ICON_URI, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Tooltip feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addTooltipPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_UILabel_tooltip_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UILabel_tooltip_feature", "_UI_UILabel_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UiPackageImpl.Literals.UI_LABEL__TOOLTIP, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated NOT - */ - @Override - public String getText(Object object) { - String label = ((MUILabel)object).getLabel(); - return label == null || label.length() == 0 ? - getString("_UI_UILabel_type") : //$NON-NLS-1$ - getString("_UI_UILabel_type") + " - " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MUILabel.class)) { - case UiPackageImpl.UI_LABEL__LABEL: - case UiPackageImpl.UI_LABEL__ICON_URI: - case UiPackageImpl.UI_LABEL__TOOLTIP: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UIElementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UiItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UiItemProviderAdapterFactory.java deleted file mode 100644 index 5cbc96d9755..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/application/ui/provider/UiItemProviderAdapterFactory.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - * Copyright (c) 2008, 2012 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.application.ui.provider; - -import java.util.ArrayList; -import java.util.Collection; -import org.eclipse.e4.ui.model.application.ui.util.UiAdapterFactory; -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class UiItemProviderAdapterFactory extends UiAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UiItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.application.ui.MCoreExpression} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected CoreExpressionItemProvider coreExpressionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.application.ui.MCoreExpression}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createCoreExpressionAdapter() { - if (coreExpressionItemProvider == null) { - coreExpressionItemProvider = new CoreExpressionItemProvider(this); - } - - return coreExpressionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (coreExpressionItemProvider != null) coreExpressionItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/FragmentItemProviderAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/FragmentItemProviderAdapterFactory.java deleted file mode 100644 index 8db83d35f6f..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/FragmentItemProviderAdapterFactory.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - * Copyright (c) 2010 BestSolution.at and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.fragment.provider; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.e4.ui.model.fragment.util.FragmentAdapterFactory; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class FragmentItemProviderAdapterFactory extends FragmentAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected Collection<Object> supportedTypes = new ArrayList<Object>(); - - /** - * This constructs an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public FragmentItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.fragment.MModelFragments} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ModelFragmentsItemProvider modelFragmentsItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.fragment.MModelFragments}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createModelFragmentsAdapter() { - if (modelFragmentsItemProvider == null) { - modelFragmentsItemProvider = new ModelFragmentsItemProvider(this); - } - - return modelFragmentsItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.e4.ui.model.fragment.MStringModelFragment} instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected StringModelFragmentItemProvider stringModelFragmentItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.e4.ui.model.fragment.MStringModelFragment}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter createStringModelFragmentAdapter() { - if (stringModelFragmentItemProvider == null) { - stringModelFragmentItemProvider = new StringModelFragmentItemProvider(this); - } - - return stringModelFragmentItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void dispose() { - if (modelFragmentsItemProvider != null) modelFragmentsItemProvider.dispose(); - if (stringModelFragmentItemProvider != null) stringModelFragmentItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentEditPlugin.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentEditPlugin.java deleted file mode 100644 index 900b919c646..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentEditPlugin.java +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Copyright (c) 2010 BestSolution.at and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.fragment.provider; - -import org.eclipse.e4.ui.model.application.provider.UIElementsEditPlugin; - -import org.eclipse.emf.common.EMFPlugin; - -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the ModelFragment edit plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public final class ModelFragmentEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final ModelFragmentEditPlugin INSTANCE = new ModelFragmentEditPlugin(); - - /** - * Keep track of the singleton. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModelFragmentEditPlugin() { - super - (new ResourceLocator [] { - UIElementsEditPlugin.INSTANCE, - }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse <b>Plugin</b>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentItemProvider.java deleted file mode 100644 index fb651777aa6..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentItemProvider.java +++ /dev/null @@ -1,360 +0,0 @@ -/** - * Copyright (c) 2010 BestSolution.at and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.fragment.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.MApplicationFactory; - -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; - -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; - -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; - -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; - -import org.eclipse.e4.ui.model.fragment.MModelFragment; - -import org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.fragment.MModelFragment} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ModelFragmentItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModelFragmentItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ModelFragment_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MModelFragment.class)) { - case FragmentPackageImpl.MODEL_FRAGMENT__ELEMENTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MApplicationFactory.INSTANCE.createAddon())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createBindingContext())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createBindingTable())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createCommand())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createCommandParameter())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createKeyBinding())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createParameter())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MCommandsFactory.INSTANCE.createCategory())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - MAdvancedFactory.INSTANCE.createArea())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENT__ELEMENTS, - org.eclipse.e4.ui.model.application.descriptor.basic.MBasicFactory.INSTANCE.createPartDescriptor())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ModelFragmentEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentsItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentsItemProvider.java deleted file mode 100644 index ab8188cbc5d..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/ModelFragmentsItemProvider.java +++ /dev/null @@ -1,379 +0,0 @@ -/** - * Copyright (c) 2010 BestSolution.at and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.fragment.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.application.MApplicationFactory; - -import org.eclipse.e4.ui.model.application.commands.MCommandsFactory; - -import org.eclipse.e4.ui.model.application.ui.advanced.MAdvancedFactory; - -import org.eclipse.e4.ui.model.application.ui.basic.MBasicFactory; - -import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory; - -import org.eclipse.e4.ui.model.fragment.MFragmentFactory; -import org.eclipse.e4.ui.model.fragment.MModelFragments; - -import org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.common.util.ResourceLocator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.fragment.MModelFragments} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class ModelFragmentsItemProvider - extends ItemProviderAdapter - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModelFragmentsItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS); - childrenFeatures.add(FragmentPackageImpl.Literals.MODEL_FRAGMENTS__FRAGMENTS); - } - return childrenFeatures; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ModelFragments.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ModelFragments")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - return getString("_UI_ModelFragments_type"); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MModelFragments.class)) { - case FragmentPackageImpl.MODEL_FRAGMENTS__IMPORTS: - case FragmentPackageImpl.MODEL_FRAGMENTS__FRAGMENTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MApplicationFactory.INSTANCE.createApplication())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MApplicationFactory.INSTANCE.createAddon())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createBindingContext())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createBindingTable())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createCommand())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createCommandParameter())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createHandler())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createKeyBinding())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createParameter())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MCommandsFactory.INSTANCE.createCategory())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createMenuSeparator())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createMenuContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createPopupMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createDirectMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createHandledMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createToolBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createToolControl())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createHandledToolItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createDirectToolItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createToolBarSeparator())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createRenderedMenu())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createRenderedToolBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createToolBarContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createTrimContribution())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MMenuFactory.INSTANCE.createRenderedMenuItem())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createPart())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createInputPart())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createPartStack())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createPartSashContainer())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createWindow())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createTrimmedWindow())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MBasicFactory.INSTANCE.createTrimBar())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MAdvancedFactory.INSTANCE.createPlaceholder())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MAdvancedFactory.INSTANCE.createPerspective())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MAdvancedFactory.INSTANCE.createPerspectiveStack())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - MAdvancedFactory.INSTANCE.createArea())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__IMPORTS, - org.eclipse.e4.ui.model.application.descriptor.basic.MBasicFactory.INSTANCE.createPartDescriptor())); - - newChildDescriptors.add - (createChildParameter - (FragmentPackageImpl.Literals.MODEL_FRAGMENTS__FRAGMENTS, - MFragmentFactory.INSTANCE.createStringModelFragment())); - } - - /** - * Return the resource locator for this item provider's resources. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ModelFragmentEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/StringModelFragmentItemProvider.java b/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/StringModelFragmentItemProvider.java deleted file mode 100644 index bd700ca8a52..00000000000 --- a/bundles/org.eclipse.e4.ui.model.workbench.edit/src/org/eclipse/e4/ui/model/fragment/provider/StringModelFragmentItemProvider.java +++ /dev/null @@ -1,201 +0,0 @@ -/** - * Copyright (c) 2010 BestSolution.at and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation - * IBM Corporation - initial API and implementation - */ -package org.eclipse.e4.ui.model.fragment.provider; - - -import java.util.Collection; -import java.util.List; - -import org.eclipse.e4.ui.model.fragment.MStringModelFragment; - -import org.eclipse.e4.ui.model.fragment.impl.FragmentPackageImpl; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; - -/** - * This is the item provider adapter for a {@link org.eclipse.e4.ui.model.fragment.MStringModelFragment} object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ -public class StringModelFragmentItemProvider - extends ModelFragmentItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public StringModelFragmentItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addFeaturenamePropertyDescriptor(object); - addParentElementIdPropertyDescriptor(object); - addPositionInListPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Featurename feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addFeaturenamePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StringModelFragment_featurename_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_StringModelFragment_featurename_feature", "_UI_StringModelFragment_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FragmentPackageImpl.Literals.STRING_MODEL_FRAGMENT__FEATURENAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Parent Element Id feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addParentElementIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StringModelFragment_parentElementId_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_StringModelFragment_parentElementId_feature", "_UI_StringModelFragment_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FragmentPackageImpl.Literals.STRING_MODEL_FRAGMENT__PARENT_ELEMENT_ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Position In List feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected void addPositionInListPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_StringModelFragment_positionInList_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_StringModelFragment_positionInList_feature", "_UI_StringModelFragment_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FragmentPackageImpl.Literals.STRING_MODEL_FRAGMENT__POSITION_IN_LIST, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This returns StringModelFragment.gif. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/StringModelFragment")); //$NON-NLS-1$ - } - - /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getText(Object object) { - String label = ((MStringModelFragment)object).getFeaturename(); - return label == null || label.length() == 0 ? - getString("_UI_StringModelFragment_type") : //$NON-NLS-1$ - getString("_UI_StringModelFragment_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(MStringModelFragment.class)) { - case FragmentPackageImpl.STRING_MODEL_FRAGMENT__FEATURENAME: - case FragmentPackageImpl.STRING_MODEL_FRAGMENT__PARENT_ELEMENT_ID: - case FragmentPackageImpl.STRING_MODEL_FRAGMENT__POSITION_IN_LIST: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} |
