aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Fauth2014-01-10 08:34:08 (EST)
committerGerrit Code Review @ Eclipse.org2014-01-24 14:19:42 (EST)
commit00ef1b00b3c680ff49720c442cbf117566d8d60b (patch)
tree36eb90855f60e90e298c7f8c9c9b9f2ea8b3712f
parentc709d03ad2a84cc2ca7a78f9e9c0546c6cd0727f (diff)
downloadeclipse.platform.ui-00ef1b00b3c680ff49720c442cbf117566d8d60b.zip
eclipse.platform.ui-00ef1b00b3c680ff49720c442cbf117566d8d60b.tar.gz
eclipse.platform.ui-00ef1b00b3c680ff49720c442cbf117566d8d60b.tar.bz2
Bug 423991 - Enhanced the application model to add supportrefs/changes/46/19746/7
for dynamic Locale changes at runtime Change-Id: I0748088f6d1bb7aefc0a982053147516a4b25432 Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/model/UIElements.ecore2435
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCategory.java24
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCommand.java23
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CategoryImpl.java68
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandImpl.java68
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandsPackageImpl.java122
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsSwitch.java18
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/MPartDescriptor.java10
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/BasicPackageImpl.java80
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/PartDescriptorImpl.java92
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicSwitch.java17
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationElementImpl.java3
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationPackageImpl.java13
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToObjectMapImpl.java3
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToStringMapImpl.java3
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MElementContainer.java1
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MLocalizable.java46
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUIElement.java15
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUILabel.java28
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AdvancedPackageImpl.java96
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AreaImpl.java82
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/PerspectiveImpl.java86
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedSwitch.java20
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MPart.java13
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/BasicPackageImpl.java523
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/PartImpl.java140
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/WindowImpl.java102
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicSwitch.java30
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UIElementImpl.java54
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UiPackageImpl.java360
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/ItemImpl.java82
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuElementImpl.java68
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuPackageImpl.java925
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuSwitch.java43
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiAdapterFactory.java18
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiSwitch.java27
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationAdapterFactory.java19
-rw-r--r--bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationSwitch.java17
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/AreaRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuItemRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuRenderer.java3
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolItemRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java14
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF3
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/OSGI-INF/localechangeservice.xml8
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceContextFunction.java36
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceImpl.java123
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java30
-rw-r--r--bundles/org.eclipse.ui.workbench/build.properties5
58 files changed, 3768 insertions, 2365 deletions
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/model/UIElements.ecore b/bundles/org.eclipse.e4.ui.model.workbench/model/UIElements.ecore
index b294ca6..e5ea90d 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/model/UIElements.ecore
+++ b/bundles/org.eclipse.e4.ui.model.workbench/model/UIElements.ecore
@@ -1,1221 +1,1214 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="application" nsURI="http://www.eclipse.org/ui/2010/UIModel/application"
- nsPrefix="application">
- <eClassifiers xsi:type="ecore:EDataType" name="IEclipseContext" instanceClassName="org.eclipse.e4.core.contexts.IEclipseContext"
- serializable="false"/>
- <eClassifiers xsi:type="ecore:EClass" name="StringToStringMap" instanceClassName="java.util.Map$Entry">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Application">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The MApplication acts as the root of the UI Model. It's children are the&#xD;&#xA; MWindows representing the UI for this application. It also owns the application's&#xD;&#xA;context (which is hooked to the OSGI context, allowing access not only to its&#xD;&#xA;own runtime information but also to any registered OSGI service.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;It also owns a number of caches which, while independent of the UI itself are&#xD;&#xA;used by the appliecation to populate new windows or to define state that is&#xD;&#xA;epected to be the same for all windows:&#xD;&#xA;&lt;ui>&#xD;&#xA;&lt;li>Keybindings, Handlers, Commands&lt;/li>&#xD;&#xA;&lt;li>Part Descriptors (to support a 'Show View' dialog...)&lt;/li>&#xD;&#xA;&lt;li>Snippets of model (such as saved perspectives...)&lt;/li>&#xD;&#xA;&lt;/ui>&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="commands" upperBound="-1"
- eType="#//commands/Command" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the list of MCommand elements available in the application. Commands&#xD;&#xA;represent some logical operation. The actual implementation of the operation is&#xD;&#xA;determined by the MHandler chosen by the system based on the current execution&#xD;&#xA;context.&#xD;&#xA;&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="addons" upperBound="-1"
- eType="#//Addon" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the ordered list of MAddons for this model. The individual addons will be&#xD;&#xA;created through injection after the model loads but before it is rendered.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
- eType="#//commands/Category" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="dialogs" upperBound="-1"
- eType="#//ui/basic/Dialog">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the ordered list of MDialogs for this model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/basic/Window"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/Context"/>
- <eGenericSuperTypes eClassifier="#//commands/HandlerContainer"/>
- <eGenericSuperTypes eClassifier="#//commands/BindingTableContainer"/>
- <eGenericSuperTypes eClassifier="#//descriptor/basic/PartDescriptorContainer"/>
- <eGenericSuperTypes eClassifier="#//commands/Bindings"/>
- <eGenericSuperTypes eClassifier="#//ui/menu/MenuContributions"/>
- <eGenericSuperTypes eClassifier="#//ui/menu/ToolBarContributions"/>
- <eGenericSuperTypes eClassifier="#//ui/menu/TrimContributions"/>
- <eGenericSuperTypes eClassifier="#//ui/SnippetContainer"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ApplicationElement" abstract="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the root element for all UI Model elements, defining attribtues common&#xD;&#xA;to every element; the element's id as well as three general storage elements:&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>Tags: This is a set of strings which can be used to stereotype a particular&#xD;&#xA;element. Tags may be specified in element searches and can also be referred&#xD;&#xA;to in the CSS styling definition.&lt;/li>&#xD;&#xA;&lt;li>PersistedState: A string to string map used to store information that nneds&#xD;&#xA;to be persisted between sessions.&lt;/li>&#xD;&#xA;&lt;li>TransientData: A string to object map which can be used to store runtime data&#xD;&#xA;relevant to a particular model element.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="elementId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="persistedState" upperBound="-1"
- eType="#//StringToStringMap" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a Strimg to String map that can be used to persist information avout model&#xD;&#xA;elements across program sessions. The format of the 'value' string is defined by&#xD;&#xA;the code setting the value into the map. Information stored in this map is part of&#xD;&#xA;the model and will be persisted and restored as such.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="tags" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Tags are a list of Strings that are persistent parts of the UI Model. They can be used to 'refine' a particular&#xD;&#xA;model element, supplying extra 'meta' information. These tags interact with the CSS engine so that it's&#xD;&#xA;possible to write CSS specific to a particular tag. The platform currently uses this mechanism to cause the&#xD;&#xA;color change in the stack comtaining the currently active part&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributorURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field is used to track the bundle (if any) from which the UI element was&#xD;&#xA;derived in order to faciliate its removal should the bundle go away or be updated.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="transientData" upperBound="-1"
- eType="#//StringToObjectMap" transient="true" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a String to Object map into which any desired runtime information realted to a particular element&#xD;&#xA;may be stored. It is &lt;i>not&lt;/i> persisted across sessions so it is not necessary that the 'values' be&#xD;&#xA;serializable.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Contribution" abstract="true" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;MContribution is a mix-in class used by concrete elements such as Parts to define&#xD;&#xA;the location of the client supplied class implementing the specific logic needed.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The ContributionURI defines the complete path to a class implementing the logic&#xD;&#xA;for elements require external code to handle the UI such as MParts and MHandlers.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="object" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the DI created instance of the class implementing the logic for the element.&#xD;&#xA;It will only be non-null if the element has been rendered into the presentation.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Addon" eSuperTypes="#//Contribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;An MAddon represents a self-contained application logic. Addons may be used&#xD;&#xA;to augment the UI in a variety of ways without requriing that the base application&#xD;&#xA;be aware of the extensions.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;Addons aare expected to be capable of being removed without damage to the&#xD;&#xA;original UI. While not yet implemented there will be an uninstall protocol defined&#xD;&#xA;ni the future allowing an addon to remove any model elements specific to the&#xD;&#xA;addon (i.e. The MinMaxAddon's TrimElements.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="StringToObjectMap" instanceClassName="java.util.Map$Entry">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
- </eClassifiers>
- <eSubpackages name="commands" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/commands"
- nsPrefix="commands">
- <eClassifiers xsi:type="ecore:EClass" name="BindingTableContainer" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This type contains the list of binding 'tables', representing the various sets of bindings&#xD;&#xA;based on the applicaiton's current running 'context'. Here the 'context' represents&#xD;&#xA;the applicaiton's UI state (i.e. whenther a Dialog is open...).&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="bindingTables" upperBound="-1"
- eType="#//commands/BindingTable" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="rootContext" upperBound="-1"
- eType="#//commands/BindingContext" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Bindings" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Mixin interface that lists MBindingContexts that should be active when this&#xA;object is active.&#xD;&#xA;&lt;/p>&#xA;&lt;p>Example values: org.eclipse.ui.contexts.dialog, org.eclipse.ui.contexts.window&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="bindingContexts" upperBound="-1"
- eType="#//commands/BindingContext">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="BindingContext" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This class describes the hierarchy of contexts that are used by the &#xA;&lt;code>EBindingService&lt;/code> to determine which Bindings are currently &#xA;available to the user.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
- eType="#//commands/BindingContext" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="BindingTable" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A set of Bindings that will be active if the matching &lt;code>MBindingContext&lt;/code>&#xA;is active.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="bindings" upperBound="-1"
- eType="#//commands/KeyBinding" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="bindingContext" lowerBound="1"
- eType="#//commands/BindingContext">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Command" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A Command represents a logical operation within the applicaiton. The implementation&#xD;&#xA;is provided by an MHandler chosen by examining all the candidate's enablement.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedCommandName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated name.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="getLocalizedDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated description.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="commandName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field holds the command's name, used in the UI by default when there&#xD;&#xA;are menu or toolbar items representing this command.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field holds the command's description, used in the UI when the commands&#xD;&#xA;being shown in dialogs....&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
- eType="#//commands/CommandParameter" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This list defines the ste of parameters that this command expects to have defined&#xD;&#xA;during execution.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="category" eType="#//commands/Category">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="CommandParameter" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This represents the format of a parameter to be used in a Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The name of the parameter.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The type of the parameter.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="optional" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether or not this parameter is optional.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Handler" eSuperTypes="#//Contribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Handlers provide the execution logic that provides the implementation of a&#xD;&#xA;particular command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="command" lowerBound="1"
- eType="#//commands/Command">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a reference to the Command for which this is an execution candidate.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="HandlerContainer" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a container in which to store lists of Handlers. &#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="handlers" upperBound="-1"
- eType="#//commands/Handler" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="KeyBinding" eSuperTypes="#//ApplicationElement #//commands/KeySequence">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Keybindings map a particular keyboard sequence (i.e. Ctrl + C for Copy...) onto&#xD;&#xA;some command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="command" lowerBound="1"
- eType="#//commands/Command">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A reference to the Command to (attempt to) execute if the given key sequence is&#xD;&#xA;detected.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
- eType="#//commands/Parameter" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This allows a KeyBinding to provide a particular set of parameters to be used when&#xD;&#xA;the Command is to be executed. This allows generic commands like 'Open Part' to&#xD;&#xA;have bindings that will open a &lt;i>specific&lt;/i> Part...&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="KeySequence" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This represents the sequence of characters in a KeyBinding whose detection will&#xD;&#xA;fire the associated Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="keySequence" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a formatted string used by the key binding infrastructure to determine the&#xD;&#xA;exact key sequence for a KeyBinding.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the value of a Parameter to be used by a Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the name of this parameter.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the value of this parameter.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="ParameterizedCommand" instanceClassName="org.eclipse.core.commands.ParameterizedCommand"
- serializable="false"/>
- <eClassifiers xsi:type="ecore:EClass" name="Category" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This defines a logical grouping of Commands in order to facilitate showing &#xD;&#xA;the current set of Commands in dialogs, lists etc&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated name of the Category.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="getLocalizedDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated description of the Category.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The name to be displayed for this category.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The description to display for this category.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- </eSubpackages>
- <eSubpackages name="ui" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui"
- nsPrefix="ui">
- <eClassifiers xsi:type="ecore:EClass" name="Context" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This class is mixed into a UI element when that element is expected to participate&#xD;&#xA;in the Dependency Injection context hierarchy. The context life-cycle matches&#xD;&#xA;that of the rendered element it belongs to. It's automatically created when the&#xD;&#xA;element is rendered and disposed when the element is unrendered.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="context" eType="#//IEclipseContext"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This attribute is a reference to the IEclipseContext for this UI element. It will be &#xD;&#xA;non-null only when the element is rendered.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="variables" ordered="false"
- upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="properties" upperBound="-1"
- eType="#//StringToStringMap" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Dirtyable" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This class should be mixed into any UI element that should participate in the&#xD;&#xA;dirty / save handling. Parts are the most likely scenario for this but it exists as&#xD;&#xA;a mix-in to allow for future model extensions.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="dirty" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The current dirty state of the UI element.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Input" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This class should be mixed into UI elements such as InputParts that need to &#xD;&#xA;reference an external resource (files...).&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients.&#xD;&#xA;@deprecated No longer used"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="inputURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The specification of the particular resource's location or other meta information.&#xD;&#xA;The format of this field will be interpreted by the class using it (i.e. a Part).&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="UIElement" abstract="true" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base mix-in shared by all model elements that can be rendered into the&#xD;&#xA;UI presentation of the application. Its main job is to manage the bindings between&#xD;&#xA;the concrete element and the UI 'widget' representing it in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedAccessibilityPhrase" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field is intended to allow enhanced support for accessibility by providing the &#xD;&#xA;ability to have a screen reader 'say' this phrase along with its normal output.&#xD;&#xA;This is currently unused in teh base SWT renderer but is available for use by&#xD;&#xA;other rendering platforms...&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="widget" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field represents the platform specific UI 'widget' that is representing this&#xD;&#xA;UIElement on the screen. It will only be non-null when the element has been rendered.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="renderer" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field tracks the specific renderer used to create the 'widget'.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="toBeRendered" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field controls whether the given UIElement should be displayed within&#xD;&#xA;the application. Note that due to lazy loading it is possible to have this field&#xD;&#xA;set to true but to not have actually rendered the element itself (it does show up&#xD;&#xA;as a tab on the appropiate stack but will only be rendered when that tab is&#xD;&#xA;selected.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="onTop" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="visible" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines whether or not the given UIElement appears in the presentation&#xD;&#xA;or whether it should be 'cached' for specialized use. Under normal circumstances&#xD;&#xA;this flag should always be 'true'.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;The MinMaxAddon uses this flag for example when a stack becomes minimized. By&#xD;&#xA;setting the flag to false the stack's widget is cleanly removed from the UI but&#xD;&#xA;is still 'rendered'. Once the widget has been cached the minimized stack can then&#xD;&#xA;display the widget using its own technques.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eOpposite="#//ui/ElementContainer/children">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field is a reference to this element's container. Note that while this field is valid&#xD;&#xA;for most UIElements there are a few (such as TrimBars and the Windows associated&#xD;&#xA;with top level windows and perspectives) where this will return 'null' &#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- <eGenericType eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/UIElement"/>
- </eGenericType>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="containerData" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a persistend field that may be used by the &lt;b>parent&lt;/b> element's renderer&#xD;&#xA;to maintain any data that it needs to control the container. For example this is where&#xD;&#xA;the SashRenderer stores the 'weight' of a particular element.&#xD;&#xA;&lt;/p> &lt;p>&#xD;&#xA;&lt;b>NOTE:&lt;/b> This field is effectively deprecated in favor of the parent renderer&#xD;&#xA;simply adding a new keyed value to the UIElement's 'persistentData' map.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="curSharedRef" eType="#//ui/advanced/Placeholder"
- transient="true" derived="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a transient (i.e. non-persisted) field which is used in conjunction with&#xD;&#xA;MPlaceholders which are used to share elements actoss multiple perspectives. This&#xD;&#xA;field will point back to the MPlaceholder (if any) currently hosting this one.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="visibleWhen" eType="#//ui/Expression"
- containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="accessibilityPhrase"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field is provided as a way to inform accessibility screen readers with extra&#xD;&#xA;information. The intent is that the reader should 'say' this phrase as well as what&#xD;&#xA;it would normally emit given the widget hierarchy.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ElementContainer" abstract="true"
- eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base for the two different types of containment used in the model;&#xD;&#xA;'Stacks' (where only one element would be visible at a time) and 'Tiles' (where &#xD;&#xA;all the ele elements are visible at the same time.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;All containers define the type of element that they are to contain. By design this is&#xD;&#xA;always a single type. Where different concrete types are to be contained within the&#xD;&#xA;same container they all both mix in a container-specific type. For example both&#xD;&#xA;MParts and MPlaceholders are valid children for an MPartStack so they both mix in&#xD;&#xA;'StackElement' (which is an empty stub used only to constran the stack's types.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eTypeParameters name="T">
- <eBounds eClassifier="#//ui/UIElement"/>
- </eTypeParameters>
- <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
- containment="true" eOpposite="#//ui/UIElement/parent">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the list of contained elements in this container. All elements must be of type &lt;T>.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- <eGenericType eTypeParameter="#//ui/ElementContainer/T"/>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="selectedElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field contains the reference to the currently 'selected' element within a container.&#xD;&#xA;Note that the element must not only be in the container's children list but must also be&#xD;&#xA;visible in the presentation (&quot;toBeRendered' == true).&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- <eGenericType eTypeParameter="#//ui/ElementContainer/T"/>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="UILabel" abstract="true" interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a mix in that will be used for UI Elements that are capable of showing label&#xD;&#xA;information in the GUI (e.g. Parts, Menus / Toolbars, Persepectives...)&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedLabel" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will retrieve the internationalized label by using the current&#xD;&#xA;value of the label itself and some translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eOperations>
- <eOperations name="getLocalizedTooltip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will retrieve the internationalized tooltip by using the current&#xD;&#xA;value of the label itself and some translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="label" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The label to display for this element. If the label is expected to be internationalized&#xD;&#xA;then the label may be set to a 'key' value to be used by the translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="iconURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field contains a fully qualified URL defining the path to an Image to display&#xD;&#xA;for this element.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="tooltip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The tooltip to display for this element. If the tooltip is expected to be internationalized&#xD;&#xA;then the tooltip may be set to a 'key' value to be used by the translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="GenericStack" abstract="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This type defines the base type for 'stack' type containers. These containers are&#xD;&#xA;expected to only show their currently 'selected' element.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eTypeParameters name="T">
- <eBounds eClassifier="#//ui/UIElement"/>
- </eTypeParameters>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eTypeParameter="#//ui/GenericStack/T"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="GenericTile" abstract="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This type defines the base type for 'tile' type containers. These containers are&#xD;&#xA;expected to only show all their visible children at the same time.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eTypeParameters name="T">
- <eBounds eClassifier="#//ui/UIElement"/>
- </eTypeParameters>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="horizontal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines which direction the tiling should take; 'true' for horizontal' tiling,&#xD;&#xA;'false' for vertical.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eTypeParameter="#//ui/GenericTile/T"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="GenericTrimContainer" abstract="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a collection specifically for TrimBars.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eTypeParameters name="T">
- <eBounds eClassifier="#//ui/UIElement"/>
- </eTypeParameters>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="side" lowerBound="1"
- eType="#//ui/SideValue">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is an enum defining the side of the UI Window on which this collection&#xD;&#xA;should be displayed.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eTypeParameter="#//ui/GenericTrimContainer/T"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="SideValue">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;An enum providing the specific values determining the side of a trimmedWindow&#xD;&#xA;on which particular trim bars should be displayed.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- <eLiterals name="Top"/>
- <eLiterals name="Bottom" value="1"/>
- <eLiterals name="Left" value="2"/>
- <eLiterals name="Right" value="3"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true" eSuperTypes="#//ApplicationElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A class upon which specific types of expressions are based. These are often used to&#xA;evaluate visibility and enablement of model elements.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="CoreExpression" eSuperTypes="#//ui/Expression">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A specific kind of expression used by the Eclipse Workbench.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="coreExpressionId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral="">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="coreExpression" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SnippetContainer" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a collection of model fragments that can be subsequently cloned and&#xD;&#xA;inserterd into the model using the EModelService. For example saving a customized&#xD;&#xA;Perspective will create a clone and store it in this container.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="snippets" upperBound="-1"
- eType="#//ui/UIElement" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eSubpackages name="menu" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu"
- nsPrefix="menu">
- <eClassifiers xsi:type="ecore:EEnum" name="ItemType">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This enum defines the style of a menu or toolbar item.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
- </eAnnotations>
- <eLiterals name="Push"/>
- <eLiterals name="Check" value="1"/>
- <eLiterals name="Radio" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Item" abstract="true" eSuperTypes="#//ui/UIElement #//ui/UILabel">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for various menu and toolbar items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="enabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the current enablement state of a given menu or toolbar item.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="selected" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the current selection state for a menu or tool item&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1"
- eType="#//ui/menu/ItemType">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the item type for this item.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="HandledItem" abstract="true" eSuperTypes="#//ui/menu/Item">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base class for menu and tool items associated with Commands.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="command" eType="#//commands/Command">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A reference to the Command associated with this item.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="wbCommand" eType="#//commands/ParameterizedCommand"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is used for low level implementation and is not intended to be used by clients&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
- eType="#//commands/Parameter" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the specific parameters to use when executing the command through this item.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuElement" abstract="true" eSuperTypes="#//ui/UIElement #//ui/UILabel">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the bsae type for both menu items and Separators.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedMnemonics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated mnemonic for this element.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mnemonics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the character that is interpreted by the platform to allow for easier navigation&#xD;&#xA;through menus.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuItem" abstract="true" eSuperTypes="#//ui/menu/Item #//ui/menu/MenuElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for both Handled and direct menu items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuSeparator" eSuperTypes="#//ui/menu/MenuElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;An element representing a separator in a menu.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Menu">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class used to represent a menu in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="enabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines whether the associated menu is enabled or not.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/menu/MenuElement"/>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/menu/MenuElement"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuContribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some menu already&#xD;&#xA;defined in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral="">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the parent menu where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the Menu to be contributed to.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/menu/MenuElement"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PopupMenu" eSuperTypes="#//ui/menu/Menu #//ui/Context">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing context menus. Menus of this type are generally&#xD;&#xA;managed by code within the running application since they're not visible in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DirectMenuItem" eSuperTypes="#//ui/menu/MenuItem #//Contribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class use to represent a menu item that is directly &#xD;&#xA;invoked when selected. The supplied contribution is asked to execute&#xA;when selected.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="HandledMenuItem" eSuperTypes="#//ui/menu/MenuItem #//ui/menu/HandledItem">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete UI Model element representing a menu item that is managed&#xD;&#xA;through the Commands / Handlers infrastructure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolItem" abstract="true" eSuperTypes="#//ui/menu/Item #//ui/menu/ToolBarElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for both Direct and Handled tool items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="menu" eType="#//ui/menu/Menu"
- containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;When set this represents the menu that appears when the 'drop down' arrow is&#xD;&#xA;clicked on this tool item.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolBar">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a Toolbar in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/menu/ToolBarElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/basic/TrimElement"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolBarElement" abstract="true"
- eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a placeholder class mixed in to any other type that can be added to a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolControl" eSuperTypes="#//ui/menu/ToolBarElement #//Contribution #//ui/basic/TrimElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing a widget hosted directly in the trim &#xD;&#xA;or as an item in a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="HandledToolItem" eSuperTypes="#//ui/menu/ToolItem #//ui/menu/HandledItem">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete UI Model element representing a tool item that is managed&#xD;&#xA;through the Commands / Handlers infrastructure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DirectToolItem" eSuperTypes="#//ui/menu/ToolItem #//Contribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class use to represent a tool item that is directly &#xD;&#xA;invoked when selected. The supplied contribution is asked to execute&#xA;when selected.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolBarSeparator" eSuperTypes="#//ui/menu/ToolBarElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class used to represent a separator in a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MenuContributions" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the menu contributions to be&#xD;&#xA;applied to menus.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="menuContributions"
- upperBound="-1" eType="#//ui/menu/MenuContribution" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="RenderedMenu" eSuperTypes="#//ui/menu/Menu">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenu&#xD;&#xA;@noreference&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionManager"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="RenderedToolBar" eSuperTypes="#//ui/menu/ToolBar">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MToolBar&#xD;&#xA;@noreference&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionManager"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolBarContribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some toolbar already&#xD;&#xA;defined in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the Toolbar to be contributed to.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the Toolbar where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/menu/ToolBarElement"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ToolBarContributions" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the toolbar contributions to be&#xD;&#xA;applied to existing toolbars.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="toolBarContributions"
- upperBound="-1" eType="#//ui/menu/ToolBarContribution" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TrimContribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some trim bar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the TrimBar to be contributed to.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the TrimBar where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/basic/TrimElement"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TrimContributions" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the trim bar contributions to be&#xD;&#xA;applied.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="trimContributions"
- upperBound="-1" eType="#//ui/menu/TrimContribution" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="RenderedMenuItem" eSuperTypes="#//ui/menu/MenuItem">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="OpaqueToolItem" eSuperTypes="#//ui/menu/ToolItem">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenuItem" eSuperTypes="#//ui/menu/MenuItem">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenuSeparator" eSuperTypes="#//ui/menu/MenuSeparator">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
- transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenu" eSuperTypes="#//ui/menu/Menu">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DynamicMenuContribution" eSuperTypes="#//ui/menu/MenuItem #//Contribution">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class used to represent a menu item that replaces itself through&#xD;&#xA;the execution of the associated client code. The supplied contribution will&#xA;provide the appropriate MMenuElement model elements when queried.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- </eSubpackages>
- <eSubpackages name="basic" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic"
- nsPrefix="basic">
- <eClassifiers xsi:type="ecore:EClass" name="Part" eSuperTypes="#//ui/UIElement #//ui/basic/PartSashContainerElement #//ui/basic/StackElement #//Contribution #//ui/Context #//ui/UILabel #//commands/HandlerContainer #//ui/Dirtyable #//commands/Bindings #//ui/basic/WindowElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This a concrete class representing the core UI functionality within a Window. It's what&#xD;&#xA;used to be a View / Editor in Eclipse 3.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="menus" upperBound="-1"
- eType="#//ui/menu/Menu" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the list of the menus associated with this part. There are two specific menus&#xD;&#xA;that are managed by the core UI;&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;menu:&quot; then it will appear as the &#xD;&#xA;drop down menu available from the view's toolbar.&lt;/li>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;popup:&quot; then it will appear as the &#xD;&#xA;ddefault context menu for this view.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;Other menus can be added here but have to be managed by the part itsefl...&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="toolbar" eType="#//ui/menu/ToolBar"
- containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the Toolbar associated with tihs Part (if any).&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether the user is allowed to close this view.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The description of this Part; used when the Part appears in a list of Parts&#xD;&#xA;(i.e. 'Show View').&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="CompositePart">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a Part that is capable of supporting an internal structure. In order to be useful instances of this part muct be capable&#xD;&#xA;of managing their internal structure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients.&#xD;&#xA;"/>
- </eAnnotations>
- <eGenericSuperTypes eClassifier="#//ui/basic/Part"/>
- <eGenericSuperTypes eClassifier="#//ui/GenericTile">
- <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
- </eGenericSuperTypes>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="InputPart" eSuperTypes="#//ui/basic/Part #//ui/Input">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a subclass of Part that allows tracking of an 'input'. While originally defined as&#xD;&#xA;a type of 'editor' it turns out that it may well be better to just use a regular Part and&#xD;&#xA;to store what would be the input as an entry on the Part's 'persistentData' map.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@deprecated Use Part instead.&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PartStack">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a stack of Parts in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eGenericSuperTypes eClassifier="#//ui/GenericStack">
- <eTypeArguments eClassifier="#//ui/basic/StackElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
- <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PartSashContainer">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing sashed containment in the UI Model. This&#xD;&#xA;type is recursive, allowing the creation of a tree of sashes whose leafs are Parts.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eGenericSuperTypes eClassifier="#//ui/GenericTile">
- <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
- <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Window">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a bare bones window in the UI Model. Unless&#xD;&#xA;specifically desired it's likely better to use the TrimmedWindow instead.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="mainMenu" eType="#//ui/menu/Menu"
- containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The main menu (if any) for this window.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="x" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
- defaultValueLiteral="-2147483648">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The 'X' position of this window&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="y" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
- defaultValueLiteral="-2147483648">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The 'Y' position of this window&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="width" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
- defaultValueLiteral="-1">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The width of this window&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="height" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
- defaultValueLiteral="-1">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The heigfht of this window&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="windows" upperBound="-1"
- eType="#//ui/basic/Window" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The collection of 'Detached' windows associated with this window.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="sharedElements" upperBound="-1"
- eType="#//ui/UIElement" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the collection of UI Elements that are referenced by Placeholders, allowing&#xD;&#xA;the re-use of these elements in different Perspectives.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/basic/WindowElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/UILabel"/>
- <eGenericSuperTypes eClassifier="#//ui/Context"/>
- <eGenericSuperTypes eClassifier="#//commands/HandlerContainer"/>
- <eGenericSuperTypes eClassifier="#//commands/Bindings"/>
- <eGenericSuperTypes eClassifier="#//ui/SnippetContainer"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TrimmedWindow" eSuperTypes="#//ui/basic/Window">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window that also supports TrimBars on its edges.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="trimBars" upperBound="-1"
- eType="#//ui/basic/TrimBar" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The collection of TrimBars associated with this window.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TrimElement" abstract="true" interface="true"
- eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a TrimBar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PartSashContainerElement" abstract="true"
- interface="true" eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to&#xD;&#xA;a PartSashContainer. Since a PartSashContainer is itself a PartSashContainerElement&#xD;&#xA;we can defined nested 'trees' of sash containment.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="WindowElement" abstract="true" interface="true"
- eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a&#xD;&#xA;Window.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="TrimBar">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing the trim along a Window's edge.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="pendingCleanup" upperBound="-1"
- eType="#//ui/basic/TrimElement" transient="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is for internal use...&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/GenericTrimContainer">
- <eTypeArguments eClassifier="#//ui/basic/TrimElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/UIElement"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="StackElement" abstract="true" interface="true"
- eSuperTypes="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a&#xD;&#xA;PartStack.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Dialog" eSuperTypes="#//ui/basic/Window">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window representing a dialog.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="WizardDialog" eSuperTypes="#//ui/basic/Dialog">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window representing a wizard dialog.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- </eSubpackages>
- <eSubpackages name="advanced" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced"
- nsPrefix="advanced">
- <eClassifiers xsi:type="ecore:EClass" name="Placeholder" eSuperTypes="#//ui/UIElement #//ui/basic/PartSashContainerElement #//ui/basic/StackElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A Placeholder is a concrete class used to share elements between perspectives. The&#xD;&#xA;elements referenced by a Placeholder generally exist in the Window's 'sharedElements'&#xD;&#xA;list. By convention a placeholder usually shares the same elementId as the element&#xD;&#xA;that it's referencing.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="ref" lowerBound="1"
- eType="#//ui/UIElement">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The reference to the actual UI element that this Placeholder is acting as a proxy for.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether the element (usually a Part) referenced by this Placeholder can&#xD;&#xA;be closed by the User. This allows a Part to be closeable in one perspective but&#xD;&#xA;not closeable in a different one.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Perspective">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The Persepctive defines a part of the UI presentation that can be switched independently&#xD;&#xA;of the rest of the UI. By using Placeholders it's possible to share elements between&#xD;&#xA;different perspectives.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="windows" upperBound="-1"
- eType="#//ui/basic/Window" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
- <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/UILabel"/>
- <eGenericSuperTypes eClassifier="#//ui/Context"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PerspectiveStack">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The PerspectiveStack is a collectin of Perspectives. Only one perspective may be&#xD;&#xA;visible at a time and is determined by the container's 'selectedElement'.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eGenericSuperTypes eClassifier="#//ui/UIElement"/>
- <eGenericSuperTypes eClassifier="#//ui/GenericStack">
- <eTypeArguments eClassifier="#//ui/advanced/Perspective"/>
- </eGenericSuperTypes>
- <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
- <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Area" eSuperTypes="#//ui/basic/PartSashContainer #//ui/UILabel">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete element representing a (possibly sashed) chunk of the UI presentation&#xD;&#xA;that will minimize / maximize as one unit. This is used in Eclipse 4 to allow for a split&#xD;&#xA;Editor Area.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- </eClassifiers>
- </eSubpackages>
- </eSubpackages>
- <eSubpackages name="descriptor" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/descriptor"
- nsPrefix="descriptor">
- <eSubpackages name="basic" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/descriptor/basic"
- nsPrefix="basic">
- <eClassifiers xsi:type="ecore:EClass" name="PartDescriptor" eSuperTypes="#//ApplicationElement #//ui/UILabel #//commands/HandlerContainer #//commands/Bindings">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This element represents a template from which an MPart can be created on demand.&#xD;&#xA;The collection of PartDescriptors owned by the Application represents the contributed&#xD;&#xA;parts and is used in the e4 version of 'Show View'...&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eOperations name="getLocalizedDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A method that will return the translated description.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="allowMultiple" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether or not the part represented by this descriptot can have multiple&#xD;&#xA;instances with a given window.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The category that the view represented by this descriptor belongs to.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="menus" upperBound="-1"
- eType="#//ui/menu/Menu" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the list of the menus associated with the part represented by this descriptor. &#xD;&#xA;There are two specific menus that are managed by the core UI;&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;menu:&quot; then it will appear as the &#xD;&#xA;drop down menu available from the view's toolbar.&lt;/li>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;popup:&quot; then it will appear as the &#xD;&#xA;ddefault context menu for this view.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;Other menus can be added here but have to be managed by the part itsefl...&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="toolbar" eType="#//ui/menu/ToolBar"
- containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;This is the Toolbar associated with tihs Part (if any).&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Defines whether instances of views created from this descriptor are closeable by the&#xD;&#xA;User.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="dirtyable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether Parts generated from this template can participate in the&#xD;&#xA;Dirty -> Save cycle. At best this is a hint since all Parts are inherently dirtyable.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The fully qualified path to the class implementing the behavior of the Part.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;The description of this Part.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="PartDescriptorContainer" abstract="true"
- interface="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A type specific collection of PartDescriptors.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="descriptors" upperBound="-1"
- eType="#//descriptor/basic/PartDescriptor" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="&lt;p>&#xD;&#xA;A collection of PartDescriptors.&#xD;&#xA;&lt;/p>"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- </eSubpackages>
- </eSubpackages>
-</ecore:EPackage>
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="application" nsURI="http://www.eclipse.org/ui/2010/UIModel/application"
+ nsPrefix="application">
+ <eClassifiers xsi:type="ecore:EDataType" name="IEclipseContext" instanceClassName="org.eclipse.e4.core.contexts.IEclipseContext"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EClass" name="StringToStringMap" instanceClassName="java.util.Map$Entry">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Application">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The MApplication acts as the root of the UI Model. It's children are the&#xD;&#xA; MWindows representing the UI for this application. It also owns the application's&#xD;&#xA;context (which is hooked to the OSGI context, allowing access not only to its&#xD;&#xA;own runtime information but also to any registered OSGI service.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;It also owns a number of caches which, while independent of the UI itself are&#xD;&#xA;used by the appliecation to populate new windows or to define state that is&#xD;&#xA;epected to be the same for all windows:&#xD;&#xA;&lt;ui>&#xD;&#xA;&lt;li>Keybindings, Handlers, Commands&lt;/li>&#xD;&#xA;&lt;li>Part Descriptors (to support a 'Show View' dialog...)&lt;/li>&#xD;&#xA;&lt;li>Snippets of model (such as saved perspectives...)&lt;/li>&#xD;&#xA;&lt;/ui>&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="commands" upperBound="-1"
+ eType="#//commands/Command" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the list of MCommand elements available in the application. Commands&#xD;&#xA;represent some logical operation. The actual implementation of the operation is&#xD;&#xA;determined by the MHandler chosen by the system based on the current execution&#xD;&#xA;context.&#xD;&#xA;&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="addons" upperBound="-1"
+ eType="#//Addon" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the ordered list of MAddons for this model. The individual addons will be&#xD;&#xA;created through injection after the model loads but before it is rendered.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
+ eType="#//commands/Category" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="dialogs" upperBound="-1"
+ eType="#//ui/basic/Dialog">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the ordered list of MDialogs for this model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/basic/Window"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/Context"/>
+ <eGenericSuperTypes eClassifier="#//commands/HandlerContainer"/>
+ <eGenericSuperTypes eClassifier="#//commands/BindingTableContainer"/>
+ <eGenericSuperTypes eClassifier="#//descriptor/basic/PartDescriptorContainer"/>
+ <eGenericSuperTypes eClassifier="#//commands/Bindings"/>
+ <eGenericSuperTypes eClassifier="#//ui/menu/MenuContributions"/>
+ <eGenericSuperTypes eClassifier="#//ui/menu/ToolBarContributions"/>
+ <eGenericSuperTypes eClassifier="#//ui/menu/TrimContributions"/>
+ <eGenericSuperTypes eClassifier="#//ui/SnippetContainer"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ApplicationElement" abstract="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the root element for all UI Model elements, defining attribtues common&#xD;&#xA;to every element; the element's id as well as three general storage elements:&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>Tags: This is a set of strings which can be used to stereotype a particular&#xD;&#xA;element. Tags may be specified in element searches and can also be referred&#xD;&#xA;to in the CSS styling definition.&lt;/li>&#xD;&#xA;&lt;li>PersistedState: A string to string map used to store information that nneds&#xD;&#xA;to be persisted between sessions.&lt;/li>&#xD;&#xA;&lt;li>TransientData: A string to object map which can be used to store runtime data&#xD;&#xA;relevant to a particular model element.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="elementId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="persistedState" upperBound="-1"
+ eType="#//StringToStringMap" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a Strimg to String map that can be used to persist information avout model&#xD;&#xA;elements across program sessions. The format of the 'value' string is defined by&#xD;&#xA;the code setting the value into the map. Information stored in this map is part of&#xD;&#xA;the model and will be persisted and restored as such.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="tags" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Tags are a list of Strings that are persistent parts of the UI Model. They can be used to 'refine' a particular&#xD;&#xA;model element, supplying extra 'meta' information. These tags interact with the CSS engine so that it's&#xD;&#xA;possible to write CSS specific to a particular tag. The platform currently uses this mechanism to cause the&#xD;&#xA;color change in the stack comtaining the currently active part&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributorURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field is used to track the bundle (if any) from which the UI element was&#xD;&#xA;derived in order to faciliate its removal should the bundle go away or be updated.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="transientData" upperBound="-1"
+ eType="#//StringToObjectMap" transient="true" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a String to Object map into which any desired runtime information realted to a particular element&#xD;&#xA;may be stored. It is &lt;i>not&lt;/i> persisted across sessions so it is not necessary that the 'values' be&#xD;&#xA;serializable.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Contribution" abstract="true" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;MContribution is a mix-in class used by concrete elements such as Parts to define&#xD;&#xA;the location of the client supplied class implementing the specific logic needed.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The ContributionURI defines the complete path to a class implementing the logic&#xD;&#xA;for elements require external code to handle the UI such as MParts and MHandlers.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="object" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the DI created instance of the class implementing the logic for the element.&#xD;&#xA;It will only be non-null if the element has been rendered into the presentation.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Addon" eSuperTypes="#//Contribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;An MAddon represents a self-contained application logic. Addons may be used&#xD;&#xA;to augment the UI in a variety of ways without requriing that the base application&#xD;&#xA;be aware of the extensions.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;Addons aare expected to be capable of being removed without damage to the&#xD;&#xA;original UI. While not yet implemented there will be an uninstall protocol defined&#xD;&#xA;ni the future allowing an addon to remove any model elements specific to the&#xD;&#xA;addon (i.e. The MinMaxAddon's TrimElements.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="StringToObjectMap" instanceClassName="java.util.Map$Entry">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="key" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
+ </eClassifiers>
+ <eSubpackages name="commands" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/commands"
+ nsPrefix="commands">
+ <eClassifiers xsi:type="ecore:EClass" name="BindingTableContainer" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This type contains the list of binding 'tables', representing the various sets of bindings&#xD;&#xA;based on the applicaiton's current running 'context'. Here the 'context' represents&#xD;&#xA;the applicaiton's UI state (i.e. whenther a Dialog is open...).&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="bindingTables" upperBound="-1"
+ eType="#//commands/BindingTable" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="rootContext" upperBound="-1"
+ eType="#//commands/BindingContext" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Bindings" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Mixin interface that lists MBindingContexts that should be active when this&#xA;object is active.&#xD;&#xA;&lt;/p>&#xA;&lt;p>Example values: org.eclipse.ui.contexts.dialog, org.eclipse.ui.contexts.window&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="bindingContexts" upperBound="-1"
+ eType="#//commands/BindingContext">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="BindingContext" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This class describes the hierarchy of contexts that are used by the &#xA;&lt;code>EBindingService&lt;/code> to determine which Bindings are currently &#xA;available to the user.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
+ eType="#//commands/BindingContext" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="BindingTable" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A set of Bindings that will be active if the matching &lt;code>MBindingContext&lt;/code>&#xA;is active.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="bindings" upperBound="-1"
+ eType="#//commands/KeyBinding" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="bindingContext" lowerBound="1"
+ eType="#//commands/BindingContext">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Command" eSuperTypes="#//ApplicationElement #//ui/Localizable">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A Command represents a logical operation within the applicaiton. The implementation&#xD;&#xA;is provided by an MHandler chosen by examining all the candidate's enablement.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="commandName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field holds the command's name, used in the UI by default when there&#xD;&#xA;are menu or toolbar items representing this command.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field holds the command's description, used in the UI when the commands&#xD;&#xA;being shown in dialogs....&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
+ eType="#//commands/CommandParameter" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This list defines the ste of parameters that this command expects to have defined&#xD;&#xA;during execution.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="category" eType="#//commands/Category">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedCommandName"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedDescription"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="CommandParameter" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This represents the format of a parameter to be used in a Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The name of the parameter.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The type of the parameter.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="optional" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether or not this parameter is optional.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Handler" eSuperTypes="#//Contribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Handlers provide the execution logic that provides the implementation of a&#xD;&#xA;particular command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="command" lowerBound="1"
+ eType="#//commands/Command">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a reference to the Command for which this is an execution candidate.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HandlerContainer" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a container in which to store lists of Handlers. &#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="handlers" upperBound="-1"
+ eType="#//commands/Handler" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="KeyBinding" eSuperTypes="#//ApplicationElement #//commands/KeySequence">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Keybindings map a particular keyboard sequence (i.e. Ctrl + C for Copy...) onto&#xD;&#xA;some command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="command" lowerBound="1"
+ eType="#//commands/Command">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A reference to the Command to (attempt to) execute if the given key sequence is&#xD;&#xA;detected.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
+ eType="#//commands/Parameter" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This allows a KeyBinding to provide a particular set of parameters to be used when&#xD;&#xA;the Command is to be executed. This allows generic commands like 'Open Part' to&#xD;&#xA;have bindings that will open a &lt;i>specific&lt;/i> Part...&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="KeySequence" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This represents the sequence of characters in a KeyBinding whose detection will&#xD;&#xA;fire the associated Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="keySequence" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a formatted string used by the key binding infrastructure to determine the&#xD;&#xA;exact key sequence for a KeyBinding.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the value of a Parameter to be used by a Command.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the name of this parameter.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the value of this parameter.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="ParameterizedCommand" instanceClassName="org.eclipse.core.commands.ParameterizedCommand"
+ serializable="false"/>
+ <eClassifiers xsi:type="ecore:EClass" name="Category" eSuperTypes="#//ApplicationElement #//ui/Localizable">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This defines a logical grouping of Commands in order to facilitate showing &#xD;&#xA;the current set of Commands in dialogs, lists etc&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The name to be displayed for this category.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The description to display for this category.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" defaultValueLiteral=""
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedDescription"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ </eSubpackages>
+ <eSubpackages name="ui" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui"
+ nsPrefix="ui">
+ <eClassifiers xsi:type="ecore:EClass" name="Context" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This class is mixed into a UI element when that element is expected to participate&#xD;&#xA;in the Dependency Injection context hierarchy. The context life-cycle matches&#xD;&#xA;that of the rendered element it belongs to. It's automatically created when the&#xD;&#xA;element is rendered and disposed when the element is unrendered.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="context" eType="#//IEclipseContext"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This attribute is a reference to the IEclipseContext for this UI element. It will be &#xD;&#xA;non-null only when the element is rendered.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="variables" ordered="false"
+ upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="properties" upperBound="-1"
+ eType="#//StringToStringMap" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Dirtyable" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This class should be mixed into any UI element that should participate in the&#xD;&#xA;dirty / save handling. Parts are the most likely scenario for this but it exists as&#xD;&#xA;a mix-in to allow for future model extensions.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="dirty" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The current dirty state of the UI element.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Input" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This class should be mixed into UI elements such as InputParts that need to &#xD;&#xA;reference an external resource (files...).&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients.&#xD;&#xA;@deprecated No longer used"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="inputURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The specification of the particular resource's location or other meta information.&#xD;&#xA;The format of this field will be interpreted by the class using it (i.e. a Part).&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="UIElement" abstract="true" eSuperTypes="#//ApplicationElement #//ui/Localizable">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base mix-in shared by all model elements that can be rendered into the&#xD;&#xA;UI presentation of the application. Its main job is to manage the bindings between&#xD;&#xA;the concrete element and the UI 'widget' representing it in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="widget" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field represents the platform specific UI 'widget' that is representing this&#xD;&#xA;UIElement on the screen. It will only be non-null when the element has been rendered.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="renderer" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field tracks the specific renderer used to create the 'widget'.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="toBeRendered" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field controls whether the given UIElement should be displayed within&#xD;&#xA;the application. Note that due to lazy loading it is possible to have this field&#xD;&#xA;set to true but to not have actually rendered the element itself (it does show up&#xD;&#xA;as a tab on the appropiate stack but will only be rendered when that tab is&#xD;&#xA;selected.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="onTop" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="visible" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines whether or not the given UIElement appears in the presentation&#xD;&#xA;or whether it should be 'cached' for specialized use. Under normal circumstances&#xD;&#xA;this flag should always be 'true'.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;The MinMaxAddon uses this flag for example when a stack becomes minimized. By&#xD;&#xA;setting the flag to false the stack's widget is cleanly removed from the UI but&#xD;&#xA;is still 'rendered'. Once the widget has been cached the minimized stack can then&#xD;&#xA;display the widget using its own technques.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eOpposite="#//ui/ElementContainer/children">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field is a reference to this element's container. Note that while this field is valid&#xD;&#xA;for most UIElements there are a few (such as TrimBars and the Windows associated&#xD;&#xA;with top level windows and perspectives) where this will return 'null' &#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ <eGenericType eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/UIElement"/>
+ </eGenericType>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="containerData" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a persistend field that may be used by the &lt;b>parent&lt;/b> element's renderer&#xD;&#xA;to maintain any data that it needs to control the container. For example this is where&#xD;&#xA;the SashRenderer stores the 'weight' of a particular element.&#xD;&#xA;&lt;/p> &lt;p>&#xD;&#xA;&lt;b>NOTE:&lt;/b> This field is effectively deprecated in favor of the parent renderer&#xD;&#xA;simply adding a new keyed value to the UIElement's 'persistentData' map.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="curSharedRef" eType="#//ui/advanced/Placeholder"
+ transient="true" derived="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a transient (i.e. non-persisted) field which is used in conjunction with&#xD;&#xA;MPlaceholders which are used to share elements actoss multiple perspectives. This&#xD;&#xA;field will point back to the MPlaceholder (if any) currently hosting this one.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="visibleWhen" eType="#//ui/Expression"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="accessibilityPhrase"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field is provided as a way to inform accessibility screen readers with extra&#xD;&#xA;information. The intent is that the reader should 'say' this phrase as well as what&#xD;&#xA;it would normally emit given the widget hierarchy.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedAccessibilityPhrase"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ElementContainer" abstract="true"
+ eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base for the two different types of containment used in the model;&#xD;&#xA;'Stacks' (where only one element would be visible at a time) and 'Tiles' (where &#xD;&#xA;all the ele elements are visible at the same time.&#xD;&#xA;&lt;/p>&lt;p>&#xD;&#xA;All containers define the type of element that they are to contain. By design this is&#xD;&#xA;always a single type. Where different concrete types are to be contained within the&#xD;&#xA;same container they all both mix in a container-specific type. For example both&#xD;&#xA;MParts and MPlaceholders are valid children for an MPartStack so they both mix in&#xD;&#xA;'StackElement' (which is an empty stub used only to constran the stack's types.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eTypeParameters name="T">
+ <eBounds eClassifier="#//ui/UIElement"/>
+ </eTypeParameters>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
+ containment="true" eOpposite="#//ui/UIElement/parent">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the list of contained elements in this container. All elements must be of type &lt;T>.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ <eGenericType eTypeParameter="#//ui/ElementContainer/T"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="selectedElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field contains the reference to the currently 'selected' element within a container.&#xD;&#xA;Note that the element must not only be in the container's children list but must also be&#xD;&#xA;visible in the presentation (&quot;toBeRendered' == true).&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ <eGenericType eTypeParameter="#//ui/ElementContainer/T"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="UILabel" abstract="true" interface="true"
+ eSuperTypes="#//ui/Localizable">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a mix in that will be used for UI Elements that are capable of showing label&#xD;&#xA;information in the GUI (e.g. Parts, Menus / Toolbars, Persepectives...)&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="label" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The label to display for this element. If the label is expected to be internationalized&#xD;&#xA;then the label may be set to a 'key' value to be used by the translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="iconURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field contains a fully qualified URL defining the path to an Image to display&#xD;&#xA;for this element.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="tooltip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The tooltip to display for this element. If the tooltip is expected to be internationalized&#xD;&#xA;then the tooltip may be set to a 'key' value to be used by the translation service.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedLabel" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" defaultValueLiteral=""
+ derived="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedTooltip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" defaultValueLiteral=""
+ derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenericStack" abstract="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This type defines the base type for 'stack' type containers. These containers are&#xD;&#xA;expected to only show their currently 'selected' element.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eTypeParameters name="T">
+ <eBounds eClassifier="#//ui/UIElement"/>
+ </eTypeParameters>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eTypeParameter="#//ui/GenericStack/T"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenericTile" abstract="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This type defines the base type for 'tile' type containers. These containers are&#xD;&#xA;expected to only show all their visible children at the same time.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eTypeParameters name="T">
+ <eBounds eClassifier="#//ui/UIElement"/>
+ </eTypeParameters>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="horizontal" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines which direction the tiling should take; 'true' for horizontal' tiling,&#xD;&#xA;'false' for vertical.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eTypeParameter="#//ui/GenericTile/T"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="GenericTrimContainer" abstract="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a collection specifically for TrimBars.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eTypeParameters name="T">
+ <eBounds eClassifier="#//ui/UIElement"/>
+ </eTypeParameters>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="side" lowerBound="1"
+ eType="#//ui/SideValue">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is an enum defining the side of the UI Window on which this collection&#xD;&#xA;should be displayed.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eTypeParameter="#//ui/GenericTrimContainer/T"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="SideValue">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;An enum providing the specific values determining the side of a trimmedWindow&#xD;&#xA;on which particular trim bars should be displayed.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ <eLiterals name="Top"/>
+ <eLiterals name="Bottom" value="1"/>
+ <eLiterals name="Left" value="2"/>
+ <eLiterals name="Right" value="3"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true" eSuperTypes="#//ApplicationElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A class upon which specific types of expressions are based. These are often used to&#xA;evaluate visibility and enablement of model elements.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="CoreExpression" eSuperTypes="#//ui/Expression">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A specific kind of expression used by the Eclipse Workbench.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="coreExpressionId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ defaultValueLiteral="">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="coreExpression" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="SnippetContainer" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This provides a collection of model fragments that can be subsequently cloned and&#xD;&#xA;inserterd into the model using the EModelService. For example saving a customized&#xD;&#xA;Perspective will create a clone and store it in this container.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="snippets" upperBound="-1"
+ eType="#//ui/UIElement" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Localizable" abstract="true" interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This class should be mixed into any UI element that should participate in the&#xD;&#xA;Locale update handling.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ <eOperations name="updateLocalization">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This method is used to support Locale changes at runtime.&#xD;&#xA;Implementing this method should result in refreshing localizable properties&#xD;&#xA;like labels, tooltips and descriptions.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eOperations>
+ </eClassifiers>
+ <eSubpackages name="menu" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu"
+ nsPrefix="menu">
+ <eClassifiers xsi:type="ecore:EEnum" name="ItemType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This enum defines the style of a menu or toolbar item.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0"/>
+ </eAnnotations>
+ <eLiterals name="Push"/>
+ <eLiterals name="Check" value="1"/>
+ <eLiterals name="Radio" value="2"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Item" abstract="true" eSuperTypes="#//ui/UIElement #//ui/UILabel">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for various menu and toolbar items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="enabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the current enablement state of a given menu or toolbar item.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="selected" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the current selection state for a menu or tool item&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1"
+ eType="#//ui/menu/ItemType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the item type for this item.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HandledItem" abstract="true" eSuperTypes="#//ui/menu/Item">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base class for menu and tool items associated with Commands.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="command" eType="#//commands/Command">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A reference to the Command associated with this item.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="wbCommand" eType="#//commands/ParameterizedCommand"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is used for low level implementation and is not intended to be used by clients&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
+ eType="#//commands/Parameter" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Defines the specific parameters to use when executing the command through this item.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MenuElement" abstract="true" eSuperTypes="#//ui/UIElement #//ui/UILabel">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the bsae type for both menu items and Separators.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eOperations name="getLocalizedMnemonics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a method that will return the translated mnemonic for this element.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eOperations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mnemonics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the character that is interpreted by the platform to allow for easier navigation&#xD;&#xA;through menus.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MenuItem" abstract="true" eSuperTypes="#//ui/menu/Item #//ui/menu/MenuElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for both Handled and direct menu items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MenuSeparator" eSuperTypes="#//ui/menu/MenuElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;An element representing a separator in a menu.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Menu">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class used to represent a menu in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="enabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This field determines whether the associated menu is enabled or not.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/menu/MenuElement"/>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/menu/MenuElement"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MenuContribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some menu already&#xD;&#xA;defined in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ defaultValueLiteral="">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the parent menu where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the Menu to be contributed to.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/menu/MenuElement"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PopupMenu" eSuperTypes="#//ui/menu/Menu #//ui/Context">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing context menus. Menus of this type are generally&#xD;&#xA;managed by code within the running application since they're not visible in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DirectMenuItem" eSuperTypes="#//ui/menu/MenuItem #//Contribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class use to represent a menu item that is directly &#xD;&#xA;invoked when selected. The supplied contribution is asked to execute&#xA;when selected.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HandledMenuItem" eSuperTypes="#//ui/menu/MenuItem #//ui/menu/HandledItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete UI Model element representing a menu item that is managed&#xD;&#xA;through the Commands / Handlers infrastructure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolItem" abstract="true" eSuperTypes="#//ui/menu/Item #//ui/menu/ToolBarElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the base type for both Direct and Handled tool items.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="menu" eType="#//ui/menu/Menu"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;When set this represents the menu that appears when the 'drop down' arrow is&#xD;&#xA;clicked on this tool item.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolBar">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a Toolbar in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/menu/ToolBarElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/basic/TrimElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolBarElement" abstract="true"
+ eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a placeholder class mixed in to any other type that can be added to a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolControl" eSuperTypes="#//ui/menu/ToolBarElement #//Contribution #//ui/basic/TrimElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing a widget hosted directly in the trim &#xD;&#xA;or as an item in a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HandledToolItem" eSuperTypes="#//ui/menu/ToolItem #//ui/menu/HandledItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete UI Model element representing a tool item that is managed&#xD;&#xA;through the Commands / Handlers infrastructure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DirectToolItem" eSuperTypes="#//ui/menu/ToolItem #//Contribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class use to represent a tool item that is directly &#xD;&#xA;invoked when selected. The supplied contribution is asked to execute&#xA;when selected.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolBarSeparator" eSuperTypes="#//ui/menu/ToolBarElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class used to represent a separator in a Toolbar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="MenuContributions" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the menu contributions to be&#xD;&#xA;applied to menus.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="menuContributions"
+ upperBound="-1" eType="#//ui/menu/MenuContribution" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RenderedMenu" eSuperTypes="#//ui/menu/Menu">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenu&#xD;&#xA;@noreference&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionManager"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RenderedToolBar" eSuperTypes="#//ui/menu/ToolBar">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MToolBar&#xD;&#xA;@noreference&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionManager"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolBarContribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some toolbar already&#xD;&#xA;defined in the UI.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the Toolbar to be contributed to.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the Toolbar where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/menu/ToolBarElement"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ToolBarContributions" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the toolbar contributions to be&#xD;&#xA;applied to existing toolbars.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="toolBarContributions"
+ upperBound="-1" eType="#//ui/menu/ToolBarContribution" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TrimContribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This represents a potential extension to some trim bar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="parentId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The element id of the TrimBar to be contributed to.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="positionInParent" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Indicates the position in the TrimBar where this contribution should be placed.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/basic/TrimElement"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TrimContributions" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Provisional for 4.3. This is a container aggregating the trim bar contributions to be&#xD;&#xA;applied.&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="trimContributions"
+ upperBound="-1" eType="#//ui/menu/TrimContribution" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="RenderedMenuItem" eSuperTypes="#//ui/menu/MenuItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OpaqueToolItem" eSuperTypes="#//ui/menu/ToolItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenuItem" eSuperTypes="#//ui/menu/MenuItem">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenuSeparator" eSuperTypes="#//ui/menu/MenuSeparator">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="opaqueItem" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"
+ transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OpaqueMenu" eSuperTypes="#//ui/menu/Menu">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Do no use! This class will be removed at the beginning of Luna (4.4) development.&#xD;&#xA;@deprecated Use MMenuItem&#xD;&#xA;@noreference This interface is not intended to be referenced by clients.&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DynamicMenuContribution" eSuperTypes="#//ui/menu/MenuItem #//Contribution">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class used to represent a menu item that replaces itself through&#xD;&#xA;the execution of the associated client code. The supplied contribution will&#xA;provide the appropriate MMenuElement model elements when queried.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ </eSubpackages>
+ <eSubpackages name="basic" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic"
+ nsPrefix="basic">
+ <eClassifiers xsi:type="ecore:EClass" name="Part" eSuperTypes="#//ui/UIElement #//ui/basic/PartSashContainerElement #//ui/basic/StackElement #//Contribution #//ui/Context #//ui/UILabel #//commands/HandlerContainer #//ui/Dirtyable #//commands/Bindings #//ui/basic/WindowElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This a concrete class representing the core UI functionality within a Window. It's what&#xD;&#xA;used to be a View / Editor in Eclipse 3.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="menus" upperBound="-1"
+ eType="#//ui/menu/Menu" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the list of the menus associated with this part. There are two specific menus&#xD;&#xA;that are managed by the core UI;&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;menu:&quot; then it will appear as the &#xD;&#xA;drop down menu available from the view's toolbar.&lt;/li>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;popup:&quot; then it will appear as the &#xD;&#xA;ddefault context menu for this view.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;Other menus can be added here but have to be managed by the part itsefl...&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="toolbar" eType="#//ui/menu/ToolBar"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the Toolbar associated with tihs Part (if any).&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether the user is allowed to close this view.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The description of this Part; used when the Part appears in a list of Parts&#xD;&#xA;(i.e. 'Show View').&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedDescription"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="CompositePart">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a Part that is capable of supporting an internal structure. In order to be useful instances of this part muct be capable&#xD;&#xA;of managing their internal structure.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients.&#xD;&#xA;"/>
+ </eAnnotations>
+ <eGenericSuperTypes eClassifier="#//ui/basic/Part"/>
+ <eGenericSuperTypes eClassifier="#//ui/GenericTile">
+ <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
+ </eGenericSuperTypes>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="InputPart" eSuperTypes="#//ui/basic/Part #//ui/Input">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a subclass of Part that allows tracking of an 'input'. While originally defined as&#xD;&#xA;a type of 'editor' it turns out that it may well be better to just use a regular Part and&#xD;&#xA;to store what would be the input as an entry on the Part's 'persistentData' map.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@deprecated Use Part instead.&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PartStack">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a stack of Parts in the UI Model.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eGenericSuperTypes eClassifier="#//ui/GenericStack">
+ <eTypeArguments eClassifier="#//ui/basic/StackElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
+ <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PartSashContainer">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing sashed containment in the UI Model. This&#xD;&#xA;type is recursive, allowing the creation of a tree of sashes whose leafs are Parts.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eGenericSuperTypes eClassifier="#//ui/GenericTile">
+ <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
+ <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Window">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the concrete class representing a bare bones window in the UI Model. Unless&#xD;&#xA;specifically desired it's likely better to use the TrimmedWindow instead.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="mainMenu" eType="#//ui/menu/Menu"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The main menu (if any) for this window.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="x" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
+ defaultValueLiteral="-2147483648">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The 'X' position of this window&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="y" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
+ defaultValueLiteral="-2147483648">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The 'Y' position of this window&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="width" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
+ defaultValueLiteral="-1">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The width of this window&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="height" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
+ defaultValueLiteral="-1">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The heigfht of this window&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="windows" upperBound="-1"
+ eType="#//ui/basic/Window" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The collection of 'Detached' windows associated with this window.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="sharedElements" upperBound="-1"
+ eType="#//ui/UIElement" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the collection of UI Elements that are referenced by Placeholders, allowing&#xD;&#xA;the re-use of these elements in different Perspectives.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/basic/WindowElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/UILabel"/>
+ <eGenericSuperTypes eClassifier="#//ui/Context"/>
+ <eGenericSuperTypes eClassifier="#//commands/HandlerContainer"/>
+ <eGenericSuperTypes eClassifier="#//commands/Bindings"/>
+ <eGenericSuperTypes eClassifier="#//ui/SnippetContainer"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TrimmedWindow" eSuperTypes="#//ui/basic/Window">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window that also supports TrimBars on its edges.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="trimBars" upperBound="-1"
+ eType="#//ui/basic/TrimBar" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The collection of TrimBars associated with this window.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TrimElement" abstract="true" interface="true"
+ eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a TrimBar.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PartSashContainerElement" abstract="true"
+ interface="true" eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to&#xD;&#xA;a PartSashContainer. Since a PartSashContainer is itself a PartSashContainerElement&#xD;&#xA;we can defined nested 'trees' of sash containment.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="WindowElement" abstract="true" interface="true"
+ eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a&#xD;&#xA;Window.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="TrimBar">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete class representing the trim along a Window's edge.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="pendingCleanup" upperBound="-1"
+ eType="#//ui/basic/TrimElement" transient="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is for internal use...&#xD;&#xA;&lt;/p>&#xD;&#xA;@noreference"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/GenericTrimContainer">
+ <eTypeArguments eClassifier="#//ui/basic/TrimElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/UIElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="StackElement" abstract="true" interface="true"
+ eSuperTypes="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A class to be mixed in to any element that should be allowed to be added to a&#xD;&#xA;PartStack.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Dialog" eSuperTypes="#//ui/basic/Window">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window representing a dialog.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="WizardDialog" eSuperTypes="#//ui/basic/Dialog">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A subclass of Window representing a wizard dialog.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.1&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ </eSubpackages>
+ <eSubpackages name="advanced" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced"
+ nsPrefix="advanced">
+ <eClassifiers xsi:type="ecore:EClass" name="Placeholder" eSuperTypes="#//ui/UIElement #//ui/basic/PartSashContainerElement #//ui/basic/StackElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A Placeholder is a concrete class used to share elements between perspectives. The&#xD;&#xA;elements referenced by a Placeholder generally exist in the Window's 'sharedElements'&#xD;&#xA;list. By convention a placeholder usually shares the same elementId as the element&#xD;&#xA;that it's referencing.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ref" lowerBound="1"
+ eType="#//ui/UIElement">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The reference to the actual UI element that this Placeholder is acting as a proxy for.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether the element (usually a Part) referenced by this Placeholder can&#xD;&#xA;be closed by the User. This allows a Part to be closeable in one perspective but&#xD;&#xA;not closeable in a different one.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Perspective">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The Persepctive defines a part of the UI presentation that can be switched independently&#xD;&#xA;of the rest of the UI. By using Placeholders it's possible to share elements between&#xD;&#xA;different perspectives.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="windows" upperBound="-1"
+ eType="#//ui/basic/Window" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;&lt;strong>Developers&lt;/strong>:&#xD;&#xA;Add more detailed documentation by editing this comment in &#xD;&#xA;org.eclipse.ui.model.workbench/model/UIElements.ecore. &#xD;&#xA;There is a GenModel/documentation node under each type and attribute.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eGenericSuperTypes eClassifier="#//ui/ElementContainer">
+ <eTypeArguments eClassifier="#//ui/basic/PartSashContainerElement"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/UILabel"/>
+ <eGenericSuperTypes eClassifier="#//ui/Context"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PerspectiveStack">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The PerspectiveStack is a collectin of Perspectives. Only one perspective may be&#xD;&#xA;visible at a time and is determined by the container's 'selectedElement'.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eGenericSuperTypes eClassifier="#//ui/UIElement"/>
+ <eGenericSuperTypes eClassifier="#//ui/GenericStack">
+ <eTypeArguments eClassifier="#//ui/advanced/Perspective"/>
+ </eGenericSuperTypes>
+ <eGenericSuperTypes eClassifier="#//ui/basic/PartSashContainerElement"/>
+ <eGenericSuperTypes eClassifier="#//ui/basic/WindowElement"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Area" eSuperTypes="#//ui/basic/PartSashContainer #//ui/UILabel">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is a concrete element representing a (possibly sashed) chunk of the UI presentation&#xD;&#xA;that will minimize / maximize as one unit. This is used in Eclipse 4 to allow for a split&#xD;&#xA;Editor Area.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ </eClassifiers>
+ </eSubpackages>
+ </eSubpackages>
+ <eSubpackages name="descriptor" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/descriptor"
+ nsPrefix="descriptor">
+ <eSubpackages name="basic" nsURI="http://www.eclipse.org/ui/2010/UIModel/application/descriptor/basic"
+ nsPrefix="basic">
+ <eClassifiers xsi:type="ecore:EClass" name="PartDescriptor" eSuperTypes="#//ApplicationElement #//ui/UILabel #//commands/HandlerContainer #//commands/Bindings">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This element represents a template from which an MPart can be created on demand.&#xD;&#xA;The collection of PartDescriptors owned by the Application represents the contributed&#xD;&#xA;parts and is used in the e4 version of 'Show View'...&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="allowMultiple" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether or not the part represented by this descriptot can have multiple&#xD;&#xA;instances with a given window.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The category that the view represented by this descriptor belongs to.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="menus" upperBound="-1"
+ eType="#//ui/menu/Menu" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This defines the list of the menus associated with the part represented by this descriptor. &#xD;&#xA;There are two specific menus that are managed by the core UI;&#xD;&#xA;&lt;ul>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;menu:&quot; then it will appear as the &#xD;&#xA;drop down menu available from the view's toolbar.&lt;/li>&#xD;&#xA;&lt;li>If the menu is the part's id prefixed with &quot;popup:&quot; then it will appear as the &#xD;&#xA;ddefault context menu for this view.&lt;/li>&#xD;&#xA;&lt;/ul>&#xD;&#xA;Other menus can be added here but have to be managed by the part itsefl...&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="toolbar" eType="#//ui/menu/ToolBar"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;This is the Toolbar associated with tihs Part (if any).&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="closeable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
+ defaultValueLiteral="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Defines whether instances of views created from this descriptor are closeable by the&#xD;&#xA;User.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="dirtyable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;Determines whether Parts generated from this template can participate in the&#xD;&#xA;Dirty -> Save cycle. At best this is a hint since all Parts are inherently dirtyable.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contributionURI" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The fully qualified path to the class implementing the behavior of the Part.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;The description of this Part.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="localizedDescription"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
+ changeable="false" volatile="true" transient="true" derived="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="PartDescriptorContainer" abstract="true"
+ interface="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A type specific collection of PartDescriptors.&#xD;&#xA;&lt;/p>&#xD;&#xA;@since 1.0&#xD;&#xA;@noimplement This interface is not intended to be implemented by clients."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="descriptors" upperBound="-1"
+ eType="#//descriptor/basic/PartDescriptor" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="&lt;p>&#xD;&#xA;A collection of PartDescriptors.&#xD;&#xA;&lt;/p>"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </eSubpackages>
+ </eSubpackages>
+</ecore:EPackage>
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCategory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCategory.java
index 0b51702..c0cd772 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCategory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCategory.java
@@ -11,6 +11,7 @@
package org.eclipse.e4.ui.model.application.commands;
import org.eclipse.e4.ui.model.application.MApplicationElement;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
/**
* <!-- begin-user-doc -->
@@ -31,13 +32,15 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
* <ul>
* <li>{@link org.eclipse.e4.ui.model.application.commands.MCategory#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.MCategory#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedName <em>Localized Name</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
* @model
* @generated
*/
-public interface MCategory extends MApplicationElement {
+public interface MCategory extends MApplicationElement, MLocalizable {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
@@ -91,27 +94,22 @@ public interface MCategory extends MApplicationElement {
void setDescription(String value);
/**
+ * Returns the value of the '<em><b>Localized Name</b></em>' attribute.
+ * The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will return the translated name of the Category.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Name</em>' attribute.
+ * @model default="" transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedName();
/**
+ * Returns the value of the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will return the translated description of the Category.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Description</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedDescription();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCommand.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCommand.java
index cbab705..a627f63 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCommand.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/MCommand.java
@@ -12,6 +12,7 @@ package org.eclipse.e4.ui.model.application.commands;
import java.util.List;
import org.eclipse.e4.ui.model.application.MApplicationElement;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
/**
* <!-- begin-user-doc -->
@@ -34,13 +35,15 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
* <li>{@link org.eclipse.e4.ui.model.application.commands.MCommand#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.MCommand#getParameters <em>Parameters</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.MCommand#getCategory <em>Category</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedCommandName <em>Localized Command Name</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
* @model
* @generated
*/
-public interface MCommand extends MApplicationElement {
+public interface MCommand extends MApplicationElement, MLocalizable {
/**
* Returns the value of the '<em><b>Command Name</b></em>' attribute.
* <!-- begin-user-doc -->
@@ -142,27 +145,21 @@ public interface MCommand extends MApplicationElement {
void setCategory(MCategory value);
/**
+ * Returns the value of the '<em><b>Localized Command Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will return the translated name.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Command Name</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedCommandName();
/**
+ * Returns the value of the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will return the translated description.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Description</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedDescription();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CategoryImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CategoryImpl.java
index 5dff104..024d26f 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CategoryImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CategoryImpl.java
@@ -14,6 +14,8 @@ import java.lang.reflect.InvocationTargetException;
import org.eclipse.e4.ui.model.LocalizationHelper;
import org.eclipse.e4.ui.model.application.commands.MCategory;
import org.eclipse.e4.ui.model.application.impl.ApplicationElementImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
+import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
@@ -28,6 +30,8 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <ul>
* <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CategoryImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CategoryImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CategoryImpl#getLocalizedName <em>Localized Name</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CategoryImpl#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -75,6 +79,26 @@ public class CategoryImpl extends ApplicationElementImpl implements MCategory {
protected String description = DESCRIPTION_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedName() <em>Localized Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedName()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_NAME_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedDescription() <em>Localized Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_DESCRIPTION_EDEFAULT = null;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -154,6 +178,19 @@ public class CategoryImpl extends ApplicationElementImpl implements MCategory {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ */
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, CommandsPackageImpl.CATEGORY__LOCALIZED_NAME, null, getLocalizedName()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, CommandsPackageImpl.CATEGORY__LOCALIZED_DESCRIPTION, null, getLocalizedDescription()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
@@ -163,6 +200,10 @@ public class CategoryImpl extends ApplicationElementImpl implements MCategory {
return getName();
case CommandsPackageImpl.CATEGORY__DESCRIPTION:
return getDescription();
+ case CommandsPackageImpl.CATEGORY__LOCALIZED_NAME:
+ return getLocalizedName();
+ case CommandsPackageImpl.CATEGORY__LOCALIZED_DESCRIPTION:
+ return getLocalizedDescription();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -215,6 +256,10 @@ public class CategoryImpl extends ApplicationElementImpl implements MCategory {
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case CommandsPackageImpl.CATEGORY__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case CommandsPackageImpl.CATEGORY__LOCALIZED_NAME:
+ return LOCALIZED_NAME_EDEFAULT == null ? getLocalizedName() != null : !LOCALIZED_NAME_EDEFAULT.equals(getLocalizedName());
+ case CommandsPackageImpl.CATEGORY__LOCALIZED_DESCRIPTION:
+ return LOCALIZED_DESCRIPTION_EDEFAULT == null ? getLocalizedDescription() != null : !LOCALIZED_DESCRIPTION_EDEFAULT.equals(getLocalizedDescription());
}
return super.eIsSet(featureID);
}
@@ -225,12 +270,27 @@ public class CategoryImpl extends ApplicationElementImpl implements MCategory {
* @generated
*/
@Override
+ public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (baseOperationID) {
+ case UiPackageImpl.LOCALIZABLE___UPDATE_LOCALIZATION: return CommandsPackageImpl.CATEGORY___UPDATE_LOCALIZATION;
+ default: return -1;
+ }
+ }
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
- case CommandsPackageImpl.CATEGORY___GET_LOCALIZED_NAME:
- return getLocalizedName();
- case CommandsPackageImpl.CATEGORY___GET_LOCALIZED_DESCRIPTION:
- return getLocalizedDescription();
+ case CommandsPackageImpl.CATEGORY___UPDATE_LOCALIZATION:
+ updateLocalization();
+ return null;
}
return super.eInvoke(operationID, arguments);
}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandImpl.java
index 4639963..a333890 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandImpl.java
@@ -18,6 +18,8 @@ import org.eclipse.e4.ui.model.application.commands.MCategory;
import org.eclipse.e4.ui.model.application.commands.MCommand;
import org.eclipse.e4.ui.model.application.commands.MCommandParameter;
import org.eclipse.e4.ui.model.application.impl.ApplicationElementImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
+import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
@@ -39,6 +41,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CommandImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CommandImpl#getParameters <em>Parameters</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CommandImpl#getCategory <em>Category</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CommandImpl#getLocalizedCommandName <em>Localized Command Name</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.commands.impl.CommandImpl#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -106,6 +110,26 @@ public class CommandImpl extends ApplicationElementImpl implements MCommand {
protected MCategory category;
/**
+ * The default value of the '{@link #getLocalizedCommandName() <em>Localized Command Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedCommandName()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_COMMAND_NAME_EDEFAULT = null;
+
+ /**
+ * The default value of the '{@link #getLocalizedDescription() <em>Localized Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_DESCRIPTION_EDEFAULT = null;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -235,6 +259,19 @@ public class CommandImpl extends ApplicationElementImpl implements MCommand {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ */
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, CommandsPackageImpl.COMMAND__LOCALIZED_COMMAND_NAME, null, getLocalizedCommandName()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, CommandsPackageImpl.COMMAND__LOCALIZED_DESCRIPTION, null, getLocalizedDescription()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
@@ -263,6 +300,10 @@ public class CommandImpl extends ApplicationElementImpl implements MCommand {
case CommandsPackageImpl.COMMAND__CATEGORY:
if (resolve) return getCategory();
return basicGetCategory();
+ case CommandsPackageImpl.COMMAND__LOCALIZED_COMMAND_NAME:
+ return getLocalizedCommandName();
+ case CommandsPackageImpl.COMMAND__LOCALIZED_DESCRIPTION:
+ return getLocalizedDescription();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -333,6 +374,10 @@ public class CommandImpl extends ApplicationElementImpl implements MCommand {
return parameters != null && !parameters.isEmpty();
case CommandsPackageImpl.COMMAND__CATEGORY:
return category != null;
+ case CommandsPackageImpl.COMMAND__LOCALIZED_COMMAND_NAME:
+ return LOCALIZED_COMMAND_NAME_EDEFAULT == null ? getLocalizedCommandName() != null : !LOCALIZED_COMMAND_NAME_EDEFAULT.equals(getLocalizedCommandName());
+ case CommandsPackageImpl.COMMAND__LOCALIZED_DESCRIPTION:
+ return LOCALIZED_DESCRIPTION_EDEFAULT == null ? getLocalizedDescription() != null : !LOCALIZED_DESCRIPTION_EDEFAULT.equals(getLocalizedDescription());
}
return super.eIsSet(featureID);
}
@@ -343,12 +388,27 @@ public class CommandImpl extends ApplicationElementImpl implements MCommand {
* @generated
*/
@Override
+ public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (baseOperationID) {
+ case UiPackageImpl.LOCALIZABLE___UPDATE_LOCALIZATION: return CommandsPackageImpl.COMMAND___UPDATE_LOCALIZATION;
+ default: return -1;
+ }
+ }
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
- case CommandsPackageImpl.COMMAND___GET_LOCALIZED_COMMAND_NAME:
- return getLocalizedCommandName();
- case CommandsPackageImpl.COMMAND___GET_LOCALIZED_DESCRIPTION:
- return getLocalizedDescription();
+ case CommandsPackageImpl.COMMAND___UPDATE_LOCALIZATION:
+ updateLocalization();
+ return null;
}
return super.eInvoke(operationID, arguments);
}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandsPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandsPackageImpl.java
index ce0b36a..2b1c73c 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandsPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/impl/CommandsPackageImpl.java
@@ -33,7 +33,6 @@ import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
@@ -452,31 +451,40 @@ public class CommandsPackageImpl extends EPackageImpl {
public static final int COMMAND__CATEGORY = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 3;
/**
- * The number of structural features of the '<em>Command</em>' class.
+ * The feature id for the '<em><b>Localized Command Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int COMMAND_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 4;
+ public static final int COMMAND__LOCALIZED_COMMAND_NAME = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 4;
/**
- * The operation id for the '<em>Get Localized Command Name</em>' operation.
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int COMMAND___GET_LOCALIZED_COMMAND_NAME = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
+ public static final int COMMAND__LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 5;
/**
- * The operation id for the '<em>Get Localized Description</em>' operation.
+ * The number of structural features of the '<em>Command</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int COMMAND___GET_LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
+ public static final int COMMAND_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 6;
+
+ /**
+ * The operation id for the '<em>Update Localization</em>' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int COMMAND___UPDATE_LOCALIZATION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
/**
* The number of operations of the '<em>Command</em>' class.
@@ -485,7 +493,7 @@ public class CommandsPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int COMMAND_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 2;
+ public static final int COMMAND_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.commands.impl.CommandParameterImpl <em>Command Parameter</em>}' class.
@@ -1026,31 +1034,40 @@ public class CommandsPackageImpl extends EPackageImpl {
public static final int CATEGORY__DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 1;
/**
- * The number of structural features of the '<em>Category</em>' class.
+ * The feature id for the '<em><b>Localized Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int CATEGORY__LOCALIZED_NAME = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int CATEGORY_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 2;
+ public static final int CATEGORY__LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Name</em>' operation.
+ * The number of structural features of the '<em>Category</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int CATEGORY___GET_LOCALIZED_NAME = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
+ public static final int CATEGORY_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 4;
/**
- * The operation id for the '<em>Get Localized Description</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int CATEGORY___GET_LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
+ public static final int CATEGORY___UPDATE_LOCALIZATION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
/**
* The number of operations of the '<em>Category</em>' class.
@@ -1059,7 +1076,7 @@ public class CommandsPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int CATEGORY_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 2;
+ public static final int CATEGORY_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
/**
* The meta object id for the '<em>Parameterized Command</em>' data type.
@@ -1464,28 +1481,30 @@ public class CommandsPackageImpl extends EPackageImpl {
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedCommandName() <em>Get Localized Command Name</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedCommandName <em>Localized Command Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Command Name</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Command Name</em>'.
* @see org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedCommandName()
+ * @see #getCommand()
* @generated
*/
- public EOperation getCommand__GetLocalizedCommandName() {
- return commandEClass.getEOperations().get(0);
+ public EAttribute getCommand_LocalizedCommandName() {
+ return (EAttribute)commandEClass.getEStructuralFeatures().get(4);
}
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedDescription() <em>Get Localized Description</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedDescription <em>Localized Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Description</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Description</em>'.
* @see org.eclipse.e4.ui.model.application.commands.MCommand#getLocalizedDescription()
+ * @see #getCommand()
* @generated
*/
- public EOperation getCommand__GetLocalizedDescription() {
- return commandEClass.getEOperations().get(1);
+ public EAttribute getCommand_LocalizedDescription() {
+ return (EAttribute)commandEClass.getEStructuralFeatures().get(5);
}
@@ -1733,28 +1752,30 @@ public class CommandsPackageImpl extends EPackageImpl {
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedName() <em>Get Localized Name</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedName <em>Localized Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Name</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Name</em>'.
* @see org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedName()
+ * @see #getCategory()
* @generated
*/
- public EOperation getCategory__GetLocalizedName() {
- return categoryEClass.getEOperations().get(0);
+ public EAttribute getCategory_LocalizedName() {
+ return (EAttribute)categoryEClass.getEStructuralFeatures().get(2);
}
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedDescription() <em>Get Localized Description</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedDescription <em>Localized Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Description</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Description</em>'.
* @see org.eclipse.e4.ui.model.application.commands.MCategory#getLocalizedDescription()
+ * @see #getCategory()
* @generated
*/
- public EOperation getCategory__GetLocalizedDescription() {
- return categoryEClass.getEOperations().get(1);
+ public EAttribute getCategory_LocalizedDescription() {
+ return (EAttribute)categoryEClass.getEStructuralFeatures().get(3);
}
@@ -1822,8 +1843,8 @@ public class CommandsPackageImpl extends EPackageImpl {
createEAttribute(commandEClass, COMMAND__DESCRIPTION);
createEReference(commandEClass, COMMAND__PARAMETERS);
createEReference(commandEClass, COMMAND__CATEGORY);
- createEOperation(commandEClass, COMMAND___GET_LOCALIZED_COMMAND_NAME);
- createEOperation(commandEClass, COMMAND___GET_LOCALIZED_DESCRIPTION);
+ createEAttribute(commandEClass, COMMAND__LOCALIZED_COMMAND_NAME);
+ createEAttribute(commandEClass, COMMAND__LOCALIZED_DESCRIPTION);
commandParameterEClass = createEClass(COMMAND_PARAMETER);
createEAttribute(commandParameterEClass, COMMAND_PARAMETER__NAME);
@@ -1850,8 +1871,8 @@ public class CommandsPackageImpl extends EPackageImpl {
categoryEClass = createEClass(CATEGORY);
createEAttribute(categoryEClass, CATEGORY__NAME);
createEAttribute(categoryEClass, CATEGORY__DESCRIPTION);
- createEOperation(categoryEClass, CATEGORY___GET_LOCALIZED_NAME);
- createEOperation(categoryEClass, CATEGORY___GET_LOCALIZED_DESCRIPTION);
+ createEAttribute(categoryEClass, CATEGORY__LOCALIZED_NAME);
+ createEAttribute(categoryEClass, CATEGORY__LOCALIZED_DESCRIPTION);
// Create data types
parameterizedCommandEDataType = createEDataType(PARAMETERIZED_COMMAND);
@@ -1882,6 +1903,7 @@ public class CommandsPackageImpl extends EPackageImpl {
// Obtain other dependent packages
ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ApplicationPackageImpl.eNS_URI);
+ UiPackageImpl theUiPackage = (UiPackageImpl)EPackage.Registry.INSTANCE.getEPackage(UiPackageImpl.eNS_URI);
// Create type parameters
@@ -1891,12 +1913,14 @@ public class CommandsPackageImpl extends EPackageImpl {
bindingContextEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
bindingTableEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
commandEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
+ commandEClass.getESuperTypes().add(theUiPackage.getLocalizable());
commandParameterEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
handlerEClass.getESuperTypes().add(theApplicationPackage.getContribution());
keyBindingEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
keyBindingEClass.getESuperTypes().add(this.getKeySequence());
parameterEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
categoryEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
+ categoryEClass.getESuperTypes().add(theUiPackage.getLocalizable());
// Initialize classes, features, and operations; add parameters
initEClass(bindingTableContainerEClass, MBindingTableContainer.class, "BindingTableContainer", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1920,10 +1944,8 @@ public class CommandsPackageImpl extends EPackageImpl {
initEAttribute(getCommand_Description(), ecorePackage.getEString(), "description", null, 0, 1, MCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getCommand_Parameters(), this.getCommandParameter(), null, "parameters", null, 0, -1, MCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getCommand_Category(), this.getCategory(), null, "category", null, 0, 1, MCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getCommand__GetLocalizedCommandName(), ecorePackage.getEString(), "getLocalizedCommandName", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getCommand__GetLocalizedDescription(), ecorePackage.getEString(), "getLocalizedDescription", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getCommand_LocalizedCommandName(), ecorePackage.getEString(), "localizedCommandName", null, 0, 1, MCommand.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getCommand_LocalizedDescription(), ecorePackage.getEString(), "localizedDescription", null, 0, 1, MCommand.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(commandParameterEClass, MCommandParameter.class, "CommandParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getCommandParameter_Name(), ecorePackage.getEString(), "name", null, 1, 1, MCommandParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
@@ -1950,10 +1972,8 @@ public class CommandsPackageImpl extends EPackageImpl {
initEClass(categoryEClass, MCategory.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEAttribute(getCategory_Name(), ecorePackage.getEString(), "name", null, 1, 1, MCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getCategory_Description(), ecorePackage.getEString(), "description", null, 0, 1, MCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getCategory__GetLocalizedName(), ecorePackage.getEString(), "getLocalizedName", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getCategory__GetLocalizedDescription(), ecorePackage.getEString(), "getLocalizedDescription", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getCategory_LocalizedName(), ecorePackage.getEString(), "localizedName", "", 0, 1, MCategory.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
+ initEAttribute(getCategory_LocalizedDescription(), ecorePackage.getEString(), "localizedDescription", null, 0, 1, MCategory.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
// Initialize data types
initEDataType(parameterizedCommandEDataType, ParameterizedCommand.class, "ParameterizedCommand", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -2119,20 +2139,20 @@ public class CommandsPackageImpl extends EPackageImpl {
public static final EReference COMMAND__CATEGORY = eINSTANCE.getCommand_Category();
/**
- * The meta object literal for the '<em><b>Get Localized Command Name</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Command Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation COMMAND___GET_LOCALIZED_COMMAND_NAME = eINSTANCE.getCommand__GetLocalizedCommandName();
+ public static final EAttribute COMMAND__LOCALIZED_COMMAND_NAME = eINSTANCE.getCommand_LocalizedCommandName();
/**
- * The meta object literal for the '<em><b>Get Localized Description</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation COMMAND___GET_LOCALIZED_DESCRIPTION = eINSTANCE.getCommand__GetLocalizedDescription();
+ public static final EAttribute COMMAND__LOCALIZED_DESCRIPTION = eINSTANCE.getCommand_LocalizedDescription();
/**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.commands.impl.CommandParameterImpl <em>Command Parameter</em>}' class.
@@ -2301,20 +2321,20 @@ public class CommandsPackageImpl extends EPackageImpl {
public static final EAttribute CATEGORY__DESCRIPTION = eINSTANCE.getCategory_Description();
/**
- * The meta object literal for the '<em><b>Get Localized Name</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation CATEGORY___GET_LOCALIZED_NAME = eINSTANCE.getCategory__GetLocalizedName();
+ public static final EAttribute CATEGORY__LOCALIZED_NAME = eINSTANCE.getCategory_LocalizedName();
/**
- * The meta object literal for the '<em><b>Get Localized Description</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation CATEGORY___GET_LOCALIZED_DESCRIPTION = eINSTANCE.getCategory__GetLocalizedDescription();
+ public static final EAttribute CATEGORY__LOCALIZED_DESCRIPTION = eINSTANCE.getCategory_LocalizedDescription();
/**
* The meta object literal for the '<em>Parameterized Command</em>' data type.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsAdapterFactory.java
index ff8905c..31d790f 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsAdapterFactory.java
@@ -14,6 +14,7 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
import org.eclipse.e4.ui.model.application.MContribution;
import org.eclipse.e4.ui.model.application.commands.*;
import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
@@ -128,6 +129,10 @@ public class CommandsAdapterFactory extends AdapterFactoryImpl {
return createApplicationElementAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseContribution(MContribution object) {
return createContributionAdapter();
}
@@ -334,6 +339,20 @@ public class CommandsAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.MContribution <em>Contribution</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsSwitch.java
index 925fcfd..4dcc39f 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/commands/util/CommandsSwitch.java
@@ -14,6 +14,7 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
import org.eclipse.e4.ui.model.application.MContribution;
import org.eclipse.e4.ui.model.application.commands.*;
import org.eclipse.e4.ui.model.application.commands.impl.CommandsPackageImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
@@ -105,6 +106,7 @@ public class CommandsSwitch<T> extends Switch<T> {
MCommand command = (MCommand)theEObject;
T result = caseCommand(command);
if (result == null) result = caseApplicationElement(command);
+ if (result == null) result = caseLocalizable(command);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -154,6 +156,7 @@ public class CommandsSwitch<T> extends Switch<T> {
MCategory category = (MCategory)theEObject;
T result = caseCategory(category);
if (result == null) result = caseApplicationElement(category);
+ if (result == null) result = caseLocalizable(category);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -357,6 +360,21 @@ public class CommandsSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Contribution</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/MPartDescriptor.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/MPartDescriptor.java
index 254adc2..86b7964 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/MPartDescriptor.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/MPartDescriptor.java
@@ -44,6 +44,7 @@ import org.eclipse.e4.ui.model.application.ui.menu.MToolBar;
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#isDirtyable <em>Dirtyable</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getContributionURI <em>Contribution URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -262,14 +263,11 @@ public interface MPartDescriptor extends MApplicationElement, MUILabel, MHandler
void setDescription(String value);
/**
+ * Returns the value of the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * A method that will return the translated description.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Description</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedDescription();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/BasicPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/BasicPackageImpl.java
index d65ed04..16ff58f 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/BasicPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/BasicPackageImpl.java
@@ -21,7 +21,6 @@ import org.eclipse.e4.ui.model.application.ui.menu.impl.MenuPackageImpl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
@@ -157,13 +156,31 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_DESCRIPTOR__TOOLTIP = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 2;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART_DESCRIPTOR__LOCALIZED_LABEL = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART_DESCRIPTOR__LOCALIZED_TOOLTIP = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 4;
+
+ /**
* The feature id for the '<em><b>Handlers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__HANDLERS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 3;
+ public static final int PART_DESCRIPTOR__HANDLERS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 5;
/**
* The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
@@ -172,7 +189,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__BINDING_CONTEXTS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 4;
+ public static final int PART_DESCRIPTOR__BINDING_CONTEXTS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 6;
/**
* The feature id for the '<em><b>Allow Multiple</b></em>' attribute.
@@ -181,7 +198,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__ALLOW_MULTIPLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 5;
+ public static final int PART_DESCRIPTOR__ALLOW_MULTIPLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 7;
/**
* The feature id for the '<em><b>Category</b></em>' attribute.
@@ -190,7 +207,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__CATEGORY = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 6;
+ public static final int PART_DESCRIPTOR__CATEGORY = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 8;
/**
* The feature id for the '<em><b>Menus</b></em>' containment reference list.
@@ -199,7 +216,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__MENUS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 7;
+ public static final int PART_DESCRIPTOR__MENUS = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 9;
/**
* The feature id for the '<em><b>Toolbar</b></em>' containment reference.
@@ -208,7 +225,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__TOOLBAR = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 8;
+ public static final int PART_DESCRIPTOR__TOOLBAR = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 10;
/**
* The feature id for the '<em><b>Closeable</b></em>' attribute.
@@ -217,7 +234,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__CLOSEABLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 9;
+ public static final int PART_DESCRIPTOR__CLOSEABLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 11;
/**
* The feature id for the '<em><b>Dirtyable</b></em>' attribute.
@@ -226,7 +243,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__DIRTYABLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 10;
+ public static final int PART_DESCRIPTOR__DIRTYABLE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 12;
/**
* The feature id for the '<em><b>Contribution URI</b></em>' attribute.
@@ -235,7 +252,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__CONTRIBUTION_URI = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 11;
+ public static final int PART_DESCRIPTOR__CONTRIBUTION_URI = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 13;
/**
* The feature id for the '<em><b>Description</b></em>' attribute.
@@ -244,43 +261,34 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR__DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 12;
-
- /**
- * The number of structural features of the '<em>Part Descriptor</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int PART_DESCRIPTOR_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 13;
+ public static final int PART_DESCRIPTOR__DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 14;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR___GET_LOCALIZED_LABEL = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
+ public static final int PART_DESCRIPTOR__LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 15;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The number of structural features of the '<em>Part Descriptor</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR___GET_LOCALIZED_TOOLTIP = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
+ public static final int PART_DESCRIPTOR_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 16;
/**
- * The operation id for the '<em>Get Localized Description</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR___GET_LOCALIZED_DESCRIPTION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 2;
+ public static final int PART_DESCRIPTOR___UPDATE_LOCALIZATION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
/**
* The number of operations of the '<em>Part Descriptor</em>' class.
@@ -289,7 +297,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_DESCRIPTOR_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 3;
+ public static final int PART_DESCRIPTOR_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 1;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorContainer <em>Part Descriptor Container</em>}' class.
@@ -542,15 +550,16 @@ public class BasicPackageImpl extends EPackageImpl {
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getLocalizedDescription() <em>Get Localized Description</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getLocalizedDescription <em>Localized Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Description</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Description</em>'.
* @see org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptor#getLocalizedDescription()
+ * @see #getPartDescriptor()
* @generated
*/
- public EOperation getPartDescriptor__GetLocalizedDescription() {
- return partDescriptorEClass.getEOperations().get(0);
+ public EAttribute getPartDescriptor_LocalizedDescription() {
+ return (EAttribute)partDescriptorEClass.getEStructuralFeatures().get(8);
}
@@ -618,7 +627,7 @@ public class BasicPackageImpl extends EPackageImpl {
createEAttribute(partDescriptorEClass, PART_DESCRIPTOR__DIRTYABLE);
createEAttribute(partDescriptorEClass, PART_DESCRIPTOR__CONTRIBUTION_URI);
createEAttribute(partDescriptorEClass, PART_DESCRIPTOR__DESCRIPTION);
- createEOperation(partDescriptorEClass, PART_DESCRIPTOR___GET_LOCALIZED_DESCRIPTION);
+ createEAttribute(partDescriptorEClass, PART_DESCRIPTOR__LOCALIZED_DESCRIPTION);
partDescriptorContainerEClass = createEClass(PART_DESCRIPTOR_CONTAINER);
createEReference(partDescriptorContainerEClass, PART_DESCRIPTOR_CONTAINER__DESCRIPTORS);
@@ -673,8 +682,7 @@ public class BasicPackageImpl extends EPackageImpl {
initEAttribute(getPartDescriptor_Dirtyable(), ecorePackage.getEBoolean(), "dirtyable", null, 0, 1, MPartDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getPartDescriptor_ContributionURI(), ecorePackage.getEString(), "contributionURI", null, 0, 1, MPartDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getPartDescriptor_Description(), ecorePackage.getEString(), "description", null, 0, 1, MPartDescriptor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getPartDescriptor__GetLocalizedDescription(), ecorePackage.getEString(), "getLocalizedDescription", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPartDescriptor_LocalizedDescription(), ecorePackage.getEString(), "localizedDescription", null, 0, 1, MPartDescriptor.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(partDescriptorContainerEClass, MPartDescriptorContainer.class, "PartDescriptorContainer", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEReference(getPartDescriptorContainer_Descriptors(), this.getPartDescriptor(), null, "descriptors", null, 0, -1, MPartDescriptorContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
@@ -768,12 +776,12 @@ public class BasicPackageImpl extends EPackageImpl {
public static final EAttribute PART_DESCRIPTOR__DESCRIPTION = eINSTANCE.getPartDescriptor_Description();
/**
- * The meta object literal for the '<em><b>Get Localized Description</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation PART_DESCRIPTOR___GET_LOCALIZED_DESCRIPTION = eINSTANCE.getPartDescriptor__GetLocalizedDescription();
+ public static final EAttribute PART_DESCRIPTOR__LOCALIZED_DESCRIPTION = eINSTANCE.getPartDescriptor_LocalizedDescription();
/**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorContainer <em>Part Descriptor Container</em>}' class.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/PartDescriptorImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/PartDescriptorImpl.java
index c74142f..51b9441 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/PartDescriptorImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/impl/PartDescriptorImpl.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.ui.model.application.commands.MHandlerContainer;
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.impl.ApplicationElementImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.e4.ui.model.application.ui.menu.MMenu;
@@ -45,6 +46,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getHandlers <em>Handlers</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getBindingContexts <em>Binding Contexts</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#isAllowMultiple <em>Allow Multiple</em>}</li>
@@ -55,6 +58,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#isDirtyable <em>Dirtyable</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getContributionURI <em>Contribution URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.descriptor.basic.impl.PartDescriptorImpl#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -122,6 +126,26 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The cached value of the '{@link #getHandlers() <em>Handlers</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -282,6 +306,16 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
protected String description = DESCRIPTION_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedDescription() <em>Localized Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_DESCRIPTION_EDEFAULT = null;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -580,6 +614,21 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_DESCRIPTION, null, getLocalizedDescription()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedFeature(UiPackageImpl.Literals.UI_LABEL__LABEL, this);
}
@@ -624,6 +673,10 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
return getIconURI();
case BasicPackageImpl.PART_DESCRIPTOR__TOOLTIP:
return getTooltip();
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case BasicPackageImpl.PART_DESCRIPTOR__HANDLERS:
return getHandlers();
case BasicPackageImpl.PART_DESCRIPTOR__BINDING_CONTEXTS:
@@ -644,6 +697,8 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
return getContributionURI();
case BasicPackageImpl.PART_DESCRIPTOR__DESCRIPTION:
return getDescription();
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_DESCRIPTION:
+ return getLocalizedDescription();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -768,6 +823,10 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case BasicPackageImpl.PART_DESCRIPTOR__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case BasicPackageImpl.PART_DESCRIPTOR__HANDLERS:
return handlers != null && !handlers.isEmpty();
case BasicPackageImpl.PART_DESCRIPTOR__BINDING_CONTEXTS:
@@ -788,6 +847,8 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
return CONTRIBUTION_URI_EDEFAULT == null ? contributionURI != null : !CONTRIBUTION_URI_EDEFAULT.equals(contributionURI);
case BasicPackageImpl.PART_DESCRIPTOR__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_DESCRIPTION:
+ return LOCALIZED_DESCRIPTION_EDEFAULT == null ? getLocalizedDescription() != null : !LOCALIZED_DESCRIPTION_EDEFAULT.equals(getLocalizedDescription());
}
return super.eIsSet(featureID);
}
@@ -799,11 +860,18 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
if (baseClass == MUILabel.class) {
switch (derivedFeatureID) {
case BasicPackageImpl.PART_DESCRIPTOR__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case BasicPackageImpl.PART_DESCRIPTOR__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case BasicPackageImpl.PART_DESCRIPTOR__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -829,11 +897,18 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
if (baseClass == MUILabel.class) {
switch (baseFeatureID) {
case UiPackageImpl.UI_LABEL__LABEL: return BasicPackageImpl.PART_DESCRIPTOR__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return BasicPackageImpl.PART_DESCRIPTOR__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return BasicPackageImpl.PART_DESCRIPTOR__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return BasicPackageImpl.PART_DESCRIPTOR__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -859,10 +934,14 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
*/
@Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (baseOperationID) {
+ case UiPackageImpl.LOCALIZABLE___UPDATE_LOCALIZATION: return BasicPackageImpl.PART_DESCRIPTOR___UPDATE_LOCALIZATION;
+ default: return -1;
+ }
+ }
if (baseClass == MUILabel.class) {
switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return BasicPackageImpl.PART_DESCRIPTOR___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return BasicPackageImpl.PART_DESCRIPTOR___GET_LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -887,12 +966,9 @@ public class PartDescriptorImpl extends ApplicationElementImpl implements MPartD
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
- case BasicPackageImpl.PART_DESCRIPTOR___GET_LOCALIZED_DESCRIPTION:
- return getLocalizedDescription();
- case BasicPackageImpl.PART_DESCRIPTOR___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case BasicPackageImpl.PART_DESCRIPTOR___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
+ case BasicPackageImpl.PART_DESCRIPTOR___UPDATE_LOCALIZATION:
+ updateLocalization();
+ return null;
}
return super.eInvoke(operationID, arguments);
}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicAdapterFactory.java
index 6448a30..3100d77 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicAdapterFactory.java
@@ -15,6 +15,7 @@ import org.eclipse.e4.ui.model.application.commands.MBindings;
import org.eclipse.e4.ui.model.application.commands.MHandlerContainer;
import org.eclipse.e4.ui.model.application.descriptor.basic.*;
import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicPackageImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
@@ -90,6 +91,10 @@ public class BasicAdapterFactory extends AdapterFactoryImpl {
return createApplicationElementAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseUILabel(MUILabel object) {
return createUILabelAdapter();
}
@@ -206,6 +211,20 @@ public class BasicAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicSwitch.java
index 72c99b3..15fc6b5 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/descriptor/basic/util/BasicSwitch.java
@@ -15,6 +15,7 @@ import org.eclipse.e4.ui.model.application.commands.MBindings;
import org.eclipse.e4.ui.model.application.commands.MHandlerContainer;
import org.eclipse.e4.ui.model.application.descriptor.basic.*;
import org.eclipse.e4.ui.model.application.descriptor.basic.impl.BasicPackageImpl;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
@@ -84,6 +85,7 @@ public class BasicSwitch<T> extends Switch<T> {
if (result == null) result = caseUILabel(partDescriptor);
if (result == null) result = caseHandlerContainer(partDescriptor);
if (result == null) result = caseBindings(partDescriptor);
+ if (result == null) result = caseLocalizable(partDescriptor);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -188,6 +190,21 @@ public class BasicSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationElementImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationElementImpl.java
index 29cf81c..d1b7842 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationElementImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationElementImpl.java
@@ -22,6 +22,7 @@ import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container;
import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
import org.eclipse.emf.ecore.util.EcoreEMap;
import org.eclipse.emf.ecore.util.InternalEList;
@@ -43,7 +44,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
*
* @generated
*/
-public abstract class ApplicationElementImpl extends org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container implements MApplicationElement {
+public abstract class ApplicationElementImpl extends Container implements MApplicationElement {
/**
* The default value of the '{@link #getElementId() <em>Element Id</em>}' attribute.
* <!-- begin-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationPackageImpl.java
index 3bc7393..85dfea5 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/ApplicationPackageImpl.java
@@ -344,6 +344,15 @@ public class ApplicationPackageImpl extends EPackageImpl {
public static final int APPLICATION__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int APPLICATION__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -515,13 +524,13 @@ public class ApplicationPackageImpl extends EPackageImpl {
public static final int APPLICATION_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 16;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int APPLICATION___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int APPLICATION___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Application</em>' class.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToObjectMapImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToObjectMapImpl.java
index 049079e..d9afeb6 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToObjectMapImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToObjectMapImpl.java
@@ -16,6 +16,7 @@ import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container;
/**
* <!-- begin-user-doc -->
@@ -31,7 +32,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
*
* @generated
*/
-public class StringToObjectMapImpl extends org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container implements BasicEMap.Entry<String,Object> {
+public class StringToObjectMapImpl extends Container implements BasicEMap.Entry<String,Object> {
/**
* The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToStringMapImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToStringMapImpl.java
index ef3439b..0e1e4dd 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToStringMapImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/impl/StringToStringMapImpl.java
@@ -16,6 +16,7 @@ import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container;
/**
* <!-- begin-user-doc -->
@@ -31,7 +32,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
*
* @generated
*/
-public class StringToStringMapImpl extends org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container implements BasicEMap.Entry<String,String> {
+public class StringToStringMapImpl extends Container implements BasicEMap.Entry<String,String> {
/**
* The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MElementContainer.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MElementContainer.java
index 4ed9c6d..9a4bd16 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MElementContainer.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MElementContainer.java
@@ -47,6 +47,7 @@ import java.util.List;
public interface MElementContainer<T extends MUIElement> extends MUIElement {
/**
* Returns the value of the '<em><b>Children</b></em>' containment reference list.
+ * The list contents are of type {@link T}.
* It is bidirectional and its opposite is '{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getParent <em>Parent</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MLocalizable.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MLocalizable.java
new file mode 100644
index 0000000..0476d4d
--- /dev/null
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MLocalizable.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright (c) 2008, 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
+ */
+package org.eclipse.e4.ui.model.application.ui;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Localizable</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * <p>
+ * This class should be mixed into any UI element that should participate in the
+ * Locale update handling.
+ * </p>
+ * <!-- end-model-doc -->
+ *
+ *
+ * @model interface="true" abstract="true"
+ * @generated
+ */
+public interface MLocalizable {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * <p>
+ * This method is used to support Locale changes at runtime.
+ * Implementing this method should result in refreshing localizable properties
+ * like labels, tooltips and descriptions.
+ * </p>
+ * <!-- end-model-doc -->
+ * @model
+ * @generated
+ */
+ void updateLocalization();
+
+} // MLocalizable
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUIElement.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUIElement.java
index 2ca2a09..6e5dd61 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUIElement.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUIElement.java
@@ -41,13 +41,14 @@ import org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder;
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getCurSharedRef <em>Cur Shared Ref</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getVisibleWhen <em>Visible When</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getAccessibilityPhrase <em>Accessibility Phrase</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getLocalizedAccessibilityPhrase <em>Localized Accessibility Phrase</em>}</li>
* </ul>
* </p>
*
* @model abstract="true"
* @generated
*/
-public interface MUIElement extends MApplicationElement {
+public interface MUIElement extends MApplicationElement, MLocalizable {
/**
* Returns the value of the '<em><b>Widget</b></em>' attribute.
* <!-- begin-user-doc -->
@@ -342,17 +343,11 @@ public interface MUIElement extends MApplicationElement {
void setAccessibilityPhrase(String value);
/**
+ * Returns the value of the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This field is intended to allow enhanced support for accessibility by providing the
- * ability to have a screen reader 'say' this phrase along with its normal output.
- * This is currently unused in teh base SWT renderer but is available for use by
- * other rendering platforms...
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Accessibility Phrase</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedAccessibilityPhrase();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUILabel.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUILabel.java
index a2bd9ad..7abb3e6 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUILabel.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/MUILabel.java
@@ -31,13 +31,15 @@ package org.eclipse.e4.ui.model.application.ui;
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* </ul>
* </p>
*
* @model interface="true" abstract="true"
* @generated
*/
-public interface MUILabel {
+public interface MUILabel extends MLocalizable {
/**
* Returns the value of the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
@@ -123,31 +125,23 @@ public interface MUILabel {
void setTooltip(String value);
/**
+ * Returns the value of the '<em><b>Localized Label</b></em>' attribute.
+ * The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will retrieve the internationalized label by using the current
- * value of the label itself and some translation service.
- * </p>
- * @since 1.0
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Label</em>' attribute.
+ * @model default="" transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedLabel();
/**
+ * Returns the value of the '<em><b>Localized Tooltip</b></em>' attribute.
+ * The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * This is a method that will retrieve the internationalized tooltip by using the current
- * value of the label itself and some translation service.
- * </p>
- * @since 1.0
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Tooltip</em>' attribute.
+ * @model default="" transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedTooltip();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AdvancedPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AdvancedPackageImpl.java
index 321ec51..6d50a14 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AdvancedPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AdvancedPackageImpl.java
@@ -222,6 +222,15 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PLACEHOLDER__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PLACEHOLDER__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Ref</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -249,13 +258,13 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PLACEHOLDER_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PLACEHOLDER___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PLACEHOLDER___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Placeholder</em>' class.
@@ -412,6 +421,15 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PERSPECTIVE__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PERSPECTIVE__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -457,76 +475,76 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PERSPECTIVE__TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 2;
/**
- * The feature id for the '<em><b>Context</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE__CONTEXT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 3;
+ public static final int PERSPECTIVE__LOCALIZED_LABEL = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 3;
/**
- * The feature id for the '<em><b>Variables</b></em>' attribute list.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE__VARIABLES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 4;
+ public static final int PERSPECTIVE__LOCALIZED_TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 4;
/**
- * The feature id for the '<em><b>Properties</b></em>' map.
+ * The feature id for the '<em><b>Context</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE__PROPERTIES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 5;
+ public static final int PERSPECTIVE__CONTEXT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 5;
/**
- * The feature id for the '<em><b>Windows</b></em>' containment reference list.
+ * The feature id for the '<em><b>Variables</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE__WINDOWS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 6;
+ public static final int PERSPECTIVE__VARIABLES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 6;
/**
- * The number of structural features of the '<em>Perspective</em>' class.
+ * The feature id for the '<em><b>Properties</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 7;
+ public static final int PERSPECTIVE__PROPERTIES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 7;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Windows</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PERSPECTIVE__WINDOWS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 8;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Perspective</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE___GET_LOCALIZED_LABEL = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 0;
+ public static final int PERSPECTIVE_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 9;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE___GET_LOCALIZED_TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 1;
+ public static final int PERSPECTIVE___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Perspective</em>' class.
@@ -535,7 +553,7 @@ public class AdvancedPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PERSPECTIVE_OPERATION_COUNT = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 2;
+ public static final int PERSPECTIVE_OPERATION_COUNT = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl <em>Perspective Stack</em>}' class.
@@ -683,6 +701,15 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PERSPECTIVE_STACK__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PERSPECTIVE_STACK__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -710,13 +737,13 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int PERSPECTIVE_STACK_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PERSPECTIVE_STACK___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PERSPECTIVE_STACK___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Perspective Stack</em>' class.
@@ -873,6 +900,15 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int AREA__ACCESSIBILITY_PHRASE = BasicPackageImpl.PART_SASH_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int AREA__LOCALIZED_ACCESSIBILITY_PHRASE = BasicPackageImpl.PART_SASH_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -927,40 +963,40 @@ public class AdvancedPackageImpl extends EPackageImpl {
public static final int AREA__TOOLTIP = BasicPackageImpl.PART_SASH_CONTAINER_FEATURE_COUNT + 2;
/**
- * The number of structural features of the '<em>Area</em>' class.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int AREA_FEATURE_COUNT = BasicPackageImpl.PART_SASH_CONTAINER_FEATURE_COUNT + 3;
+ public static final int AREA__LOCALIZED_LABEL = BasicPackageImpl.PART_SASH_CONTAINER_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int AREA___GET_LOCALIZED_ACCESSIBILITY_PHRASE = BasicPackageImpl.PART_SASH_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int AREA__LOCALIZED_TOOLTIP = BasicPackageImpl.PART_SASH_CONTAINER_FEATURE_COUNT + 4;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Area</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int AREA___GET_LOCALIZED_LABEL = BasicPackageImpl.PART_SASH_CONTAINER_OPERATION_COUNT + 0;
+ public static final int AREA_FEATURE_COUNT = BasicPackageImpl.PART_SASH_CONTAINER_FEATURE_COUNT + 5;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int AREA___GET_LOCALIZED_TOOLTIP = BasicPackageImpl.PART_SASH_CONTAINER_OPERATION_COUNT + 1;
+ public static final int AREA___UPDATE_LOCALIZATION = BasicPackageImpl.PART_SASH_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Area</em>' class.
@@ -969,7 +1005,7 @@ public class AdvancedPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int AREA_OPERATION_COUNT = BasicPackageImpl.PART_SASH_CONTAINER_OPERATION_COUNT + 2;
+ public static final int AREA_OPERATION_COUNT = BasicPackageImpl.PART_SASH_CONTAINER_OPERATION_COUNT + 0;
/**
* <!-- begin-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AreaImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AreaImpl.java
index 72c9539..9ed86ef 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AreaImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/AreaImpl.java
@@ -10,14 +10,12 @@
*/
package org.eclipse.e4.ui.model.application.ui.advanced.impl;
-import java.lang.reflect.InvocationTargetException;
import org.eclipse.e4.ui.model.LocalizationHelper;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.advanced.MArea;
import org.eclipse.e4.ui.model.application.ui.basic.impl.PartSashContainerImpl;
import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
@@ -31,6 +29,8 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.AreaImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.AreaImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.AreaImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.AreaImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.AreaImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* </ul>
* </p>
*
@@ -98,6 +98,26 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -198,6 +218,19 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ */
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, AdvancedPackageImpl.AREA__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, AdvancedPackageImpl.AREA__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
@Override
@@ -209,6 +242,10 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
return getIconURI();
case AdvancedPackageImpl.AREA__TOOLTIP:
return getTooltip();
+ case AdvancedPackageImpl.AREA__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case AdvancedPackageImpl.AREA__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -269,6 +306,10 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case AdvancedPackageImpl.AREA__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case AdvancedPackageImpl.AREA__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case AdvancedPackageImpl.AREA__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
}
return super.eIsSet(featureID);
}
@@ -285,6 +326,8 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
case AdvancedPackageImpl.AREA__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case AdvancedPackageImpl.AREA__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case AdvancedPackageImpl.AREA__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case AdvancedPackageImpl.AREA__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case AdvancedPackageImpl.AREA__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -303,6 +346,8 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
case UiPackageImpl.UI_LABEL__LABEL: return AdvancedPackageImpl.AREA__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return AdvancedPackageImpl.AREA__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return AdvancedPackageImpl.AREA__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return AdvancedPackageImpl.AREA__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return AdvancedPackageImpl.AREA__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -315,39 +360,6 @@ public class AreaImpl extends PartSashContainerImpl implements MArea {
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return AdvancedPackageImpl.AREA___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return AdvancedPackageImpl.AREA___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case AdvancedPackageImpl.AREA___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case AdvancedPackageImpl.AREA___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
- }
- return super.eInvoke(operationID, arguments);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public String toString() {
if (eIsProxy()) return super.toString();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/PerspectiveImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/PerspectiveImpl.java
index 010749e..3ae4484 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/PerspectiveImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/impl/PerspectiveImpl.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.e4.ui.model.application.ui.advanced.impl;
-import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -50,6 +49,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getContext <em>Context</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getVariables <em>Variables</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveImpl#getProperties <em>Properties</em>}</li>
@@ -121,6 +122,26 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The default value of the '{@link #getContext() <em>Context</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -338,6 +359,19 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedLabel(this);
}
@@ -380,6 +414,10 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
return getIconURI();
case AdvancedPackageImpl.PERSPECTIVE__TOOLTIP:
return getTooltip();
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case AdvancedPackageImpl.PERSPECTIVE__CONTEXT:
return getContext();
case AdvancedPackageImpl.PERSPECTIVE__VARIABLES:
@@ -476,6 +514,10 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case AdvancedPackageImpl.PERSPECTIVE__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case AdvancedPackageImpl.PERSPECTIVE__CONTEXT:
return CONTEXT_EDEFAULT == null ? context != null : !CONTEXT_EDEFAULT.equals(context);
case AdvancedPackageImpl.PERSPECTIVE__VARIABLES:
@@ -500,6 +542,8 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
case AdvancedPackageImpl.PERSPECTIVE__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case AdvancedPackageImpl.PERSPECTIVE__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case AdvancedPackageImpl.PERSPECTIVE__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -526,6 +570,8 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
case UiPackageImpl.UI_LABEL__LABEL: return AdvancedPackageImpl.PERSPECTIVE__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return AdvancedPackageImpl.PERSPECTIVE__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return AdvancedPackageImpl.PERSPECTIVE__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return AdvancedPackageImpl.PERSPECTIVE__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -546,44 +592,6 @@ public class PerspectiveImpl extends ElementContainerImpl<MPartSashContainerElem
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return AdvancedPackageImpl.PERSPECTIVE___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return AdvancedPackageImpl.PERSPECTIVE___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- if (baseClass == MContext.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case AdvancedPackageImpl.PERSPECTIVE___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case AdvancedPackageImpl.PERSPECTIVE___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
- }
- return super.eInvoke(operationID, arguments);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public String toString() {
if (eIsProxy()) return super.toString();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedAdapterFactory.java
index ef88529..22e8aef 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedAdapterFactory.java
@@ -15,6 +15,7 @@ import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MGenericTile;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.advanced.*;
@@ -105,6 +106,10 @@ public class AdvancedAdapterFactory extends AdapterFactoryImpl {
return createApplicationElementAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseUIElement(MUIElement object) {
return createUIElementAdapter();
}
@@ -291,6 +296,20 @@ public class AdvancedAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MUILabel <em>UI Label</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedSwitch.java
index 42d56aa..ed84952 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/advanced/util/AdvancedSwitch.java
@@ -15,6 +15,7 @@ import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MGenericTile;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.advanced.*;
@@ -91,6 +92,7 @@ public class AdvancedSwitch<T1> extends Switch<T1> {
if (result == null) result = caseStackElement(placeholder);
if (result == null) result = caseUIElement(placeholder);
if (result == null) result = caseApplicationElement(placeholder);
+ if (result == null) result = caseLocalizable(placeholder);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -102,6 +104,7 @@ public class AdvancedSwitch<T1> extends Switch<T1> {
if (result == null) result = caseContext(perspective);
if (result == null) result = caseUIElement(perspective);
if (result == null) result = caseApplicationElement(perspective);
+ if (result == null) result = caseLocalizable(perspective);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -112,6 +115,7 @@ public class AdvancedSwitch<T1> extends Switch<T1> {
if (result == null) result = casePartSashContainerElement(perspectiveStack);
if (result == null) result = caseWindowElement(perspectiveStack);
if (result == null) result = caseApplicationElement(perspectiveStack);
+ if (result == null) result = caseLocalizable(perspectiveStack);
if (result == null) result = caseElementContainer(perspectiveStack);
if (result == null) result = caseUIElement(perspectiveStack);
if (result == null) result = defaultCase(theEObject);
@@ -128,6 +132,7 @@ public class AdvancedSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(area);
if (result == null) result = caseUIElement(area);
if (result == null) result = caseApplicationElement(area);
+ if (result == null) result = caseLocalizable(area);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -271,6 +276,21 @@ public class AdvancedSwitch<T1> extends Switch<T1> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T1 caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>UI Label</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MPart.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MPart.java
index 2a1dbf9..c2c9420 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MPart.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MPart.java
@@ -42,6 +42,7 @@ import org.eclipse.e4.ui.model.application.ui.menu.MToolBar;
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#getToolbar <em>Toolbar</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#isCloseable <em>Closeable</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -154,17 +155,11 @@ public interface MPart extends MUIElement, MPartSashContainerElement, MStackElem
void setDescription(String value);
/**
+ * Returns the value of the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * <p>
- * <strong>Developers</strong>:
- * Add more detailed documentation by editing this comment in
- * org.eclipse.ui.model.workbench/model/UIElements.ecore.
- * There is a GenModel/documentation node under each type and attribute.
- * </p>
- * <!-- end-model-doc -->
- * @model kind="operation"
+ * @return the value of the '<em>Localized Description</em>' attribute.
+ * @model transient="true" changeable="false" volatile="true" derived="true"
* @generated
*/
String getLocalizedDescription();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/BasicPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/BasicPackageImpl.java
index 84818a0..0233033 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/BasicPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/BasicPackageImpl.java
@@ -34,7 +34,6 @@ import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EFactory;
import org.eclipse.emf.ecore.EGenericType;
-import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
@@ -333,6 +332,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -405,112 +413,112 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART__TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 7;
/**
- * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__HANDLERS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 8;
+ public static final int PART__LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 8;
/**
- * The feature id for the '<em><b>Dirty</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__DIRTY = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 9;
+ public static final int PART__LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 9;
/**
- * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
+ * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__BINDING_CONTEXTS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 10;
+ public static final int PART__HANDLERS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 10;
/**
- * The feature id for the '<em><b>Menus</b></em>' containment reference list.
+ * The feature id for the '<em><b>Dirty</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__MENUS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 11;
+ public static final int PART__DIRTY = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 11;
/**
- * The feature id for the '<em><b>Toolbar</b></em>' containment reference.
+ * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__TOOLBAR = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 12;
+ public static final int PART__BINDING_CONTEXTS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 12;
/**
- * The feature id for the '<em><b>Closeable</b></em>' attribute.
+ * The feature id for the '<em><b>Menus</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__CLOSEABLE = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 13;
+ public static final int PART__MENUS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 13;
/**
- * The feature id for the '<em><b>Description</b></em>' attribute.
+ * The feature id for the '<em><b>Toolbar</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART__DESCRIPTION = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 14;
+ public static final int PART__TOOLBAR = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 14;
/**
- * The number of structural features of the '<em>Part</em>' class.
+ * The feature id for the '<em><b>Closeable</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 15;
+ public static final int PART__CLOSEABLE = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 15;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PART__DESCRIPTION = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 16;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART___GET_LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
+ public static final int PART__LOCALIZED_DESCRIPTION = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 17;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The number of structural features of the '<em>Part</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART___GET_LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 1;
+ public static final int PART_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 18;
/**
- * The operation id for the '<em>Get Localized Description</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART___GET_LOCALIZED_DESCRIPTION = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 2;
+ public static final int PART___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Part</em>' class.
@@ -519,7 +527,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int PART_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 3;
+ public static final int PART_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.basic.impl.CompositePartImpl <em>Composite Part</em>}' class.
@@ -667,6 +675,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int COMPOSITE_PART__ACCESSIBILITY_PHRASE = PART__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int COMPOSITE_PART__LOCALIZED_ACCESSIBILITY_PHRASE = PART__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -739,6 +756,24 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int COMPOSITE_PART__TOOLTIP = PART__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int COMPOSITE_PART__LOCALIZED_LABEL = PART__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int COMPOSITE_PART__LOCALIZED_TOOLTIP = PART__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Handlers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -802,6 +837,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int COMPOSITE_PART__DESCRIPTION = PART__DESCRIPTION;
/**
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int COMPOSITE_PART__LOCALIZED_DESCRIPTION = PART__LOCALIZED_DESCRIPTION;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -838,40 +882,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int COMPOSITE_PART_FEATURE_COUNT = PART_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int COMPOSITE_PART___GET_LOCALIZED_ACCESSIBILITY_PHRASE = PART___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int COMPOSITE_PART___GET_LOCALIZED_LABEL = PART___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int COMPOSITE_PART___GET_LOCALIZED_TOOLTIP = PART___GET_LOCALIZED_TOOLTIP;
-
- /**
- * The operation id for the '<em>Get Localized Description</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int COMPOSITE_PART___GET_LOCALIZED_DESCRIPTION = PART___GET_LOCALIZED_DESCRIPTION;
+ public static final int COMPOSITE_PART___UPDATE_LOCALIZATION = PART___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Composite Part</em>' class.
@@ -1018,6 +1035,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int INPUT_PART__ACCESSIBILITY_PHRASE = PART__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int INPUT_PART__LOCALIZED_ACCESSIBILITY_PHRASE = PART__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1090,121 +1116,121 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int INPUT_PART__TOOLTIP = PART__TOOLTIP;
/**
- * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__HANDLERS = PART__HANDLERS;
+ public static final int INPUT_PART__LOCALIZED_LABEL = PART__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Dirty</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__DIRTY = PART__DIRTY;
+ public static final int INPUT_PART__LOCALIZED_TOOLTIP = PART__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
+ * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__BINDING_CONTEXTS = PART__BINDING_CONTEXTS;
+ public static final int INPUT_PART__HANDLERS = PART__HANDLERS;
/**
- * The feature id for the '<em><b>Menus</b></em>' containment reference list.
+ * The feature id for the '<em><b>Dirty</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__MENUS = PART__MENUS;
+ public static final int INPUT_PART__DIRTY = PART__DIRTY;
/**
- * The feature id for the '<em><b>Toolbar</b></em>' containment reference.
+ * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__TOOLBAR = PART__TOOLBAR;
+ public static final int INPUT_PART__BINDING_CONTEXTS = PART__BINDING_CONTEXTS;
/**
- * The feature id for the '<em><b>Closeable</b></em>' attribute.
+ * The feature id for the '<em><b>Menus</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__CLOSEABLE = PART__CLOSEABLE;
+ public static final int INPUT_PART__MENUS = PART__MENUS;
/**
- * The feature id for the '<em><b>Description</b></em>' attribute.
+ * The feature id for the '<em><b>Toolbar</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__DESCRIPTION = PART__DESCRIPTION;
+ public static final int INPUT_PART__TOOLBAR = PART__TOOLBAR;
/**
- * The feature id for the '<em><b>Input URI</b></em>' attribute.
+ * The feature id for the '<em><b>Closeable</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART__INPUT_URI = PART_FEATURE_COUNT + 0;
+ public static final int INPUT_PART__CLOSEABLE = PART__CLOSEABLE;
/**
- * The number of structural features of the '<em>Input Part</em>' class.
+ * The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART_FEATURE_COUNT = PART_FEATURE_COUNT + 1;
+ public static final int INPUT_PART__DESCRIPTION = PART__DESCRIPTION;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Localized Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART___GET_LOCALIZED_ACCESSIBILITY_PHRASE = PART___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int INPUT_PART__LOCALIZED_DESCRIPTION = PART__LOCALIZED_DESCRIPTION;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The feature id for the '<em><b>Input URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART___GET_LOCALIZED_LABEL = PART___GET_LOCALIZED_LABEL;
+ public static final int INPUT_PART__INPUT_URI = PART_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The number of structural features of the '<em>Input Part</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART___GET_LOCALIZED_TOOLTIP = PART___GET_LOCALIZED_TOOLTIP;
+ public static final int INPUT_PART_FEATURE_COUNT = PART_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Description</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int INPUT_PART___GET_LOCALIZED_DESCRIPTION = PART___GET_LOCALIZED_DESCRIPTION;
+ public static final int INPUT_PART___UPDATE_LOCALIZATION = PART___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Input Part</em>' class.
@@ -1351,6 +1377,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_STACK__ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_STACK__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART_STACK__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_STACK__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1378,13 +1413,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_STACK_FEATURE_COUNT = UiPackageImpl.GENERIC_STACK_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_STACK___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_STACK___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PART_STACK___UPDATE_LOCALIZATION = UiPackageImpl.GENERIC_STACK___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Part Stack</em>' class.
@@ -1531,6 +1566,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_SASH_CONTAINER__ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TILE__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART_SASH_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TILE__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1567,13 +1611,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_SASH_CONTAINER_FEATURE_COUNT = UiPackageImpl.GENERIC_TILE_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_SASH_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TILE___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PART_SASH_CONTAINER___UPDATE_LOCALIZATION = UiPackageImpl.GENERIC_TILE___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Part Sash Container</em>' class.
@@ -1720,6 +1764,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WINDOW__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int WINDOW__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1765,157 +1818,157 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WINDOW__TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 2;
/**
- * The feature id for the '<em><b>Context</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__CONTEXT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 3;
+ public static final int WINDOW__LOCALIZED_LABEL = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 3;
/**
- * The feature id for the '<em><b>Variables</b></em>' attribute list.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__VARIABLES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 4;
+ public static final int WINDOW__LOCALIZED_TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 4;
/**
- * The feature id for the '<em><b>Properties</b></em>' map.
+ * The feature id for the '<em><b>Context</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__PROPERTIES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 5;
+ public static final int WINDOW__CONTEXT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 5;
/**
- * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
+ * The feature id for the '<em><b>Variables</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__HANDLERS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 6;
+ public static final int WINDOW__VARIABLES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 6;
/**
- * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
+ * The feature id for the '<em><b>Properties</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__BINDING_CONTEXTS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 7;
+ public static final int WINDOW__PROPERTIES = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 7;
/**
- * The feature id for the '<em><b>Snippets</b></em>' containment reference list.
+ * The feature id for the '<em><b>Handlers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__SNIPPETS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 8;
+ public static final int WINDOW__HANDLERS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 8;
/**
- * The feature id for the '<em><b>Main Menu</b></em>' containment reference.
+ * The feature id for the '<em><b>Binding Contexts</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__MAIN_MENU = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 9;
+ public static final int WINDOW__BINDING_CONTEXTS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 9;
/**
- * The feature id for the '<em><b>X</b></em>' attribute.
+ * The feature id for the '<em><b>Snippets</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__X = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 10;
+ public static final int WINDOW__SNIPPETS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 10;
/**
- * The feature id for the '<em><b>Y</b></em>' attribute.
+ * The feature id for the '<em><b>Main Menu</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__Y = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 11;
+ public static final int WINDOW__MAIN_MENU = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 11;
/**
- * The feature id for the '<em><b>Width</b></em>' attribute.
+ * The feature id for the '<em><b>X</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__WIDTH = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 12;
+ public static final int WINDOW__X = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 12;
/**
- * The feature id for the '<em><b>Height</b></em>' attribute.
+ * The feature id for the '<em><b>Y</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__HEIGHT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 13;
+ public static final int WINDOW__Y = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 13;
/**
- * The feature id for the '<em><b>Windows</b></em>' containment reference list.
+ * The feature id for the '<em><b>Width</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__WINDOWS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 14;
+ public static final int WINDOW__WIDTH = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 14;
/**
- * The feature id for the '<em><b>Shared Elements</b></em>' containment reference list.
+ * The feature id for the '<em><b>Height</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW__SHARED_ELEMENTS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 15;
+ public static final int WINDOW__HEIGHT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 15;
/**
- * The number of structural features of the '<em>Window</em>' class.
+ * The feature id for the '<em><b>Windows</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 16;
+ public static final int WINDOW__WINDOWS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 16;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Shared Elements</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int WINDOW__SHARED_ELEMENTS = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 17;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Window</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW___GET_LOCALIZED_LABEL = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 0;
+ public static final int WINDOW_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 18;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW___GET_LOCALIZED_TOOLTIP = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 1;
+ public static final int WINDOW___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Window</em>' class.
@@ -1924,7 +1977,7 @@ public class BasicPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int WINDOW_OPERATION_COUNT = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 2;
+ public static final int WINDOW_OPERATION_COUNT = UiPackageImpl.ELEMENT_CONTAINER_OPERATION_COUNT + 0;
/**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
@@ -2062,6 +2115,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIMMED_WINDOW__ACCESSIBILITY_PHRASE = WINDOW__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIMMED_WINDOW__LOCALIZED_ACCESSIBILITY_PHRASE = WINDOW__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2107,6 +2169,24 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIMMED_WINDOW__TOOLTIP = WINDOW__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIMMED_WINDOW__LOCALIZED_LABEL = WINDOW__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIMMED_WINDOW__LOCALIZED_TOOLTIP = WINDOW__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Context</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2242,31 +2322,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIMMED_WINDOW_FEATURE_COUNT = WINDOW_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int TRIMMED_WINDOW___GET_LOCALIZED_ACCESSIBILITY_PHRASE = WINDOW___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TRIMMED_WINDOW___GET_LOCALIZED_LABEL = WINDOW___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int TRIMMED_WINDOW___GET_LOCALIZED_TOOLTIP = WINDOW___GET_LOCALIZED_TOOLTIP;
+ public static final int TRIMMED_WINDOW___UPDATE_LOCALIZATION = WINDOW___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Trimmed Window</em>' class.
@@ -2413,6 +2475,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIM_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIM_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Trim Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2422,13 +2493,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIM_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TRIM_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TRIM_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Trim Element</em>' class.
@@ -2575,6 +2646,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_SASH_CONTAINER_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int PART_SASH_CONTAINER_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Part Sash Container Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2584,13 +2664,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int PART_SASH_CONTAINER_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int PART_SASH_CONTAINER_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int PART_SASH_CONTAINER_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Part Sash Container Element</em>' class.
@@ -2737,6 +2817,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WINDOW_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int WINDOW_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Window Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2746,13 +2835,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WINDOW_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WINDOW_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int WINDOW_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Window Element</em>' class.
@@ -2899,6 +2988,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIM_BAR__ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TRIM_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIM_BAR__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TRIM_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2944,13 +3042,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int TRIM_BAR_FEATURE_COUNT = UiPackageImpl.GENERIC_TRIM_CONTAINER_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TRIM_BAR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.GENERIC_TRIM_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TRIM_BAR___UPDATE_LOCALIZATION = UiPackageImpl.GENERIC_TRIM_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Trim Bar</em>' class.
@@ -3097,6 +3195,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int STACK_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int STACK_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Stack Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3106,13 +3213,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int STACK_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int STACK_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int STACK_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Stack Element</em>' class.
@@ -3269,6 +3376,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int DIALOG__ACCESSIBILITY_PHRASE = WINDOW__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DIALOG__LOCALIZED_ACCESSIBILITY_PHRASE = WINDOW__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3314,6 +3430,24 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int DIALOG__TOOLTIP = WINDOW__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DIALOG__LOCALIZED_LABEL = WINDOW__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DIALOG__LOCALIZED_TOOLTIP = WINDOW__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Context</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3440,31 +3574,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int DIALOG_FEATURE_COUNT = WINDOW_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int DIALOG___GET_LOCALIZED_ACCESSIBILITY_PHRASE = WINDOW___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int DIALOG___GET_LOCALIZED_LABEL = WINDOW___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIALOG___GET_LOCALIZED_TOOLTIP = WINDOW___GET_LOCALIZED_TOOLTIP;
+ public static final int DIALOG___UPDATE_LOCALIZATION = WINDOW___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Dialog</em>' class.
@@ -3621,6 +3737,15 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WIZARD_DIALOG__ACCESSIBILITY_PHRASE = DIALOG__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int WIZARD_DIALOG__LOCALIZED_ACCESSIBILITY_PHRASE = DIALOG__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3666,6 +3791,24 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WIZARD_DIALOG__TOOLTIP = DIALOG__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int WIZARD_DIALOG__LOCALIZED_LABEL = DIALOG__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int WIZARD_DIALOG__LOCALIZED_TOOLTIP = DIALOG__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Context</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3792,31 +3935,13 @@ public class BasicPackageImpl extends EPackageImpl {
public static final int WIZARD_DIALOG_FEATURE_COUNT = DIALOG_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int WIZARD_DIALOG___GET_LOCALIZED_ACCESSIBILITY_PHRASE = DIALOG___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int WIZARD_DIALOG___GET_LOCALIZED_LABEL = DIALOG___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int WIZARD_DIALOG___GET_LOCALIZED_TOOLTIP = DIALOG___GET_LOCALIZED_TOOLTIP;
+ public static final int WIZARD_DIALOG___UPDATE_LOCALIZATION = DIALOG___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Wizard Dialog</em>' class.
@@ -4073,15 +4198,16 @@ public class BasicPackageImpl extends EPackageImpl {
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#getLocalizedDescription() <em>Get Localized Description</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.ui.basic.MPart#getLocalizedDescription <em>Localized Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Description</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Description</em>'.
* @see org.eclipse.e4.ui.model.application.ui.basic.MPart#getLocalizedDescription()
+ * @see #getPart()
* @generated
*/
- public EOperation getPart__GetLocalizedDescription() {
- return partEClass.getEOperations().get(0);
+ public EAttribute getPart_LocalizedDescription() {
+ return (EAttribute)partEClass.getEStructuralFeatures().get(4);
}
@@ -4399,7 +4525,7 @@ public class BasicPackageImpl extends EPackageImpl {
createEReference(partEClass, PART__TOOLBAR);
createEAttribute(partEClass, PART__CLOSEABLE);
createEAttribute(partEClass, PART__DESCRIPTION);
- createEOperation(partEClass, PART___GET_LOCALIZED_DESCRIPTION);
+ createEAttribute(partEClass, PART__LOCALIZED_DESCRIPTION);
compositePartEClass = createEClass(COMPOSITE_PART);
@@ -4539,8 +4665,7 @@ public class BasicPackageImpl extends EPackageImpl {
initEReference(getPart_Toolbar(), theMenuPackage.getToolBar(), null, "toolbar", null, 0, 1, MPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getPart_Closeable(), ecorePackage.getEBoolean(), "closeable", "false", 0, 1, MPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
initEAttribute(getPart_Description(), ecorePackage.getEString(), "description", null, 0, 1, MPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getPart__GetLocalizedDescription(), ecorePackage.getEString(), "getLocalizedDescription", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getPart_LocalizedDescription(), ecorePackage.getEString(), "localizedDescription", null, 0, 1, MPart.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(compositePartEClass, MCompositePart.class, "CompositePart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -4634,12 +4759,12 @@ public class BasicPackageImpl extends EPackageImpl {
public static final EAttribute PART__DESCRIPTION = eINSTANCE.getPart_Description();
/**
- * The meta object literal for the '<em><b>Get Localized Description</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation PART___GET_LOCALIZED_DESCRIPTION = eINSTANCE.getPart__GetLocalizedDescription();
+ public static final EAttribute PART__LOCALIZED_DESCRIPTION = eINSTANCE.getPart_LocalizedDescription();
/**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.ui.basic.impl.CompositePartImpl <em>Composite Part</em>}' class.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/PartImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/PartImpl.java
index 345b413..07868c2 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/PartImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/PartImpl.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.e4.ui.model.application.ui.basic.impl;
-import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -64,6 +63,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getHandlers <em>Handlers</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#isDirty <em>Dirty</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getBindingContexts <em>Binding Contexts</em>}</li>
@@ -71,6 +72,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getToolbar <em>Toolbar</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#isCloseable <em>Closeable</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl#getLocalizedDescription <em>Localized Description</em>}</li>
* </ul>
* </p>
*
@@ -218,6 +220,26 @@ public class PartImpl extends UIElementImpl implements MPart {
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The cached value of the '{@link #getHandlers() <em>Handlers</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -318,6 +340,16 @@ public class PartImpl extends UIElementImpl implements MPart {
protected String description = DESCRIPTION_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedDescription() <em>Localized Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_DESCRIPTION_EDEFAULT = null;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -640,6 +672,21 @@ public class PartImpl extends UIElementImpl implements MPart {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.PART__LOCALIZED_DESCRIPTION, null, getLocalizedDescription()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedLabel(this);
}
@@ -697,6 +744,10 @@ public class PartImpl extends UIElementImpl implements MPart {
return getIconURI();
case BasicPackageImpl.PART__TOOLTIP:
return getTooltip();
+ case BasicPackageImpl.PART__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case BasicPackageImpl.PART__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case BasicPackageImpl.PART__HANDLERS:
return getHandlers();
case BasicPackageImpl.PART__DIRTY:
@@ -711,6 +762,8 @@ public class PartImpl extends UIElementImpl implements MPart {
return isCloseable();
case BasicPackageImpl.PART__DESCRIPTION:
return getDescription();
+ case BasicPackageImpl.PART__LOCALIZED_DESCRIPTION:
+ return getLocalizedDescription();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -858,6 +911,10 @@ public class PartImpl extends UIElementImpl implements MPart {
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case BasicPackageImpl.PART__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case BasicPackageImpl.PART__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case BasicPackageImpl.PART__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case BasicPackageImpl.PART__HANDLERS:
return handlers != null && !handlers.isEmpty();
case BasicPackageImpl.PART__DIRTY:
@@ -872,6 +929,8 @@ public class PartImpl extends UIElementImpl implements MPart {
return closeable != CLOSEABLE_EDEFAULT;
case BasicPackageImpl.PART__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case BasicPackageImpl.PART__LOCALIZED_DESCRIPTION:
+ return LOCALIZED_DESCRIPTION_EDEFAULT == null ? getLocalizedDescription() != null : !LOCALIZED_DESCRIPTION_EDEFAULT.equals(getLocalizedDescription());
}
return super.eIsSet(featureID);
}
@@ -913,6 +972,8 @@ public class PartImpl extends UIElementImpl implements MPart {
case BasicPackageImpl.PART__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case BasicPackageImpl.PART__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case BasicPackageImpl.PART__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case BasicPackageImpl.PART__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case BasicPackageImpl.PART__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -979,6 +1040,8 @@ public class PartImpl extends UIElementImpl implements MPart {
case UiPackageImpl.UI_LABEL__LABEL: return BasicPackageImpl.PART__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return BasicPackageImpl.PART__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return BasicPackageImpl.PART__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return BasicPackageImpl.PART__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return BasicPackageImpl.PART__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -1014,81 +1077,6 @@ public class PartImpl extends UIElementImpl implements MPart {
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MPartSashContainerElement.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MStackElement.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MContribution.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MContext.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return BasicPackageImpl.PART___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return BasicPackageImpl.PART___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- if (baseClass == MHandlerContainer.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MDirtyable.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MBindings.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MWindowElement.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case BasicPackageImpl.PART___GET_LOCALIZED_DESCRIPTION:
- return getLocalizedDescription();
- case BasicPackageImpl.PART___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case BasicPackageImpl.PART___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
- }
- return super.eInvoke(operationID, arguments);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public String toString() {
if (eIsProxy()) return super.toString();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/WindowImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/WindowImpl.java
index cfd3729..673693a 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/WindowImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/impl/WindowImpl.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.e4.ui.model.application.ui.basic.impl;
-import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -57,6 +56,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getContext <em>Context</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getVariables <em>Variables</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.basic.impl.WindowImpl#getProperties <em>Properties</em>}</li>
@@ -137,6 +138,26 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The default value of the '{@link #getContext() <em>Context</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -659,6 +680,20 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.WINDOW__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, BasicPackageImpl.WINDOW__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ }
+
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedLabel(this);
}
@@ -709,6 +744,10 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
return getIconURI();
case BasicPackageImpl.WINDOW__TOOLTIP:
return getTooltip();
+ case BasicPackageImpl.WINDOW__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case BasicPackageImpl.WINDOW__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case BasicPackageImpl.WINDOW__CONTEXT:
return getContext();
case BasicPackageImpl.WINDOW__VARIABLES:
@@ -881,6 +920,10 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case BasicPackageImpl.WINDOW__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case BasicPackageImpl.WINDOW__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case BasicPackageImpl.WINDOW__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case BasicPackageImpl.WINDOW__CONTEXT:
return CONTEXT_EDEFAULT == null ? context != null : !CONTEXT_EDEFAULT.equals(context);
case BasicPackageImpl.WINDOW__VARIABLES:
@@ -923,6 +966,8 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
case BasicPackageImpl.WINDOW__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case BasicPackageImpl.WINDOW__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case BasicPackageImpl.WINDOW__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case BasicPackageImpl.WINDOW__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case BasicPackageImpl.WINDOW__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -967,6 +1012,8 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
case UiPackageImpl.UI_LABEL__LABEL: return BasicPackageImpl.WINDOW__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return BasicPackageImpl.WINDOW__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return BasicPackageImpl.WINDOW__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return BasicPackageImpl.WINDOW__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return BasicPackageImpl.WINDOW__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -1005,59 +1052,6 @@ public class WindowImpl extends ElementContainerImpl<MWindowElement> implements
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return BasicPackageImpl.WINDOW___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return BasicPackageImpl.WINDOW___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- if (baseClass == MContext.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MHandlerContainer.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MBindings.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- if (baseClass == MSnippetContainer.class) {
- switch (baseOperationID) {
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case BasicPackageImpl.WINDOW___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case BasicPackageImpl.WINDOW___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
- }
- return super.eInvoke(operationID, arguments);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public String toString() {
if (eIsProxy()) return super.toString();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicAdapterFactory.java
index aeb0749..7e1806f 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicAdapterFactory.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MGenericTile;
import org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer;
import org.eclipse.e4.ui.model.application.ui.MInput;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
@@ -148,6 +149,10 @@ public class BasicAdapterFactory extends AdapterFactoryImpl {
return createApplicationElementAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseUIElement(MUIElement object) {
return createUIElementAdapter();
}
@@ -528,6 +533,20 @@ public class BasicAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MInput <em>Input</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicSwitch.java
index 9bd93d5..8912e71 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/util/BasicSwitch.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MGenericTile;
import org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer;
import org.eclipse.e4.ui.model.application.ui.MInput;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
@@ -101,6 +102,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseWindowElement(part);
if (result == null) result = caseUIElement(part);
if (result == null) result = caseApplicationElement(part);
+ if (result == null) result = caseLocalizable(part);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -121,6 +123,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(compositePart);
if (result == null) result = caseUIElement(compositePart);
if (result == null) result = caseApplicationElement(compositePart);
+ if (result == null) result = caseLocalizable(compositePart);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -140,6 +143,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseWindowElement(inputPart);
if (result == null) result = caseUIElement(inputPart);
if (result == null) result = caseApplicationElement(inputPart);
+ if (result == null) result = caseLocalizable(inputPart);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -152,6 +156,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(partStack);
if (result == null) result = caseUIElement(partStack);
if (result == null) result = caseApplicationElement(partStack);
+ if (result == null) result = caseLocalizable(partStack);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -164,6 +169,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(partSashContainer);
if (result == null) result = caseUIElement(partSashContainer);
if (result == null) result = caseApplicationElement(partSashContainer);
+ if (result == null) result = caseLocalizable(partSashContainer);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -178,6 +184,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseSnippetContainer(window);
if (result == null) result = caseUIElement(window);
if (result == null) result = caseApplicationElement(window);
+ if (result == null) result = caseLocalizable(window);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -193,6 +200,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseSnippetContainer(trimmedWindow);
if (result == null) result = caseUIElement(trimmedWindow);
if (result == null) result = caseApplicationElement(trimmedWindow);
+ if (result == null) result = caseLocalizable(trimmedWindow);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -201,6 +209,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
T1 result = caseTrimElement(trimElement);
if (result == null) result = caseUIElement(trimElement);
if (result == null) result = caseApplicationElement(trimElement);
+ if (result == null) result = caseLocalizable(trimElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -209,6 +218,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
T1 result = casePartSashContainerElement(partSashContainerElement);
if (result == null) result = caseUIElement(partSashContainerElement);
if (result == null) result = caseApplicationElement(partSashContainerElement);
+ if (result == null) result = caseLocalizable(partSashContainerElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -217,6 +227,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
T1 result = caseWindowElement(windowElement);
if (result == null) result = caseUIElement(windowElement);
if (result == null) result = caseApplicationElement(windowElement);
+ if (result == null) result = caseLocalizable(windowElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -227,6 +238,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(trimBar);
if (result == null) result = caseUIElement(trimBar);
if (result == null) result = caseApplicationElement(trimBar);
+ if (result == null) result = caseLocalizable(trimBar);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -235,6 +247,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
T1 result = caseStackElement(stackElement);
if (result == null) result = caseUIElement(stackElement);
if (result == null) result = caseApplicationElement(stackElement);
+ if (result == null) result = caseLocalizable(stackElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -250,6 +263,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseSnippetContainer(dialog);
if (result == null) result = caseUIElement(dialog);
if (result == null) result = caseApplicationElement(dialog);
+ if (result == null) result = caseLocalizable(dialog);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -266,6 +280,7 @@ public class BasicSwitch<T1> extends Switch<T1> {
if (result == null) result = caseSnippetContainer(wizardDialog);
if (result == null) result = caseUIElement(wizardDialog);
if (result == null) result = caseApplicationElement(wizardDialog);
+ if (result == null) result = caseLocalizable(wizardDialog);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -604,6 +619,21 @@ public class BasicSwitch<T1> extends Switch<T1> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T1 caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Input</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UIElementImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UIElementImpl.java
index e751452..d3555ff 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UIElementImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UIElementImpl.java
@@ -11,9 +11,11 @@
package org.eclipse.e4.ui.model.application.ui.impl;
import java.lang.reflect.InvocationTargetException;
+import org.eclipse.e4.ui.model.LocalizationHelper;
import org.eclipse.e4.ui.model.application.impl.ApplicationElementImpl;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.MExpression;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder;
import org.eclipse.emf.common.notify.Notification;
@@ -42,6 +44,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
* <li>{@link org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl#getCurSharedRef <em>Cur Shared Ref</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl#getVisibleWhen <em>Visible When</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl#getAccessibilityPhrase <em>Accessibility Phrase</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl#getLocalizedAccessibilityPhrase <em>Localized Accessibility Phrase</em>}</li>
* </ul>
* </p>
*
@@ -209,6 +212,16 @@ public abstract class UIElementImpl extends ApplicationElementImpl implements MU
protected String accessibilityPhrase = ACCESSIBILITY_PHRASE_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedAccessibilityPhrase() <em>Localized Accessibility Phrase</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedAccessibilityPhrase()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_ACCESSIBILITY_PHRASE_EDEFAULT = null;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -500,12 +513,20 @@ public abstract class UIElementImpl extends ApplicationElementImpl implements MU
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
*/
public String getLocalizedAccessibilityPhrase() {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
+ return LocalizationHelper.getLocalizedAccessibilityPhrase(this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE, null, getLocalizedAccessibilityPhrase()));
+ }
}
/**
@@ -584,6 +605,8 @@ public abstract class UIElementImpl extends ApplicationElementImpl implements MU
return getVisibleWhen();
case UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE:
return getAccessibilityPhrase();
+ case UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE:
+ return getLocalizedAccessibilityPhrase();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -701,6 +724,8 @@ public abstract class UIElementImpl extends ApplicationElementImpl implements MU
return visibleWhen != null;
case UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE:
return ACCESSIBILITY_PHRASE_EDEFAULT == null ? accessibilityPhrase != null : !ACCESSIBILITY_PHRASE_EDEFAULT.equals(accessibilityPhrase);
+ case UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE:
+ return LOCALIZED_ACCESSIBILITY_PHRASE_EDEFAULT == null ? getLocalizedAccessibilityPhrase() != null : !LOCALIZED_ACCESSIBILITY_PHRASE_EDEFAULT.equals(getLocalizedAccessibilityPhrase());
}
return super.eIsSet(featureID);
}
@@ -711,10 +736,27 @@ public abstract class UIElementImpl extends ApplicationElementImpl implements MU
* @generated
*/
@Override
+ public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
+ if (baseClass == MLocalizable.class) {
+ switch (baseOperationID) {
+ case UiPackageImpl.LOCALIZABLE___UPDATE_LOCALIZATION: return UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
+ default: return -1;
+ }
+ }
+ return super.eDerivedOperationID(baseOperationID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
- case UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE:
- return getLocalizedAccessibilityPhrase();
+ case UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION:
+ updateLocalization();
+ return null;
}
return super.eInvoke(operationID, arguments);
}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UiPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UiPackageImpl.java
index 12d1c15..d4cc87e 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UiPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/impl/UiPackageImpl.java
@@ -21,6 +21,7 @@ import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MGenericTile;
import org.eclipse.e4.ui.model.application.ui.MGenericTrimContainer;
import org.eclipse.e4.ui.model.application.ui.MInput;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
@@ -363,22 +364,31 @@ public class UiPackageImpl extends EPackageImpl {
public static final int UI_ELEMENT__ACCESSIBILITY_PHRASE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 9;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 10;
+
+ /**
* The number of structural features of the '<em>UI Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_ELEMENT_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 10;
+ public static final int UI_ELEMENT_FEATURE_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_FEATURE_COUNT + 11;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
+ public static final int UI_ELEMENT___UPDATE_LOCALIZATION = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
/**
* The number of operations of the '<em>UI Element</em>' class.
@@ -545,6 +555,15 @@ public class UiPackageImpl extends EPackageImpl {
public static final int ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE = UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE = UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -572,13 +591,13 @@ public class UiPackageImpl extends EPackageImpl {
public static final int ELEMENT_CONTAINER_FEATURE_COUNT = UI_ELEMENT_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int ELEMENT_CONTAINER___UPDATE_LOCALIZATION = UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Element Container</em>' class.
@@ -590,13 +609,110 @@ public class UiPackageImpl extends EPackageImpl {
public static final int ELEMENT_CONTAINER_OPERATION_COUNT = UI_ELEMENT_OPERATION_COUNT + 0;
/**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericStackImpl <em>Generic Stack</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.impl.GenericStackImpl
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericStack()
+ * @generated
+ */
+ public static final int GENERIC_STACK = 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericTileImpl <em>Generic Tile</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.impl.GenericTileImpl
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericTile()
+ * @generated
+ */
+ public static final int GENERIC_TILE = 7;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericTrimContainerImpl <em>Generic Trim Container</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.impl.GenericTrimContainerImpl
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericTrimContainer()
+ * @generated
+ */
+ public static final int GENERIC_TRIM_CONTAINER = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.ExpressionImpl <em>Expression</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.impl.ExpressionImpl
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getExpression()
+ * @generated
+ */
+ public static final int EXPRESSION = 9;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.CoreExpressionImpl <em>Core Expression</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.impl.CoreExpressionImpl
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getCoreExpression()
+ * @generated
+ */
+ public static final int CORE_EXPRESSION = 10;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.MSnippetContainer <em>Snippet Container</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.MSnippetContainer
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getSnippetContainer()
+ * @generated
+ */
+ public static final int SNIPPET_CONTAINER = 11;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getLocalizable()
+ * @generated
+ */
+ public static final int LOCALIZABLE = 12;
+
+ /**
+ * The number of structural features of the '<em>Localizable</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int LOCALIZABLE_FEATURE_COUNT = 0;
+
+ /**
+ * The operation id for the '<em>Update Localization</em>' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int LOCALIZABLE___UPDATE_LOCALIZATION = 0;
+
+ /**
+ * The number of operations of the '<em>Localizable</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int LOCALIZABLE_OPERATION_COUNT = 1;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_LABEL__LABEL = 0;
+ public static final int UI_LABEL__LABEL = LOCALIZABLE_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Icon URI</b></em>' attribute.
@@ -605,7 +721,7 @@ public class UiPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int UI_LABEL__ICON_URI = 1;
+ public static final int UI_LABEL__ICON_URI = LOCALIZABLE_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Tooltip</b></em>' attribute.
@@ -614,53 +730,52 @@ public class UiPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int UI_LABEL__TOOLTIP = 2;
+ public static final int UI_LABEL__TOOLTIP = LOCALIZABLE_FEATURE_COUNT + 2;
/**
- * The number of structural features of the '<em>UI Label</em>' class.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_LABEL_FEATURE_COUNT = 3;
+ public static final int UI_LABEL__LOCALIZED_LABEL = LOCALIZABLE_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_LABEL___GET_LOCALIZED_LABEL = 0;
+ public static final int UI_LABEL__LOCALIZED_TOOLTIP = LOCALIZABLE_FEATURE_COUNT + 4;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The number of structural features of the '<em>UI Label</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_LABEL___GET_LOCALIZED_TOOLTIP = 1;
+ public static final int UI_LABEL_FEATURE_COUNT = LOCALIZABLE_FEATURE_COUNT + 5;
/**
- * The number of operations of the '<em>UI Label</em>' class.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int UI_LABEL_OPERATION_COUNT = 2;
+ public static final int UI_LABEL___UPDATE_LOCALIZATION = LOCALIZABLE___UPDATE_LOCALIZATION;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericStackImpl <em>Generic Stack</em>}' class.
+ * The number of operations of the '<em>UI Label</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.impl.GenericStackImpl
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericStack()
* @generated
+ * @ordered
*/
- public static final int GENERIC_STACK = 6;
+ public static final int UI_LABEL_OPERATION_COUNT = LOCALIZABLE_OPERATION_COUNT + 0;
/**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
@@ -798,6 +913,15 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_STACK__ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int GENERIC_STACK__LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -825,13 +949,13 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_STACK_FEATURE_COUNT = ELEMENT_CONTAINER_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int GENERIC_STACK___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int GENERIC_STACK___UPDATE_LOCALIZATION = ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Generic Stack</em>' class.
@@ -843,16 +967,6 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_STACK_OPERATION_COUNT = ELEMENT_CONTAINER_OPERATION_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericTileImpl <em>Generic Tile</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.impl.GenericTileImpl
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericTile()
- * @generated
- */
- public static final int GENERIC_TILE = 7;
-
- /**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -988,6 +1102,15 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TILE__ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int GENERIC_TILE__LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1024,13 +1147,13 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TILE_FEATURE_COUNT = ELEMENT_CONTAINER_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int GENERIC_TILE___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int GENERIC_TILE___UPDATE_LOCALIZATION = ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Generic Tile</em>' class.
@@ -1042,16 +1165,6 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TILE_OPERATION_COUNT = ELEMENT_CONTAINER_OPERATION_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.GenericTrimContainerImpl <em>Generic Trim Container</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.impl.GenericTrimContainerImpl
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getGenericTrimContainer()
- * @generated
- */
- public static final int GENERIC_TRIM_CONTAINER = 8;
-
- /**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1187,6 +1300,15 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TRIM_CONTAINER__ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int GENERIC_TRIM_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1223,13 +1345,13 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TRIM_CONTAINER_FEATURE_COUNT = ELEMENT_CONTAINER_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int GENERIC_TRIM_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int GENERIC_TRIM_CONTAINER___UPDATE_LOCALIZATION = ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Generic Trim Container</em>' class.
@@ -1241,16 +1363,6 @@ public class UiPackageImpl extends EPackageImpl {
public static final int GENERIC_TRIM_CONTAINER_OPERATION_COUNT = ELEMENT_CONTAINER_OPERATION_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.ExpressionImpl <em>Expression</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.impl.ExpressionImpl
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getExpression()
- * @generated
- */
- public static final int EXPRESSION = 9;
-
- /**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1314,16 +1426,6 @@ public class UiPackageImpl extends EPackageImpl {
public static final int EXPRESSION_OPERATION_COUNT = ApplicationPackageImpl.APPLICATION_ELEMENT_OPERATION_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.impl.CoreExpressionImpl <em>Core Expression</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.impl.CoreExpressionImpl
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getCoreExpression()
- * @generated
- */
- public static final int CORE_EXPRESSION = 10;
-
- /**
* The feature id for the '<em><b>Element Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1405,16 +1507,6 @@ public class UiPackageImpl extends EPackageImpl {
public static final int CORE_EXPRESSION_OPERATION_COUNT = EXPRESSION_OPERATION_COUNT + 0;
/**
- * The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.MSnippetContainer <em>Snippet Container</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.e4.ui.model.application.ui.MSnippetContainer
- * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getSnippetContainer()
- * @generated
- */
- public static final int SNIPPET_CONTAINER = 11;
-
- /**
* The feature id for the '<em><b>Snippets</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1449,7 +1541,7 @@ public class UiPackageImpl extends EPackageImpl {
* @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getSideValue()
* @generated
*/
- public static final int SIDE_VALUE = 12;
+ public static final int SIDE_VALUE = 13;
/**
* <!-- begin-user-doc -->
@@ -1540,6 +1632,13 @@ public class UiPackageImpl extends EPackageImpl {
* <!-- end-user-doc -->
* @generated
*/
+ private EClass localizableEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
private EEnum sideValueEEnum = null;
/**
@@ -1871,15 +1970,16 @@ public class UiPackageImpl extends EPackageImpl {
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getLocalizedAccessibilityPhrase() <em>Get Localized Accessibility Phrase</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.ui.MUIElement#getLocalizedAccessibilityPhrase <em>Localized Accessibility Phrase</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Accessibility Phrase</em>'.
* @see org.eclipse.e4.ui.model.application.ui.MUIElement#getLocalizedAccessibilityPhrase()
+ * @see #getUIElement()
* @generated
*/
- public EOperation getUIElement__GetLocalizedAccessibilityPhrase() {
- return uiElementEClass.getEOperations().get(0);
+ public EAttribute getUIElement_LocalizedAccessibilityPhrase() {
+ return (EAttribute)uiElementEClass.getEStructuralFeatures().get(10);
}
@@ -1935,28 +2035,30 @@ public class UiPackageImpl extends EPackageImpl {
}
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedLabel() <em>Get Localized Label</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedLabel <em>Localized Label</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Label</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Label</em>'.
* @see org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedLabel()
+ * @see #getUILabel()
* @generated
*/
- public EOperation getUILabel__GetLocalizedLabel() {
- return uiLabelEClass.getEOperations().get(0);
+ public EAttribute getUILabel_LocalizedLabel() {
+ return (EAttribute)uiLabelEClass.getEStructuralFeatures().get(3);
}
/**
- * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedTooltip() <em>Get Localized Tooltip</em>}' operation.
+ * Returns the meta object for the attribute '{@link org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedTooltip <em>Localized Tooltip</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for the '<em>Get Localized Tooltip</em>' operation.
+ * @return the meta object for the attribute '<em>Localized Tooltip</em>'.
* @see org.eclipse.e4.ui.model.application.ui.MUILabel#getLocalizedTooltip()
+ * @see #getUILabel()
* @generated
*/
- public EOperation getUILabel__GetLocalizedTooltip() {
- return uiLabelEClass.getEOperations().get(1);
+ public EAttribute getUILabel_LocalizedTooltip() {
+ return (EAttribute)uiLabelEClass.getEStructuralFeatures().get(4);
}
@@ -2142,6 +2244,32 @@ public class UiPackageImpl extends EPackageImpl {
/**
+ * Returns the meta object for class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Localizable</em>'.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public EClass getLocalizable() {
+ return localizableEClass;
+ }
+
+
+ /**
+ * Returns the meta object for the '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable#updateLocalization() <em>Update Localization</em>}' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the '<em>Update Localization</em>' operation.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable#updateLocalization()
+ * @generated
+ */
+ public EOperation getLocalizable__UpdateLocalization() {
+ return localizableEClass.getEOperations().get(0);
+ }
+
+
+ /**
* Returns the meta object for enum '{@link org.eclipse.e4.ui.model.application.ui.SideValue <em>Side Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2205,7 +2333,7 @@ public class UiPackageImpl extends EPackageImpl {
createEReference(uiElementEClass, UI_ELEMENT__CUR_SHARED_REF);
createEReference(uiElementEClass, UI_ELEMENT__VISIBLE_WHEN);
createEAttribute(uiElementEClass, UI_ELEMENT__ACCESSIBILITY_PHRASE);
- createEOperation(uiElementEClass, UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE);
+ createEAttribute(uiElementEClass, UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE);
elementContainerEClass = createEClass(ELEMENT_CONTAINER);
createEReference(elementContainerEClass, ELEMENT_CONTAINER__CHILDREN);
@@ -2215,8 +2343,8 @@ public class UiPackageImpl extends EPackageImpl {
createEAttribute(uiLabelEClass, UI_LABEL__LABEL);
createEAttribute(uiLabelEClass, UI_LABEL__ICON_URI);
createEAttribute(uiLabelEClass, UI_LABEL__TOOLTIP);
- createEOperation(uiLabelEClass, UI_LABEL___GET_LOCALIZED_LABEL);
- createEOperation(uiLabelEClass, UI_LABEL___GET_LOCALIZED_TOOLTIP);
+ createEAttribute(uiLabelEClass, UI_LABEL__LOCALIZED_LABEL);
+ createEAttribute(uiLabelEClass, UI_LABEL__LOCALIZED_TOOLTIP);
genericStackEClass = createEClass(GENERIC_STACK);
@@ -2235,6 +2363,9 @@ public class UiPackageImpl extends EPackageImpl {
snippetContainerEClass = createEClass(SNIPPET_CONTAINER);
createEReference(snippetContainerEClass, SNIPPET_CONTAINER__SNIPPETS);
+ localizableEClass = createEClass(LOCALIZABLE);
+ createEOperation(localizableEClass, LOCALIZABLE___UPDATE_LOCALIZATION);
+
// Create enums
sideValueEEnum = createEEnum(SIDE_VALUE);
}
@@ -2291,7 +2422,9 @@ public class UiPackageImpl extends EPackageImpl {
// Add supertypes to classes
uiElementEClass.getESuperTypes().add(theApplicationPackage.getApplicationElement());
+ uiElementEClass.getESuperTypes().add(this.getLocalizable());
elementContainerEClass.getESuperTypes().add(this.getUIElement());
+ uiLabelEClass.getESuperTypes().add(this.getLocalizable());
g1 = createEGenericType(this.getElementContainer());
EGenericType g2 = createEGenericType(genericStackEClass_T);
g1.getETypeArguments().add(g2);
@@ -2333,8 +2466,7 @@ public class UiPackageImpl extends EPackageImpl {
initEReference(getUIElement_CurSharedRef(), theAdvancedPackage.getPlaceholder(), null, "curSharedRef", null, 0, 1, MUIElement.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEReference(getUIElement_VisibleWhen(), this.getExpression(), null, "visibleWhen", null, 0, 1, MUIElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getUIElement_AccessibilityPhrase(), ecorePackage.getEString(), "accessibilityPhrase", null, 0, 1, MUIElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getUIElement__GetLocalizedAccessibilityPhrase(), ecorePackage.getEString(), "getLocalizedAccessibilityPhrase", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getUIElement_LocalizedAccessibilityPhrase(), ecorePackage.getEString(), "localizedAccessibilityPhrase", null, 0, 1, MUIElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEClass(elementContainerEClass, MElementContainer.class, "ElementContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
g1 = createEGenericType(elementContainerEClass_T);
@@ -2346,10 +2478,8 @@ public class UiPackageImpl extends EPackageImpl {
initEAttribute(getUILabel_Label(), ecorePackage.getEString(), "label", null, 0, 1, MUILabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getUILabel_IconURI(), ecorePackage.getEString(), "iconURI", null, 0, 1, MUILabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
initEAttribute(getUILabel_Tooltip(), ecorePackage.getEString(), "tooltip", null, 0, 1, MUILabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getUILabel__GetLocalizedLabel(), ecorePackage.getEString(), "getLocalizedLabel", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
-
- initEOperation(getUILabel__GetLocalizedTooltip(), ecorePackage.getEString(), "getLocalizedTooltip", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getUILabel_LocalizedLabel(), ecorePackage.getEString(), "localizedLabel", "", 0, 1, MUILabel.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
+ initEAttribute(getUILabel_LocalizedTooltip(), ecorePackage.getEString(), "localizedTooltip", "", 0, 1, MUILabel.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
initEClass(genericStackEClass, MGenericStack.class, "GenericStack", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -2368,6 +2498,10 @@ public class UiPackageImpl extends EPackageImpl {
initEClass(snippetContainerEClass, MSnippetContainer.class, "SnippetContainer", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
initEReference(getSnippetContainer_Snippets(), this.getUIElement(), null, "snippets", null, 0, -1, MSnippetContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEClass(localizableEClass, MLocalizable.class, "Localizable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+
+ initEOperation(getLocalizable__UpdateLocalization(), null, "updateLocalization", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+
// Initialize enums and add enum literals
initEEnum(sideValueEEnum, SideValue.class, "SideValue"); //$NON-NLS-1$
addEEnumLiteral(sideValueEEnum, SideValue.TOP);
@@ -2550,12 +2684,12 @@ public class UiPackageImpl extends EPackageImpl {
public static final EAttribute UI_ELEMENT__ACCESSIBILITY_PHRASE = eINSTANCE.getUIElement_AccessibilityPhrase();
/**
- * The meta object literal for the '<em><b>Get Localized Accessibility Phrase</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Accessibility Phrase</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = eINSTANCE.getUIElement__GetLocalizedAccessibilityPhrase();
+ public static final EAttribute UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = eINSTANCE.getUIElement_LocalizedAccessibilityPhrase();
/**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.ui.MUILabel <em>UI Label</em>}' class.
@@ -2592,20 +2726,20 @@ public class UiPackageImpl extends EPackageImpl {
public static final EAttribute UI_LABEL__TOOLTIP = eINSTANCE.getUILabel_Tooltip();
/**
- * The meta object literal for the '<em><b>Get Localized Label</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Label</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation UI_LABEL___GET_LOCALIZED_LABEL = eINSTANCE.getUILabel__GetLocalizedLabel();
+ public static final EAttribute UI_LABEL__LOCALIZED_LABEL = eINSTANCE.getUILabel_LocalizedLabel();
/**
- * The meta object literal for the '<em><b>Get Localized Tooltip</b></em>' operation.
+ * The meta object literal for the '<em><b>Localized Tooltip</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- public static final EOperation UI_LABEL___GET_LOCALIZED_TOOLTIP = eINSTANCE.getUILabel__GetLocalizedTooltip();
+ public static final EAttribute UI_LABEL__LOCALIZED_TOOLTIP = eINSTANCE.getUILabel_LocalizedTooltip();
/**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl <em>Element Container</em>}' class.
@@ -2734,6 +2868,24 @@ public class UiPackageImpl extends EPackageImpl {
public static final EReference SNIPPET_CONTAINER__SNIPPETS = eINSTANCE.getSnippetContainer_Snippets();
/**
+ * The meta object literal for the '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @see org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl#getLocalizable()
+ * @generated
+ */
+ public static final EClass LOCALIZABLE = eINSTANCE.getLocalizable();
+
+ /**
+ * The meta object literal for the '<em><b>Update Localization</b></em>' operation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final EOperation LOCALIZABLE___UPDATE_LOCALIZATION = eINSTANCE.getLocalizable__UpdateLocalization();
+
+ /**
* The meta object literal for the '{@link org.eclipse.e4.ui.model.application.ui.SideValue <em>Side Value</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/ItemImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/ItemImpl.java
index 66700c6..227f183 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/ItemImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/ItemImpl.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.e4.ui.model.application.ui.menu.impl;
-import java.lang.reflect.InvocationTargetException;
import org.eclipse.e4.ui.model.LocalizationHelper;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.impl.UIElementImpl;
@@ -18,7 +17,6 @@ import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl;
import org.eclipse.e4.ui.model.application.ui.menu.ItemType;
import org.eclipse.e4.ui.model.application.ui.menu.MItem;
import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
@@ -32,6 +30,8 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#isEnabled <em>Enabled</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#isSelected <em>Selected</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.ItemImpl#getType <em>Type</em>}</li>
@@ -102,6 +102,26 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The default value of the '{@link #isEnabled() <em>Enabled</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -310,6 +330,19 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, MenuPackageImpl.ITEM__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, MenuPackageImpl.ITEM__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedLabel(this);
}
@@ -336,6 +369,10 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
return getIconURI();
case MenuPackageImpl.ITEM__TOOLTIP:
return getTooltip();
+ case MenuPackageImpl.ITEM__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case MenuPackageImpl.ITEM__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case MenuPackageImpl.ITEM__ENABLED:
return isEnabled();
case MenuPackageImpl.ITEM__SELECTED:
@@ -420,6 +457,10 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case MenuPackageImpl.ITEM__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case MenuPackageImpl.ITEM__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case MenuPackageImpl.ITEM__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case MenuPackageImpl.ITEM__ENABLED:
return enabled != ENABLED_EDEFAULT;
case MenuPackageImpl.ITEM__SELECTED:
@@ -442,6 +483,8 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
case MenuPackageImpl.ITEM__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case MenuPackageImpl.ITEM__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case MenuPackageImpl.ITEM__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case MenuPackageImpl.ITEM__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case MenuPackageImpl.ITEM__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -460,6 +503,8 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
case UiPackageImpl.UI_LABEL__LABEL: return MenuPackageImpl.ITEM__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return MenuPackageImpl.ITEM__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return MenuPackageImpl.ITEM__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return MenuPackageImpl.ITEM__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return MenuPackageImpl.ITEM__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -472,39 +517,6 @@ public abstract class ItemImpl extends UIElementImpl implements MItem {
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return MenuPackageImpl.ITEM___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return MenuPackageImpl.ITEM___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
- switch (operationID) {
- case MenuPackageImpl.ITEM___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case MenuPackageImpl.ITEM___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
- }
- return super.eInvoke(operationID, arguments);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public String toString() {
if (eIsProxy()) return super.toString();
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuElementImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuElementImpl.java
index 7ddfac7..e219797 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuElementImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuElementImpl.java
@@ -31,6 +31,8 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getLabel <em>Label</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getIconURI <em>Icon URI</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getTooltip <em>Tooltip</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getLocalizedLabel <em>Localized Label</em>}</li>
+ * <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getLocalizedTooltip <em>Localized Tooltip</em>}</li>
* <li>{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuElementImpl#getMnemonics <em>Mnemonics</em>}</li>
* </ul>
* </p>
@@ -99,6 +101,26 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
protected String tooltip = TOOLTIP_EDEFAULT;
/**
+ * The default value of the '{@link #getLocalizedLabel() <em>Localized Label</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedLabel()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_LABEL_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
+ * The default value of the '{@link #getLocalizedTooltip() <em>Localized Tooltip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLocalizedTooltip()
+ * @generated
+ * @ordered
+ */
+ protected static final String LOCALIZED_TOOLTIP_EDEFAULT = ""; //$NON-NLS-1$
+
+ /**
* The default value of the '{@link #getMnemonics() <em>Mnemonics</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -236,6 +258,19 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*/
+ public void updateLocalization() {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, MenuPackageImpl.MENU_ELEMENT__LOCALIZED_LABEL, null, getLocalizedLabel()));
+ eNotify(new ENotificationImpl(
+ this, Notification.SET, MenuPackageImpl.MENU_ELEMENT__LOCALIZED_TOOLTIP, null, getLocalizedTooltip()));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ */
public String getLocalizedLabel() {
return LocalizationHelper.getLocalizedLabel(this);
}
@@ -262,6 +297,10 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
return getIconURI();
case MenuPackageImpl.MENU_ELEMENT__TOOLTIP:
return getTooltip();
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_LABEL:
+ return getLocalizedLabel();
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_TOOLTIP:
+ return getLocalizedTooltip();
case MenuPackageImpl.MENU_ELEMENT__MNEMONICS:
return getMnemonics();
}
@@ -330,6 +369,10 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
return ICON_URI_EDEFAULT == null ? iconURI != null : !ICON_URI_EDEFAULT.equals(iconURI);
case MenuPackageImpl.MENU_ELEMENT__TOOLTIP:
return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip);
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_LABEL:
+ return LOCALIZED_LABEL_EDEFAULT == null ? getLocalizedLabel() != null : !LOCALIZED_LABEL_EDEFAULT.equals(getLocalizedLabel());
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_TOOLTIP:
+ return LOCALIZED_TOOLTIP_EDEFAULT == null ? getLocalizedTooltip() != null : !LOCALIZED_TOOLTIP_EDEFAULT.equals(getLocalizedTooltip());
case MenuPackageImpl.MENU_ELEMENT__MNEMONICS:
return MNEMONICS_EDEFAULT == null ? mnemonics != null : !MNEMONICS_EDEFAULT.equals(mnemonics);
}
@@ -348,6 +391,8 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
case MenuPackageImpl.MENU_ELEMENT__LABEL: return UiPackageImpl.UI_LABEL__LABEL;
case MenuPackageImpl.MENU_ELEMENT__ICON_URI: return UiPackageImpl.UI_LABEL__ICON_URI;
case MenuPackageImpl.MENU_ELEMENT__TOOLTIP: return UiPackageImpl.UI_LABEL__TOOLTIP;
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_LABEL: return UiPackageImpl.UI_LABEL__LOCALIZED_LABEL;
+ case MenuPackageImpl.MENU_ELEMENT__LOCALIZED_TOOLTIP: return UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -366,6 +411,8 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
case UiPackageImpl.UI_LABEL__LABEL: return MenuPackageImpl.MENU_ELEMENT__LABEL;
case UiPackageImpl.UI_LABEL__ICON_URI: return MenuPackageImpl.MENU_ELEMENT__ICON_URI;
case UiPackageImpl.UI_LABEL__TOOLTIP: return MenuPackageImpl.MENU_ELEMENT__TOOLTIP;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_LABEL: return MenuPackageImpl.MENU_ELEMENT__LOCALIZED_LABEL;
+ case UiPackageImpl.UI_LABEL__LOCALIZED_TOOLTIP: return MenuPackageImpl.MENU_ELEMENT__LOCALIZED_TOOLTIP;
default: return -1;
}
}
@@ -378,31 +425,10 @@ public abstract class MenuElementImpl extends UIElementImpl implements MMenuElem
* @generated
*/
@Override
- public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) {
- if (baseClass == MUILabel.class) {
- switch (baseOperationID) {
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_LABEL: return MenuPackageImpl.MENU_ELEMENT___GET_LOCALIZED_LABEL;
- case UiPackageImpl.UI_LABEL___GET_LOCALIZED_TOOLTIP: return MenuPackageImpl.MENU_ELEMENT___GET_LOCALIZED_TOOLTIP;
- default: return -1;
- }
- }
- return super.eDerivedOperationID(baseOperationID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case MenuPackageImpl.MENU_ELEMENT___GET_LOCALIZED_MNEMONICS:
return getLocalizedMnemonics();
- case MenuPackageImpl.MENU_ELEMENT___GET_LOCALIZED_LABEL:
- return getLocalizedLabel();
- case MenuPackageImpl.MENU_ELEMENT___GET_LOCALIZED_TOOLTIP:
- return getLocalizedTooltip();
}
return super.eInvoke(operationID, arguments);
}
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuPackageImpl.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuPackageImpl.java
index 170ac67..999f180 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuPackageImpl.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/impl/MenuPackageImpl.java
@@ -251,6 +251,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int ITEM__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -278,67 +287,67 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int ITEM__TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 2;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM__ENABLED = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 3;
+ public static final int ITEM__LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 3;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM__SELECTED = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 4;
+ public static final int ITEM__LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 4;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM__TYPE = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 5;
+ public static final int ITEM__ENABLED = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 5;
/**
- * The number of structural features of the '<em>Item</em>' class.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 6;
+ public static final int ITEM__SELECTED = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 6;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int ITEM__TYPE = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 7;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM___GET_LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
+ public static final int ITEM_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 8;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int ITEM___GET_LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 1;
+ public static final int ITEM___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Item</em>' class.
@@ -347,7 +356,7 @@ public class MenuPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int ITEM_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 2;
+ public static final int ITEM_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.menu.impl.HandledItemImpl <em>Handled Item</em>}' class.
@@ -495,6 +504,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_ITEM__ACCESSIBILITY_PHRASE = ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -522,94 +540,94 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_ITEM__TOOLTIP = ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__ENABLED = ITEM__ENABLED;
+ public static final int HANDLED_ITEM__LOCALIZED_LABEL = ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__SELECTED = ITEM__SELECTED;
+ public static final int HANDLED_ITEM__LOCALIZED_TOOLTIP = ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__TYPE = ITEM__TYPE;
+ public static final int HANDLED_ITEM__ENABLED = ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Command</b></em>' reference.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__COMMAND = ITEM_FEATURE_COUNT + 0;
+ public static final int HANDLED_ITEM__SELECTED = ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Wb Command</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__WB_COMMAND = ITEM_FEATURE_COUNT + 1;
+ public static final int HANDLED_ITEM__TYPE = ITEM__TYPE;
/**
- * The feature id for the '<em><b>Parameters</b></em>' containment reference list.
+ * The feature id for the '<em><b>Command</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM__PARAMETERS = ITEM_FEATURE_COUNT + 2;
+ public static final int HANDLED_ITEM__COMMAND = ITEM_FEATURE_COUNT + 0;
/**
- * The number of structural features of the '<em>Handled Item</em>' class.
+ * The feature id for the '<em><b>Wb Command</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 3;
+ public static final int HANDLED_ITEM__WB_COMMAND = ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Parameters</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int HANDLED_ITEM__PARAMETERS = ITEM_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Handled Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM___GET_LOCALIZED_LABEL = ITEM___GET_LOCALIZED_LABEL;
+ public static final int HANDLED_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_ITEM___GET_LOCALIZED_TOOLTIP = ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int HANDLED_ITEM___UPDATE_LOCALIZATION = ITEM___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Handled Item</em>' class.
@@ -766,6 +784,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int MENU_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -793,49 +820,49 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_ELEMENT__TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 2;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT__MNEMONICS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 3;
+ public static final int MENU_ELEMENT__LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 3;
/**
- * The number of structural features of the '<em>Element</em>' class.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 4;
+ public static final int MENU_ELEMENT__LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 4;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int MENU_ELEMENT__MNEMONICS = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 5;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT___GET_LOCALIZED_LABEL = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
+ public static final int MENU_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 6;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT___GET_LOCALIZED_TOOLTIP = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 1;
+ public static final int MENU_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -844,7 +871,7 @@ public class MenuPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT___GET_LOCALIZED_MNEMONICS = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 2;
+ public static final int MENU_ELEMENT___GET_LOCALIZED_MNEMONICS = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 0;
/**
* The number of operations of the '<em>Element</em>' class.
@@ -853,7 +880,7 @@ public class MenuPackageImpl extends EPackageImpl {
* @generated
* @ordered
*/
- public static final int MENU_ELEMENT_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 3;
+ public static final int MENU_ELEMENT_OPERATION_COUNT = UiPackageImpl.UI_ELEMENT_OPERATION_COUNT + 1;
/**
* The meta object id for the '{@link org.eclipse.e4.ui.model.application.ui.menu.impl.MenuItemImpl <em>Item</em>}' class.
@@ -1001,6 +1028,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_ITEM__ACCESSIBILITY_PHRASE = ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1028,76 +1064,76 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_ITEM__TOOLTIP = ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM__ENABLED = ITEM__ENABLED;
+ public static final int MENU_ITEM__LOCALIZED_LABEL = ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM__SELECTED = ITEM__SELECTED;
+ public static final int MENU_ITEM__LOCALIZED_TOOLTIP = ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM__TYPE = ITEM__TYPE;
+ public static final int MENU_ITEM__ENABLED = ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM__MNEMONICS = ITEM_FEATURE_COUNT + 0;
+ public static final int MENU_ITEM__SELECTED = ITEM__SELECTED;
/**
- * The number of structural features of the '<em>Item</em>' class.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 1;
+ public static final int MENU_ITEM__TYPE = ITEM__TYPE;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int MENU_ITEM__MNEMONICS = ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM___GET_LOCALIZED_LABEL = ITEM___GET_LOCALIZED_LABEL;
+ public static final int MENU_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_ITEM___GET_LOCALIZED_TOOLTIP = ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int MENU_ITEM___UPDATE_LOCALIZATION = ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -1263,6 +1299,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_SEPARATOR__ACCESSIBILITY_PHRASE = MENU_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int MENU_SEPARATOR__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1290,49 +1335,49 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_SEPARATOR__TOOLTIP = MENU_ELEMENT__TOOLTIP;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_SEPARATOR__MNEMONICS = MENU_ELEMENT__MNEMONICS;
+ public static final int MENU_SEPARATOR__LOCALIZED_LABEL = MENU_ELEMENT__LOCALIZED_LABEL;
/**
- * The number of structural features of the '<em>Separator</em>' class.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_SEPARATOR_FEATURE_COUNT = MENU_ELEMENT_FEATURE_COUNT + 0;
+ public static final int MENU_SEPARATOR__LOCALIZED_TOOLTIP = MENU_ELEMENT__LOCALIZED_TOOLTIP;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_SEPARATOR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int MENU_SEPARATOR__MNEMONICS = MENU_ELEMENT__MNEMONICS;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Separator</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_SEPARATOR___GET_LOCALIZED_LABEL = MENU_ELEMENT___GET_LOCALIZED_LABEL;
+ public static final int MENU_SEPARATOR_FEATURE_COUNT = MENU_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_SEPARATOR___GET_LOCALIZED_TOOLTIP = MENU_ELEMENT___GET_LOCALIZED_TOOLTIP;
+ public static final int MENU_SEPARATOR___UPDATE_LOCALIZATION = MENU_ELEMENT___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -1498,6 +1543,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU__ACCESSIBILITY_PHRASE = MENU_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int MENU__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1525,76 +1579,76 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU__TOOLTIP = MENU_ELEMENT__TOOLTIP;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU__MNEMONICS = MENU_ELEMENT__MNEMONICS;
+ public static final int MENU__LOCALIZED_LABEL = MENU_ELEMENT__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU__CHILDREN = MENU_ELEMENT_FEATURE_COUNT + 0;
+ public static final int MENU__LOCALIZED_TOOLTIP = MENU_ELEMENT__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Selected Element</b></em>' reference.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU__SELECTED_ELEMENT = MENU_ELEMENT_FEATURE_COUNT + 1;
+ public static final int MENU__MNEMONICS = MENU_ELEMENT__MNEMONICS;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU__ENABLED = MENU_ELEMENT_FEATURE_COUNT + 2;
+ public static final int MENU__CHILDREN = MENU_ELEMENT_FEATURE_COUNT + 0;
/**
- * The number of structural features of the '<em>Menu</em>' class.
+ * The feature id for the '<em><b>Selected Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_FEATURE_COUNT = MENU_ELEMENT_FEATURE_COUNT + 3;
+ public static final int MENU__SELECTED_ELEMENT = MENU_ELEMENT_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int MENU__ENABLED = MENU_ELEMENT_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Menu</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU___GET_LOCALIZED_LABEL = MENU_ELEMENT___GET_LOCALIZED_LABEL;
+ public static final int MENU_FEATURE_COUNT = MENU_ELEMENT_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU___GET_LOCALIZED_TOOLTIP = MENU_ELEMENT___GET_LOCALIZED_TOOLTIP;
+ public static final int MENU___UPDATE_LOCALIZATION = MENU_ELEMENT___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -1760,6 +1814,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_CONTRIBUTION__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int MENU_CONTRIBUTION__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1805,13 +1868,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int MENU_CONTRIBUTION_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int MENU_CONTRIBUTION___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int MENU_CONTRIBUTION___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Contribution</em>' class.
@@ -1968,6 +2031,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int POPUP_MENU__ACCESSIBILITY_PHRASE = MENU__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int POPUP_MENU__LOCALIZED_ACCESSIBILITY_PHRASE = MENU__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1995,6 +2067,24 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int POPUP_MENU__TOOLTIP = MENU__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int POPUP_MENU__LOCALIZED_LABEL = MENU__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int POPUP_MENU__LOCALIZED_TOOLTIP = MENU__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2067,31 +2157,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int POPUP_MENU_FEATURE_COUNT = MENU_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int POPUP_MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int POPUP_MENU___GET_LOCALIZED_LABEL = MENU___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int POPUP_MENU___GET_LOCALIZED_TOOLTIP = MENU___GET_LOCALIZED_TOOLTIP;
+ public static final int POPUP_MENU___UPDATE_LOCALIZATION = MENU___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -2257,6 +2329,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DIRECT_MENU_ITEM__ACCESSIBILITY_PHRASE = MENU_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DIRECT_MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2284,94 +2365,94 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DIRECT_MENU_ITEM__TOOLTIP = MENU_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
+ public static final int DIRECT_MENU_ITEM__LOCALIZED_LABEL = MENU_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
+ public static final int DIRECT_MENU_ITEM__LOCALIZED_TOOLTIP = MENU_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
+ public static final int DIRECT_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
+ public static final int DIRECT_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__CONTRIBUTION_URI = MENU_ITEM_FEATURE_COUNT + 0;
+ public static final int DIRECT_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
/**
- * The feature id for the '<em><b>Object</b></em>' attribute.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM__OBJECT = MENU_ITEM_FEATURE_COUNT + 1;
+ public static final int DIRECT_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
/**
- * The number of structural features of the '<em>Direct Menu Item</em>' class.
+ * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 2;
+ public static final int DIRECT_MENU_ITEM__CONTRIBUTION_URI = MENU_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Object</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int DIRECT_MENU_ITEM__OBJECT = MENU_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Direct Menu Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM___GET_LOCALIZED_LABEL = MENU_ITEM___GET_LOCALIZED_LABEL;
+ public static final int DIRECT_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_MENU_ITEM___GET_LOCALIZED_TOOLTIP = MENU_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int DIRECT_MENU_ITEM___UPDATE_LOCALIZATION = MENU_ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -2537,6 +2618,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_MENU_ITEM__ACCESSIBILITY_PHRASE = MENU_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2564,6 +2654,24 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_MENU_ITEM__TOOLTIP = MENU_ITEM__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_MENU_ITEM__LOCALIZED_LABEL = MENU_ITEM__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_MENU_ITEM__LOCALIZED_TOOLTIP = MENU_ITEM__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2636,31 +2744,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int HANDLED_MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int HANDLED_MENU_ITEM___GET_LOCALIZED_LABEL = MENU_ITEM___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_MENU_ITEM___GET_LOCALIZED_TOOLTIP = MENU_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int HANDLED_MENU_ITEM___UPDATE_LOCALIZATION = MENU_ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -2826,6 +2916,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_ITEM__ACCESSIBILITY_PHRASE = ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -2853,76 +2952,76 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_ITEM__TOOLTIP = ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM__ENABLED = ITEM__ENABLED;
+ public static final int TOOL_ITEM__LOCALIZED_LABEL = ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM__SELECTED = ITEM__SELECTED;
+ public static final int TOOL_ITEM__LOCALIZED_TOOLTIP = ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM__TYPE = ITEM__TYPE;
+ public static final int TOOL_ITEM__ENABLED = ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Menu</b></em>' containment reference.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM__MENU = ITEM_FEATURE_COUNT + 0;
+ public static final int TOOL_ITEM__SELECTED = ITEM__SELECTED;
/**
- * The number of structural features of the '<em>Tool Item</em>' class.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 1;
+ public static final int TOOL_ITEM__TYPE = ITEM__TYPE;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Menu</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_ITEM__MENU = ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Tool Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM___GET_LOCALIZED_LABEL = ITEM___GET_LOCALIZED_LABEL;
+ public static final int TOOL_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_ITEM___GET_LOCALIZED_TOOLTIP = ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int TOOL_ITEM___UPDATE_LOCALIZATION = ITEM___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Item</em>' class.
@@ -3079,6 +3178,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_BAR__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3106,13 +3214,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_BAR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_BAR___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Bar</em>' class.
@@ -3269,6 +3377,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_ELEMENT__ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_BAR_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Tool Bar Element</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3278,13 +3395,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_ELEMENT_FEATURE_COUNT = UiPackageImpl.UI_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_BAR_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.UI_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_BAR_ELEMENT___UPDATE_LOCALIZATION = UiPackageImpl.UI_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Bar Element</em>' class.
@@ -3441,6 +3558,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_CONTROL__ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_CONTROL__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3468,13 +3594,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_CONTROL_FEATURE_COUNT = TOOL_BAR_ELEMENT_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_CONTROL___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_CONTROL___UPDATE_LOCALIZATION = TOOL_BAR_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Control</em>' class.
@@ -3631,6 +3757,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_TOOL_ITEM__ACCESSIBILITY_PHRASE = TOOL_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3658,6 +3793,24 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_TOOL_ITEM__TOOLTIP = TOOL_ITEM__TOOLTIP;
/**
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_TOOL_ITEM__LOCALIZED_LABEL = TOOL_ITEM__LOCALIZED_LABEL;
+
+ /**
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int HANDLED_TOOL_ITEM__LOCALIZED_TOOLTIP = TOOL_ITEM__LOCALIZED_TOOLTIP;
+
+ /**
* The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3730,31 +3883,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int HANDLED_TOOL_ITEM_FEATURE_COUNT = TOOL_ITEM_FEATURE_COUNT + 3;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int HANDLED_TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
-
- /**
- * The operation id for the '<em>Get Localized Label</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int HANDLED_TOOL_ITEM___GET_LOCALIZED_LABEL = TOOL_ITEM___GET_LOCALIZED_LABEL;
-
- /**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- public static final int HANDLED_TOOL_ITEM___GET_LOCALIZED_TOOLTIP = TOOL_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int HANDLED_TOOL_ITEM___UPDATE_LOCALIZATION = TOOL_ITEM___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Handled Tool Item</em>' class.
@@ -3911,6 +4046,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DIRECT_TOOL_ITEM__ACCESSIBILITY_PHRASE = TOOL_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DIRECT_TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -3938,94 +4082,94 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DIRECT_TOOL_ITEM__TOOLTIP = TOOL_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__ENABLED = TOOL_ITEM__ENABLED;
+ public static final int DIRECT_TOOL_ITEM__LOCALIZED_LABEL = TOOL_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__SELECTED = TOOL_ITEM__SELECTED;
+ public static final int DIRECT_TOOL_ITEM__LOCALIZED_TOOLTIP = TOOL_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__TYPE = TOOL_ITEM__TYPE;
+ public static final int DIRECT_TOOL_ITEM__ENABLED = TOOL_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Menu</b></em>' containment reference.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__MENU = TOOL_ITEM__MENU;
+ public static final int DIRECT_TOOL_ITEM__SELECTED = TOOL_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__CONTRIBUTION_URI = TOOL_ITEM_FEATURE_COUNT + 0;
+ public static final int DIRECT_TOOL_ITEM__TYPE = TOOL_ITEM__TYPE;
/**
- * The feature id for the '<em><b>Object</b></em>' attribute.
+ * The feature id for the '<em><b>Menu</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM__OBJECT = TOOL_ITEM_FEATURE_COUNT + 1;
+ public static final int DIRECT_TOOL_ITEM__MENU = TOOL_ITEM__MENU;
/**
- * The number of structural features of the '<em>Direct Tool Item</em>' class.
+ * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM_FEATURE_COUNT = TOOL_ITEM_FEATURE_COUNT + 2;
+ public static final int DIRECT_TOOL_ITEM__CONTRIBUTION_URI = TOOL_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Object</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int DIRECT_TOOL_ITEM__OBJECT = TOOL_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Direct Tool Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM___GET_LOCALIZED_LABEL = TOOL_ITEM___GET_LOCALIZED_LABEL;
+ public static final int DIRECT_TOOL_ITEM_FEATURE_COUNT = TOOL_ITEM_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DIRECT_TOOL_ITEM___GET_LOCALIZED_TOOLTIP = TOOL_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int DIRECT_TOOL_ITEM___UPDATE_LOCALIZATION = TOOL_ITEM___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Direct Tool Item</em>' class.
@@ -4182,6 +4326,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_SEPARATOR__ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_BAR_SEPARATOR__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The number of structural features of the '<em>Tool Bar Separator</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -4191,13 +4344,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_SEPARATOR_FEATURE_COUNT = TOOL_BAR_ELEMENT_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_BAR_SEPARATOR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR_ELEMENT___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_BAR_SEPARATOR___UPDATE_LOCALIZATION = TOOL_BAR_ELEMENT___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Bar Separator</em>' class.
@@ -4391,6 +4544,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_MENU__ACCESSIBILITY_PHRASE = MENU__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int RENDERED_MENU__LOCALIZED_ACCESSIBILITY_PHRASE = MENU__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -4418,85 +4580,85 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_MENU__TOOLTIP = MENU__TOOLTIP;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU__MNEMONICS = MENU__MNEMONICS;
+ public static final int RENDERED_MENU__LOCALIZED_LABEL = MENU__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU__CHILDREN = MENU__CHILDREN;
+ public static final int RENDERED_MENU__LOCALIZED_TOOLTIP = MENU__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Selected Element</b></em>' reference.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU__SELECTED_ELEMENT = MENU__SELECTED_ELEMENT;
+ public static final int RENDERED_MENU__MNEMONICS = MENU__MNEMONICS;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU__ENABLED = MENU__ENABLED;
+ public static final int RENDERED_MENU__CHILDREN = MENU__CHILDREN;
/**
- * The feature id for the '<em><b>Contribution Manager</b></em>' attribute.
+ * The feature id for the '<em><b>Selected Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU__CONTRIBUTION_MANAGER = MENU_FEATURE_COUNT + 0;
+ public static final int RENDERED_MENU__SELECTED_ELEMENT = MENU__SELECTED_ELEMENT;
/**
- * The number of structural features of the '<em>Rendered Menu</em>' class.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_FEATURE_COUNT = MENU_FEATURE_COUNT + 1;
+ public static final int RENDERED_MENU__ENABLED = MENU__ENABLED;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Contribution Manager</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int RENDERED_MENU__CONTRIBUTION_MANAGER = MENU_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Rendered Menu</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU___GET_LOCALIZED_LABEL = MENU___GET_LOCALIZED_LABEL;
+ public static final int RENDERED_MENU_FEATURE_COUNT = MENU_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU___GET_LOCALIZED_TOOLTIP = MENU___GET_LOCALIZED_TOOLTIP;
+ public static final int RENDERED_MENU___UPDATE_LOCALIZATION = MENU___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -4662,6 +4824,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_TOOL_BAR__ACCESSIBILITY_PHRASE = TOOL_BAR__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int RENDERED_TOOL_BAR__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -4698,13 +4869,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_TOOL_BAR_FEATURE_COUNT = TOOL_BAR_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_TOOL_BAR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_BAR___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int RENDERED_TOOL_BAR___UPDATE_LOCALIZATION = TOOL_BAR___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Rendered Tool Bar</em>' class.
@@ -4861,6 +5032,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_CONTRIBUTION__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TOOL_BAR_CONTRIBUTION__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -4906,13 +5086,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TOOL_BAR_CONTRIBUTION_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TOOL_BAR_CONTRIBUTION___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TOOL_BAR_CONTRIBUTION___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Tool Bar Contribution</em>' class.
@@ -5106,6 +5286,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TRIM_CONTRIBUTION__ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int TRIM_CONTRIBUTION__LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -5151,13 +5340,13 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int TRIM_CONTRIBUTION_FEATURE_COUNT = UiPackageImpl.ELEMENT_CONTAINER_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int TRIM_CONTRIBUTION___GET_LOCALIZED_ACCESSIBILITY_PHRASE = UiPackageImpl.ELEMENT_CONTAINER___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int TRIM_CONTRIBUTION___UPDATE_LOCALIZATION = UiPackageImpl.ELEMENT_CONTAINER___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Trim Contribution</em>' class.
@@ -5351,6 +5540,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_MENU_ITEM__ACCESSIBILITY_PHRASE = MENU_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int RENDERED_MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -5378,85 +5576,85 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int RENDERED_MENU_ITEM__TOOLTIP = MENU_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
+ public static final int RENDERED_MENU_ITEM__LOCALIZED_LABEL = MENU_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
+ public static final int RENDERED_MENU_ITEM__LOCALIZED_TOOLTIP = MENU_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
+ public static final int RENDERED_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
+ public static final int RENDERED_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Contribution Item</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM__CONTRIBUTION_ITEM = MENU_ITEM_FEATURE_COUNT + 0;
+ public static final int RENDERED_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
/**
- * The number of structural features of the '<em>Rendered Menu Item</em>' class.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
+ public static final int RENDERED_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Contribution Item</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int RENDERED_MENU_ITEM__CONTRIBUTION_ITEM = MENU_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Rendered Menu Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM___GET_LOCALIZED_LABEL = MENU_ITEM___GET_LOCALIZED_LABEL;
+ public static final int RENDERED_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int RENDERED_MENU_ITEM___GET_LOCALIZED_TOOLTIP = MENU_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int RENDERED_MENU_ITEM___UPDATE_LOCALIZATION = MENU_ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -5622,6 +5820,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_TOOL_ITEM__ACCESSIBILITY_PHRASE = TOOL_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int OPAQUE_TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -5649,85 +5856,85 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_TOOL_ITEM__TOOLTIP = TOOL_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM__ENABLED = TOOL_ITEM__ENABLED;
+ public static final int OPAQUE_TOOL_ITEM__LOCALIZED_LABEL = TOOL_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM__SELECTED = TOOL_ITEM__SELECTED;
+ public static final int OPAQUE_TOOL_ITEM__LOCALIZED_TOOLTIP = TOOL_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM__TYPE = TOOL_ITEM__TYPE;
+ public static final int OPAQUE_TOOL_ITEM__ENABLED = TOOL_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Menu</b></em>' containment reference.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM__MENU = TOOL_ITEM__MENU;
+ public static final int OPAQUE_TOOL_ITEM__SELECTED = TOOL_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM__OPAQUE_ITEM = TOOL_ITEM_FEATURE_COUNT + 0;
+ public static final int OPAQUE_TOOL_ITEM__TYPE = TOOL_ITEM__TYPE;
/**
- * The number of structural features of the '<em>Opaque Tool Item</em>' class.
+ * The feature id for the '<em><b>Menu</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM_FEATURE_COUNT = TOOL_ITEM_FEATURE_COUNT + 1;
+ public static final int OPAQUE_TOOL_ITEM__MENU = TOOL_ITEM__MENU;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = TOOL_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int OPAQUE_TOOL_ITEM__OPAQUE_ITEM = TOOL_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Opaque Tool Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM___GET_LOCALIZED_LABEL = TOOL_ITEM___GET_LOCALIZED_LABEL;
+ public static final int OPAQUE_TOOL_ITEM_FEATURE_COUNT = TOOL_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_TOOL_ITEM___GET_LOCALIZED_TOOLTIP = TOOL_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int OPAQUE_TOOL_ITEM___UPDATE_LOCALIZATION = TOOL_ITEM___UPDATE_LOCALIZATION;
/**
* The number of operations of the '<em>Opaque Tool Item</em>' class.
@@ -5884,6 +6091,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU_ITEM__ACCESSIBILITY_PHRASE = MENU_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int OPAQUE_MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -5911,85 +6127,85 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU_ITEM__TOOLTIP = MENU_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
+ public static final int OPAQUE_MENU_ITEM__LOCALIZED_LABEL = MENU_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
+ public static final int OPAQUE_MENU_ITEM__LOCALIZED_TOOLTIP = MENU_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
+ public static final int OPAQUE_MENU_ITEM__ENABLED = MENU_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
+ public static final int OPAQUE_MENU_ITEM__SELECTED = MENU_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM__OPAQUE_ITEM = MENU_ITEM_FEATURE_COUNT + 0;
+ public static final int OPAQUE_MENU_ITEM__TYPE = MENU_ITEM__TYPE;
/**
- * The number of structural features of the '<em>Opaque Menu Item</em>' class.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
+ public static final int OPAQUE_MENU_ITEM__MNEMONICS = MENU_ITEM__MNEMONICS;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int OPAQUE_MENU_ITEM__OPAQUE_ITEM = MENU_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Opaque Menu Item</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM___GET_LOCALIZED_LABEL = MENU_ITEM___GET_LOCALIZED_LABEL;
+ public static final int OPAQUE_MENU_ITEM_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_ITEM___GET_LOCALIZED_TOOLTIP = MENU_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int OPAQUE_MENU_ITEM___UPDATE_LOCALIZATION = MENU_ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -6155,6 +6371,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU_SEPARATOR__ACCESSIBILITY_PHRASE = MENU_SEPARATOR__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int OPAQUE_MENU_SEPARATOR__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_SEPARATOR__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -6182,58 +6407,58 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU_SEPARATOR__TOOLTIP = MENU_SEPARATOR__TOOLTIP;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR__MNEMONICS = MENU_SEPARATOR__MNEMONICS;
+ public static final int OPAQUE_MENU_SEPARATOR__LOCALIZED_LABEL = MENU_SEPARATOR__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR__OPAQUE_ITEM = MENU_SEPARATOR_FEATURE_COUNT + 0;
+ public static final int OPAQUE_MENU_SEPARATOR__LOCALIZED_TOOLTIP = MENU_SEPARATOR__LOCALIZED_TOOLTIP;
/**
- * The number of structural features of the '<em>Opaque Menu Separator</em>' class.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR_FEATURE_COUNT = MENU_SEPARATOR_FEATURE_COUNT + 1;
+ public static final int OPAQUE_MENU_SEPARATOR__MNEMONICS = MENU_SEPARATOR__MNEMONICS;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Opaque Item</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_SEPARATOR___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int OPAQUE_MENU_SEPARATOR__OPAQUE_ITEM = MENU_SEPARATOR_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Opaque Menu Separator</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR___GET_LOCALIZED_LABEL = MENU_SEPARATOR___GET_LOCALIZED_LABEL;
+ public static final int OPAQUE_MENU_SEPARATOR_FEATURE_COUNT = MENU_SEPARATOR_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_SEPARATOR___GET_LOCALIZED_TOOLTIP = MENU_SEPARATOR___GET_LOCALIZED_TOOLTIP;
+ public static final int OPAQUE_MENU_SEPARATOR___UPDATE_LOCALIZATION = MENU_SEPARATOR___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -6399,6 +6624,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU__ACCESSIBILITY_PHRASE = MENU__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int OPAQUE_MENU__LOCALIZED_ACCESSIBILITY_PHRASE = MENU__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -6426,76 +6660,76 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int OPAQUE_MENU__TOOLTIP = MENU__TOOLTIP;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU__MNEMONICS = MENU__MNEMONICS;
+ public static final int OPAQUE_MENU__LOCALIZED_LABEL = MENU__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU__CHILDREN = MENU__CHILDREN;
+ public static final int OPAQUE_MENU__LOCALIZED_TOOLTIP = MENU__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Selected Element</b></em>' reference.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU__SELECTED_ELEMENT = MENU__SELECTED_ELEMENT;
+ public static final int OPAQUE_MENU__MNEMONICS = MENU__MNEMONICS;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Children</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU__ENABLED = MENU__ENABLED;
+ public static final int OPAQUE_MENU__CHILDREN = MENU__CHILDREN;
/**
- * The number of structural features of the '<em>Opaque Menu</em>' class.
+ * The feature id for the '<em><b>Selected Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU_FEATURE_COUNT = MENU_FEATURE_COUNT + 0;
+ public static final int OPAQUE_MENU__SELECTED_ELEMENT = MENU__SELECTED_ELEMENT;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int OPAQUE_MENU__ENABLED = MENU__ENABLED;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Opaque Menu</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU___GET_LOCALIZED_LABEL = MENU___GET_LOCALIZED_LABEL;
+ public static final int OPAQUE_MENU_FEATURE_COUNT = MENU_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int OPAQUE_MENU___GET_LOCALIZED_TOOLTIP = MENU___GET_LOCALIZED_TOOLTIP;
+ public static final int OPAQUE_MENU___UPDATE_LOCALIZATION = MENU___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
@@ -6661,6 +6895,15 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DYNAMIC_MENU_CONTRIBUTION__ACCESSIBILITY_PHRASE = MENU_ITEM__ACCESSIBILITY_PHRASE;
/**
+ * The feature id for the '<em><b>Localized Accessibility Phrase</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int DYNAMIC_MENU_CONTRIBUTION__LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM__LOCALIZED_ACCESSIBILITY_PHRASE;
+
+ /**
* The feature id for the '<em><b>Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -6688,94 +6931,94 @@ public class MenuPackageImpl extends EPackageImpl {
public static final int DYNAMIC_MENU_CONTRIBUTION__TOOLTIP = MENU_ITEM__TOOLTIP;
/**
- * The feature id for the '<em><b>Enabled</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Label</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__ENABLED = MENU_ITEM__ENABLED;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__LOCALIZED_LABEL = MENU_ITEM__LOCALIZED_LABEL;
/**
- * The feature id for the '<em><b>Selected</b></em>' attribute.
+ * The feature id for the '<em><b>Localized Tooltip</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__SELECTED = MENU_ITEM__SELECTED;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__LOCALIZED_TOOLTIP = MENU_ITEM__LOCALIZED_TOOLTIP;
/**
- * The feature id for the '<em><b>Type</b></em>' attribute.
+ * The feature id for the '<em><b>Enabled</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__TYPE = MENU_ITEM__TYPE;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__ENABLED = MENU_ITEM__ENABLED;
/**
- * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
+ * The feature id for the '<em><b>Selected</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__MNEMONICS = MENU_ITEM__MNEMONICS;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__SELECTED = MENU_ITEM__SELECTED;
/**
- * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
+ * The feature id for the '<em><b>Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__CONTRIBUTION_URI = MENU_ITEM_FEATURE_COUNT + 0;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__TYPE = MENU_ITEM__TYPE;
/**
- * The feature id for the '<em><b>Object</b></em>' attribute.
+ * The feature id for the '<em><b>Mnemonics</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION__OBJECT = MENU_ITEM_FEATURE_COUNT + 1;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__MNEMONICS = MENU_ITEM__MNEMONICS;
/**
- * The number of structural features of the '<em>Dynamic Menu Contribution</em>' class.
+ * The feature id for the '<em><b>Contribution URI</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 2;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__CONTRIBUTION_URI = MENU_ITEM_FEATURE_COUNT + 0;
/**
- * The operation id for the '<em>Get Localized Accessibility Phrase</em>' operation.
+ * The feature id for the '<em><b>Object</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION___GET_LOCALIZED_ACCESSIBILITY_PHRASE = MENU_ITEM___GET_LOCALIZED_ACCESSIBILITY_PHRASE;
+ public static final int DYNAMIC_MENU_CONTRIBUTION__OBJECT = MENU_ITEM_FEATURE_COUNT + 1;
/**
- * The operation id for the '<em>Get Localized Label</em>' operation.
+ * The number of structural features of the '<em>Dynamic Menu Contribution</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION___GET_LOCALIZED_LABEL = MENU_ITEM___GET_LOCALIZED_LABEL;
+ public static final int DYNAMIC_MENU_CONTRIBUTION_FEATURE_COUNT = MENU_ITEM_FEATURE_COUNT + 2;
/**
- * The operation id for the '<em>Get Localized Tooltip</em>' operation.
+ * The operation id for the '<em>Update Localization</em>' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- public static final int DYNAMIC_MENU_CONTRIBUTION___GET_LOCALIZED_TOOLTIP = MENU_ITEM___GET_LOCALIZED_TOOLTIP;
+ public static final int DYNAMIC_MENU_CONTRIBUTION___UPDATE_LOCALIZATION = MENU_ITEM___UPDATE_LOCALIZATION;
/**
* The operation id for the '<em>Get Localized Mnemonics</em>' operation.
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuAdapterFactory.java
index 0798e0f..47a61c6 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuAdapterFactory.java
@@ -14,6 +14,7 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
import org.eclipse.e4.ui.model.application.MContribution;
import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.basic.MTrimElement;
@@ -234,6 +235,10 @@ public class MenuAdapterFactory extends AdapterFactoryImpl {
return createApplicationElementAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseUIElement(MUIElement object) {
return createUIElementAdapter();
}
@@ -726,6 +731,20 @@ public class MenuAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MUILabel <em>UI Label</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuSwitch.java
index 999cf39..e734848 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/menu/util/MenuSwitch.java
@@ -14,6 +14,7 @@ import org.eclipse.e4.ui.model.application.MApplicationElement;
import org.eclipse.e4.ui.model.application.MContribution;
import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.MUILabel;
import org.eclipse.e4.ui.model.application.ui.basic.MTrimElement;
@@ -115,6 +116,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(item);
if (result == null) result = caseUILabel(item);
if (result == null) result = caseApplicationElement(item);
+ if (result == null) result = caseLocalizable(item);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -125,6 +127,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(handledItem);
if (result == null) result = caseUILabel(handledItem);
if (result == null) result = caseApplicationElement(handledItem);
+ if (result == null) result = caseLocalizable(handledItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -134,6 +137,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(menuElement);
if (result == null) result = caseUILabel(menuElement);
if (result == null) result = caseApplicationElement(menuElement);
+ if (result == null) result = caseLocalizable(menuElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -145,6 +149,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(menuItem);
if (result == null) result = caseUILabel(menuItem);
if (result == null) result = caseApplicationElement(menuItem);
+ if (result == null) result = caseLocalizable(menuItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -155,6 +160,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(menuSeparator);
if (result == null) result = caseUILabel(menuSeparator);
if (result == null) result = caseApplicationElement(menuSeparator);
+ if (result == null) result = caseLocalizable(menuSeparator);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -166,6 +172,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(menu);
if (result == null) result = caseUILabel(menu);
if (result == null) result = caseApplicationElement(menu);
+ if (result == null) result = caseLocalizable(menu);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -175,6 +182,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(menuContribution);
if (result == null) result = caseUIElement(menuContribution);
if (result == null) result = caseApplicationElement(menuContribution);
+ if (result == null) result = caseLocalizable(menuContribution);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -188,6 +196,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(popupMenu);
if (result == null) result = caseUILabel(popupMenu);
if (result == null) result = caseApplicationElement(popupMenu);
+ if (result == null) result = caseLocalizable(popupMenu);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -201,6 +210,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(directMenuItem);
if (result == null) result = caseUILabel(directMenuItem);
if (result == null) result = caseApplicationElement(directMenuItem);
+ if (result == null) result = caseLocalizable(directMenuItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -214,6 +224,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(handledMenuItem);
if (result == null) result = caseUILabel(handledMenuItem);
if (result == null) result = caseApplicationElement(handledMenuItem);
+ if (result == null) result = caseLocalizable(handledMenuItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -225,6 +236,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(toolItem);
if (result == null) result = caseUILabel(toolItem);
if (result == null) result = caseApplicationElement(toolItem);
+ if (result == null) result = caseLocalizable(toolItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -235,6 +247,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseTrimElement(toolBar);
if (result == null) result = caseUIElement(toolBar);
if (result == null) result = caseApplicationElement(toolBar);
+ if (result == null) result = caseLocalizable(toolBar);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -243,6 +256,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
T1 result = caseToolBarElement(toolBarElement);
if (result == null) result = caseUIElement(toolBarElement);
if (result == null) result = caseApplicationElement(toolBarElement);
+ if (result == null) result = caseLocalizable(toolBarElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -254,6 +268,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseTrimElement(toolControl);
if (result == null) result = caseUIElement(toolControl);
if (result == null) result = caseApplicationElement(toolControl);
+ if (result == null) result = caseLocalizable(toolControl);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -267,6 +282,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(handledToolItem);
if (result == null) result = caseUILabel(handledToolItem);
if (result == null) result = caseApplicationElement(handledToolItem);
+ if (result == null) result = caseLocalizable(handledToolItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -280,6 +296,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(directToolItem);
if (result == null) result = caseUILabel(directToolItem);
if (result == null) result = caseApplicationElement(directToolItem);
+ if (result == null) result = caseLocalizable(directToolItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -289,6 +306,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseToolBarElement(toolBarSeparator);
if (result == null) result = caseUIElement(toolBarSeparator);
if (result == null) result = caseApplicationElement(toolBarSeparator);
+ if (result == null) result = caseLocalizable(toolBarSeparator);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -307,6 +325,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(renderedMenu);
if (result == null) result = caseUILabel(renderedMenu);
if (result == null) result = caseApplicationElement(renderedMenu);
+ if (result == null) result = caseLocalizable(renderedMenu);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -318,6 +337,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseTrimElement(renderedToolBar);
if (result == null) result = caseUIElement(renderedToolBar);
if (result == null) result = caseApplicationElement(renderedToolBar);
+ if (result == null) result = caseLocalizable(renderedToolBar);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -327,6 +347,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(toolBarContribution);
if (result == null) result = caseUIElement(toolBarContribution);
if (result == null) result = caseApplicationElement(toolBarContribution);
+ if (result == null) result = caseLocalizable(toolBarContribution);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -342,6 +363,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(trimContribution);
if (result == null) result = caseUIElement(trimContribution);
if (result == null) result = caseApplicationElement(trimContribution);
+ if (result == null) result = caseLocalizable(trimContribution);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -360,6 +382,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(renderedMenuItem);
if (result == null) result = caseUILabel(renderedMenuItem);
if (result == null) result = caseApplicationElement(renderedMenuItem);
+ if (result == null) result = caseLocalizable(renderedMenuItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -372,6 +395,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(opaqueToolItem);
if (result == null) result = caseUILabel(opaqueToolItem);
if (result == null) result = caseApplicationElement(opaqueToolItem);
+ if (result == null) result = caseLocalizable(opaqueToolItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -384,6 +408,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(opaqueMenuItem);
if (result == null) result = caseUILabel(opaqueMenuItem);
if (result == null) result = caseApplicationElement(opaqueMenuItem);
+ if (result == null) result = caseLocalizable(opaqueMenuItem);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -395,6 +420,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(opaqueMenuSeparator);
if (result == null) result = caseUILabel(opaqueMenuSeparator);
if (result == null) result = caseApplicationElement(opaqueMenuSeparator);
+ if (result == null) result = caseLocalizable(opaqueMenuSeparator);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -407,6 +433,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(opaqueMenu);
if (result == null) result = caseUILabel(opaqueMenu);
if (result == null) result = caseApplicationElement(opaqueMenu);
+ if (result == null) result = caseLocalizable(opaqueMenu);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -420,6 +447,7 @@ public class MenuSwitch<T1> extends Switch<T1> {
if (result == null) result = caseUIElement(dynamicMenuContribution);
if (result == null) result = caseUILabel(dynamicMenuContribution);
if (result == null) result = caseApplicationElement(dynamicMenuContribution);
+ if (result == null) result = caseLocalizable(dynamicMenuContribution);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -908,6 +936,21 @@ public class MenuSwitch<T1> extends Switch<T1> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T1 caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>UI Label</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiAdapterFactory.java
index d1620b0..6705cf2 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiAdapterFactory.java
@@ -123,6 +123,10 @@ public class UiAdapterFactory extends AdapterFactoryImpl {
return createSnippetContainerAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseApplicationElement(MApplicationElement object) {
return createApplicationElementAdapter();
}
@@ -315,6 +319,20 @@ public class UiAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.MApplicationElement <em>Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiSwitch.java
index a889daa..ceb4417 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/util/UiSwitch.java
@@ -96,6 +96,7 @@ public class UiSwitch<T1> extends Switch<T1> {
MUIElement uiElement = (MUIElement)theEObject;
T1 result = caseUIElement(uiElement);
if (result == null) result = caseApplicationElement(uiElement);
+ if (result == null) result = caseLocalizable(uiElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -104,12 +105,14 @@ public class UiSwitch<T1> extends Switch<T1> {
T1 result = caseElementContainer(elementContainer);
if (result == null) result = caseUIElement(elementContainer);
if (result == null) result = caseApplicationElement(elementContainer);
+ if (result == null) result = caseLocalizable(elementContainer);
if (result == null) result = defaultCase(theEObject);
return result;
}
case UiPackageImpl.UI_LABEL: {
MUILabel uiLabel = (MUILabel)theEObject;
T1 result = caseUILabel(uiLabel);
+ if (result == null) result = caseLocalizable(uiLabel);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -119,6 +122,7 @@ public class UiSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(genericStack);
if (result == null) result = caseUIElement(genericStack);
if (result == null) result = caseApplicationElement(genericStack);
+ if (result == null) result = caseLocalizable(genericStack);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -128,6 +132,7 @@ public class UiSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(genericTile);
if (result == null) result = caseUIElement(genericTile);
if (result == null) result = caseApplicationElement(genericTile);
+ if (result == null) result = caseLocalizable(genericTile);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -137,6 +142,7 @@ public class UiSwitch<T1> extends Switch<T1> {
if (result == null) result = caseElementContainer(genericTrimContainer);
if (result == null) result = caseUIElement(genericTrimContainer);
if (result == null) result = caseApplicationElement(genericTrimContainer);
+ if (result == null) result = caseLocalizable(genericTrimContainer);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -161,6 +167,12 @@ public class UiSwitch<T1> extends Switch<T1> {
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case UiPackageImpl.LOCALIZABLE: {
+ MLocalizable localizable = (MLocalizable)theEObject;
+ T1 result = caseLocalizable(localizable);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
default: return defaultCase(theEObject);
}
}
@@ -346,6 +358,21 @@ public class UiSwitch<T1> extends Switch<T1> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T1 caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationAdapterFactory.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationAdapterFactory.java
index 1971e96..14ff402 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationAdapterFactory.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationAdapterFactory.java
@@ -19,6 +19,7 @@ import org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorConta
import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuContributions;
@@ -110,6 +111,10 @@ public class ApplicationAdapterFactory extends AdapterFactoryImpl {
return createStringToObjectMapAdapter();
}
@Override
+ public Adapter caseLocalizable(MLocalizable object) {
+ return createLocalizableAdapter();
+ }
+ @Override
public Adapter caseUIElement(MUIElement object) {
return createUIElementAdapter();
}
@@ -258,6 +263,20 @@ public class ApplicationAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MLocalizable <em>Localizable</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.e4.ui.model.application.ui.MLocalizable
+ * @generated
+ */
+ public Adapter createLocalizableAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.e4.ui.model.application.ui.MUIElement <em>UI Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
diff --git a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationSwitch.java b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationSwitch.java
index 789da41..e11cfa3 100644
--- a/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationSwitch.java
+++ b/bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/util/ApplicationSwitch.java
@@ -19,6 +19,7 @@ import org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorConta
import org.eclipse.e4.ui.model.application.impl.ApplicationPackageImpl;
import org.eclipse.e4.ui.model.application.ui.MContext;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
import org.eclipse.e4.ui.model.application.ui.MSnippetContainer;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuContributions;
@@ -106,6 +107,7 @@ public class ApplicationSwitch<T1> extends Switch<T1> {
if (result == null) result = caseSnippetContainer(application);
if (result == null) result = caseUIElement(application);
if (result == null) result = caseApplicationElement(application);
+ if (result == null) result = caseLocalizable(application);
if (result == null) result = defaultCase(theEObject);
return result;
}
@@ -231,6 +233,21 @@ public class ApplicationSwitch<T1> extends Switch<T1> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Localizable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T1 caseLocalizable(MLocalizable object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>UI Element</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/AreaRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/AreaRenderer.java
index 39d951a..f1e681a 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/AreaRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/AreaRenderer.java
@@ -58,11 +58,13 @@ public class AreaRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
areaItem.setText(areaModel.getLocalizedLabel());
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
areaItem.setImage(getImage(areaModel));
- } else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
+ } else if (UIEvents.UILabel.TOOLTIP.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_TOOLTIP.equals(attName)) {
areaItem.setToolTipText(areaModel.getLocalizedTooltip());
}
}
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuItemRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuItemRenderer.java
index 9a6661f..343f6ad 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuItemRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuItemRenderer.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.e4.ui.workbench.renderers.swt;
-import org.eclipse.e4.core.commands.ExpressionContext;
-
import java.util.HashMap;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@@ -20,6 +18,7 @@ import org.eclipse.core.expressions.EvaluationResult;
import org.eclipse.core.expressions.Expression;
import org.eclipse.core.internal.expressions.ReferenceExpression;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.e4.core.commands.ExpressionContext;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.contexts.RunAndTrack;
import org.eclipse.e4.core.services.events.IEventBroker;
@@ -98,7 +97,8 @@ public abstract class MenuItemRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
setItemText(itemModel, menuItem);
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
menuItem.setImage(getImage(itemModel));
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java
index ef26270..3d2ad2e 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuManagerRenderer.java
@@ -117,7 +117,8 @@ public class MenuManagerRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
ici.update();
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
ici.update();
@@ -137,7 +138,8 @@ public class MenuManagerRenderer extends SWTPartRenderer {
MenuManager manager = getManager(model);
if ((manager == null))
return;
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
manager.setMenuText(getText(model));
manager.update(IAction.TEXT);
}
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuRenderer.java
index c0bef6d..27ab9ca 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/MenuRenderer.java
@@ -10,11 +10,10 @@
*******************************************************************************/
package org.eclipse.e4.ui.workbench.renderers.swt;
-import org.eclipse.e4.core.commands.ExpressionContext;
-
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
+import org.eclipse.e4.core.commands.ExpressionContext;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.contexts.RunAndTrack;
import org.eclipse.e4.ui.internal.workbench.ContributionsAnalyzer;
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
index a064117..47cdf12 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
@@ -524,12 +524,14 @@ public class StackRenderer extends LazyStackRenderer {
protected void updateTab(CTabItem cti, MPart part, String attName,
Object newValue) {
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
String newName = (String) newValue;
cti.setText(getLabel(part, newName));
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
cti.setImage(getImage(part));
- } else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
+ } else if (UIEvents.UILabel.TOOLTIP.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_TOOLTIP.equals(attName)) {
String newTTip = (String) newValue;
cti.setToolTipText(getToolTip(newTTip));
} else if (UIEvents.Dirtyable.DIRTY.equals(attName)) {
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
index 2919359..9ace404 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarManagerRenderer.java
@@ -114,11 +114,13 @@ public class ToolBarManagerRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
ici.update();
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
ici.update();
- } else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
+ } else if (UIEvents.UILabel.TOOLTIP.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_TOOLTIP.equals(attName)) {
ici.update();
}
}
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolItemRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolItemRenderer.java
index 22cc9b9..37ddc57 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolItemRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolItemRenderer.java
@@ -94,11 +94,13 @@ public class ToolItemRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
setItemText(itemModel, toolItem);
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
toolItem.setImage(getImage(itemModel));
- } else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
+ } else if (UIEvents.UILabel.TOOLTIP.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_TOOLTIP.equals(attName)) {
toolItem.setToolTipText(getToolTipText(itemModel));
toolItem.setImage(getImage(itemModel));
}
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
index 9dea7fe..835a7cb 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
@@ -217,13 +217,15 @@ public class WBWRenderer extends SWTPartRenderer {
String attName = (String) event
.getProperty(UIEvents.EventTags.ATTNAME);
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ if (UIEvents.UILabel.LABEL.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_LABEL.equals(attName)) {
String newTitle = (String) event
.getProperty(UIEvents.EventTags.NEW_VALUE);
theShell.setText(newTitle);
} else if (UIEvents.UILabel.ICONURI.equals(attName)) {
theShell.setImage(getImage(windowModel));
- } else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
+ } else if (UIEvents.UILabel.TOOLTIP.equals(attName)
+ || UIEvents.UILabel.LOCALIZED_TOOLTIP.equals(attName)) {
String newTTip = (String) event
.getProperty(UIEvents.EventTags.NEW_VALUE);
theShell.setToolTipText(newTTip);
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
index cc5dc3b..61904f5 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
@@ -456,13 +456,6 @@ public class E4Application implements IApplication {
serviceContext.set(IExceptionHandler.class, exceptionHandler);
serviceContext.set(IExtensionRegistry.class, registry);
- // translation
- String locale = Locale.getDefault().toString();
- serviceContext.set(TranslationService.LOCALE, locale);
- TranslationService bundleTranslationProvider = TranslationProviderFactory
- .bundleTranslationService(serviceContext);
- serviceContext.set(TranslationService.class, bundleTranslationProvider);
-
serviceContext.set(Adapter.class, ContextInjectionFactory.make(
EclipseAdapter.class, serviceContext));
@@ -516,6 +509,13 @@ public class E4Application implements IApplication {
}
});
+ // translation
+ String locale = Locale.getDefault().toString();
+ appContext.set(TranslationService.LOCALE, locale);
+ TranslationService bundleTranslationProvider = TranslationProviderFactory
+ .bundleTranslationService(appContext);
+ appContext.set(TranslationService.class, bundleTranslationProvider);
+
return appContext;
}
diff --git a/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
index 82017ac..60c5721 100644
--- a/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF
@@ -34,7 +34,8 @@ Export-Package: org.eclipse.e4.ui.internal.workbench;
org.eclipse.e4.ui.workbench.lifecycle;x-friends:="org.eclipse.e4.ui.workbench.swt",
org.eclipse.e4.ui.workbench.modeling
Bundle-Activator: org.eclipse.e4.ui.internal.workbench.Activator
-Service-Component: OSGI-INF/progress.xml, OSGI-INF/partService.xml
+Service-Component: OSGI-INF/progress.xml, OSGI-INF/partService.xml,
+ OSGI-INF/localechangeservice.xml
Import-Package: com.ibm.icu.text;version="3.8.1",
javax.annotation;version="1.0.0",
javax.inject;version="1.0.0"
diff --git a/bundles/org.eclipse.e4.ui.workbench/OSGI-INF/localechangeservice.xml b/bundles/org.eclipse.e4.ui.workbench/OSGI-INF/localechangeservice.xml
new file mode 100644
index 0000000..66fce50e
--- /dev/null
+++ b/bundles/org.eclipse.e4.ui.workbench/OSGI-INF/localechangeservice.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="ILocaleChangeService context function">
+ <implementation class="org.eclipse.e4.ui.internal.LocaleChangeServiceContextFunction"/>
+ <property name="service.context.key" type="String" value="org.eclipse.e4.core.services.nls.ILocaleChangeService"/>
+ <service>
+ <provide interface="org.eclipse.e4.core.contexts.IContextFunction"/>
+ </service>
+</scr:component>
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceContextFunction.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceContextFunction.java
new file mode 100644
index 0000000..4faeddf
--- /dev/null
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceContextFunction.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Dirk Fauth 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:
+ * Dirk Fauth <dirk.fauth@googlemail.com> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.e4.ui.internal;
+
+import org.eclipse.e4.core.services.nls.ILocaleChangeService;
+
+import org.eclipse.e4.core.contexts.ContextFunction;
+import org.eclipse.e4.core.contexts.ContextInjectionFactory;
+import org.eclipse.e4.core.contexts.IEclipseContext;
+import org.eclipse.e4.ui.model.application.MApplication;
+
+/**
+ * Context function to provide the LocaleChangeServiceImpl to the application context.
+ */
+public class LocaleChangeServiceContextFunction extends ContextFunction {
+
+ @Override
+ public Object compute(IEclipseContext context, String contextKey) {
+ ILocaleChangeService lcService = ContextInjectionFactory.make(
+ LocaleChangeServiceImpl.class, context);
+
+ // add the new object to the application context
+ MApplication application = context.get(MApplication.class);
+ IEclipseContext ctx = application.getContext();
+ ctx.set(ILocaleChangeService.class, lcService);
+ return lcService;
+ }
+}
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceImpl.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceImpl.java
new file mode 100644
index 0000000..28fd456
--- /dev/null
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceImpl.java
@@ -0,0 +1,123 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Dirk Fauth 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:
+ * Dirk Fauth <dirk.fauth@googlemail.com> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.e4.ui.internal;
+
+import java.util.List;
+import java.util.Locale;
+import javax.inject.Inject;
+import org.eclipse.e4.core.contexts.IEclipseContext;
+import org.eclipse.e4.core.internal.services.ResourceBundleHelper;
+import org.eclipse.e4.core.internal.services.ServicesActivator;
+import org.eclipse.e4.core.services.events.IEventBroker;
+import org.eclipse.e4.core.services.nls.ILocaleChangeService;
+import org.eclipse.e4.core.services.translation.TranslationService;
+import org.eclipse.e4.ui.model.application.MApplication;
+import org.eclipse.e4.ui.model.application.ui.MElementContainer;
+import org.eclipse.e4.ui.model.application.ui.MLocalizable;
+import org.eclipse.e4.ui.model.application.ui.MUIElement;
+import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar;
+import org.eclipse.e4.ui.model.application.ui.basic.MTrimmedWindow;
+import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
+import org.osgi.service.log.LogService;
+
+/**
+ * Default implementation of {@link ILocaleChangeService} that changes the {@link Locale} in the
+ * specified {@link IEclipseContext} and additionally fires an event on the event bus.
+ *
+ * @author Dirk Fauth
+ *
+ */
+@SuppressWarnings("restriction")
+public class LocaleChangeServiceImpl implements ILocaleChangeService {
+
+ private static LogService logService = ServicesActivator.getDefault().getLogService();
+
+ MApplication application;
+
+ @Inject
+ IEventBroker broker;
+
+ /**
+ * Create a new {@link LocaleChangeServiceImpl} for the given {@link IEclipseContext}.
+ *
+ * @param application
+ * The application to retrieve the context from.
+ */
+ @Inject
+ public LocaleChangeServiceImpl(MApplication application) {
+ this.application = application;
+ }
+
+ public void changeApplicationLocale(Locale locale) {
+
+ // the TranslationService.LOCALE context parameter is specified as String
+ // so we put the String representation of the given Locale to the context
+ this.application.getContext().set(TranslationService.LOCALE, locale.toString());
+
+ // update model
+ updateLocalization(this.application.getChildren());
+
+ // fire event
+ broker.post(LOCALE_CHANGE, locale);
+ }
+
+ public void changeApplicationLocale(String localeString) {
+ try {
+ Locale locale = ResourceBundleHelper.toLocale(localeString);
+
+ // set the locale to the application context
+ this.application.getContext().set(TranslationService.LOCALE, localeString);
+
+ // update model
+ updateLocalization(this.application.getChildren());
+
+ // fire event
+ broker.post(LOCALE_CHANGE, locale);
+ } catch (IllegalArgumentException e) {
+ // parsing the locale String to a Locale failed because of invalid
+ // String - there is no locale change performed
+ if (logService != null)
+ logService.log(LogService.LOG_ERROR, e.getMessage()
+ + " - No Locale change will be performed."); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * Will iterate over the given list of {@link MUIElement}s and inform them about the Locale
+ * change if necessary.
+ *
+ * @param children
+ * The list of {@link MUIElement}s that should be checked for Locale updates.
+ */
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ protected void updateLocalization(List<? extends MUIElement> children) {
+ for (MUIElement element : children) {
+ if (element instanceof MElementContainer) {
+ updateLocalization(((MElementContainer) element).getChildren());
+ }
+
+ if (element instanceof MWindow) {
+ ((MWindow) element).getMainMenu().updateLocalization();
+ updateLocalization(((MWindow) element).getMainMenu().getChildren());
+ }
+
+ if (element instanceof MTrimmedWindow) {
+ for (MTrimBar trimBar : ((MTrimmedWindow) element).getTrimBars()) {
+ trimBar.updateLocalization();
+ updateLocalization(trimBar.getChildren());
+ }
+ }
+
+ ((MLocalizable) element).updateLocalization();
+ }
+ }
+
+}
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
index 3854eb4..935b6db 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
@@ -449,9 +449,13 @@ public class UIEvents {
public static final String TOPIC_DESCRIPTION = "org/eclipse/e4/ui/model/commands/Category/description/*"; //$NON-NLS-1$
public static final String TOPIC_NAME = "org/eclipse/e4/ui/model/commands/Category/name/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_NAME = "org/eclipse/e4/ui/model/commands/Category/localizedName/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String DESCRIPTION = "description"; //$NON-NLS-1$
public static final String NAME = "name"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_NAME = "localizedName"; //$NON-NLS-1$
}
@SuppressWarnings("javadoc")
@@ -468,11 +472,17 @@ public class UIEvents {
public static final String TOPIC_DESCRIPTION = "org/eclipse/e4/ui/model/commands/Command/description/*"; //$NON-NLS-1$
public static final String TOPIC_PARAMETERS = "org/eclipse/e4/ui/model/commands/Command/parameters/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_COMMANDNAME = "org/eclipse/e4/ui/model/commands/Command/localizedCommandName/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_DESCRIPTION = "org/eclipse/e4/ui/model/commands/Command/localizedDescription/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String CATEGORY = "category"; //$NON-NLS-1$
public static final String COMMANDNAME = "commandName"; //$NON-NLS-1$
public static final String DESCRIPTION = "description"; //$NON-NLS-1$
public static final String PARAMETERS = "parameters"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_COMMANDNAME = "localizedCommandName"; //$NON-NLS-1$
+ public static final String LOCALIZED_DESCRIPTION = "localizedDescription"; //$NON-NLS-1$
}
@SuppressWarnings("javadoc")
@@ -591,6 +601,8 @@ public class UIEvents {
public static final String TOPIC_MENUS = "org/eclipse/e4/ui/model/basic/PartDescriptor/menus/*"; //$NON-NLS-1$
public static final String TOPIC_TOOLBAR = "org/eclipse/e4/ui/model/basic/PartDescriptor/toolbar/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_DESCRIPTION = "org/eclipse/e4/ui/model/basic/PartDescriptor/localizedDescription/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String ALLOWMULTIPLE = "allowMultiple"; //$NON-NLS-1$
public static final String CATEGORY = "category"; //$NON-NLS-1$
@@ -600,6 +612,8 @@ public class UIEvents {
public static final String DIRTYABLE = "dirtyable"; //$NON-NLS-1$
public static final String MENUS = "menus"; //$NON-NLS-1$
public static final String TOOLBAR = "toolbar"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_DESCRIPTION = "localizedDescription"; //$NON-NLS-1$
}
@SuppressWarnings("javadoc")
@@ -767,11 +781,15 @@ public class UIEvents {
public static final String TOPIC_MENUS = "org/eclipse/e4/ui/model/basic/Part/menus/*"; //$NON-NLS-1$
public static final String TOPIC_TOOLBAR = "org/eclipse/e4/ui/model/basic/Part/toolbar/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_DESCRIPTION = "org/eclipse/e4/ui/model/basic/Part/localizedDescription/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String CLOSEABLE = "closeable"; //$NON-NLS-1$
public static final String DESCRIPTION = "description"; //$NON-NLS-1$
public static final String MENUS = "menus"; //$NON-NLS-1$
public static final String TOOLBAR = "toolbar"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_DESCRIPTION = "localizedDescription"; //$NON-NLS-1$
}
/**
@@ -982,6 +1000,8 @@ public class UIEvents {
public static final String TOPIC_VISIBLEWHEN = "org/eclipse/e4/ui/model/ui/UIElement/visibleWhen/*"; //$NON-NLS-1$
public static final String TOPIC_WIDGET = "org/eclipse/e4/ui/model/ui/UIElement/widget/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_ACCESSIBILITYPHRASE = "org/eclipse/e4/ui/model/ui/UIElement/localizedAccessibilityPhrase/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String ACCESSIBILITYPHRASE = "accessibilityPhrase"; //$NON-NLS-1$
public static final String CONTAINERDATA = "containerData"; //$NON-NLS-1$
@@ -993,6 +1013,8 @@ public class UIEvents {
public static final String VISIBLE = "visible"; //$NON-NLS-1$
public static final String VISIBLEWHEN = "visibleWhen"; //$NON-NLS-1$
public static final String WIDGET = "widget"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_ACCESSIBILITYPHRASE = "localizedAccessibilityPhrase"; //$NON-NLS-1$
}
@SuppressWarnings("javadoc")
@@ -1008,10 +1030,16 @@ public class UIEvents {
public static final String TOPIC_LABEL = "org/eclipse/e4/ui/model/ui/UILabel/label/*"; //$NON-NLS-1$
public static final String TOPIC_TOOLTIP = "org/eclipse/e4/ui/model/ui/UILabel/tooltip/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_LABEL = "org/eclipse/e4/ui/model/ui/UILabel/localizedLabel/*"; //$NON-NLS-1$
+ public static final String TOPIC_LOCALIZED_TOOLTIP = "org/eclipse/e4/ui/model/ui/UILabel/localizedTooltip/*"; //$NON-NLS-1$
+
// Attributes that can be tested in event handlers
public static final String ICONURI = "iconURI"; //$NON-NLS-1$
public static final String LABEL = "label"; //$NON-NLS-1$
public static final String TOOLTIP = "tooltip"; //$NON-NLS-1$
+
+ public static final String LOCALIZED_LABEL = "localizedLabel"; //$NON-NLS-1$
+ public static final String LOCALIZED_TOOLTIP = "localizedTooltip"; //$NON-NLS-1$
}
@SuppressWarnings("javadoc")
@@ -1282,4 +1310,4 @@ public class UIEvents {
// Attributes that can be tested in event handlers
public static final String TRIMCONTRIBUTIONS = "trimContributions"; //$NON-NLS-1$
}
-} \ No newline at end of file
+}
diff --git a/bundles/org.eclipse.ui.workbench/build.properties b/bundles/org.eclipse.ui.workbench/build.properties
index 4494d86..23b5af9 100644
--- a/bundles/org.eclipse.ui.workbench/build.properties
+++ b/bundles/org.eclipse.ui.workbench/build.properties
@@ -5,7 +5,8 @@ bin.includes = plugin.properties,\
META-INF/,\
.options,\
LegacyIDE.e4xmi,\
- OSGI-INF/ColorAndFontProvider.xml
+ OSGI-INF/ColorAndFontProvider.xml,\
+ OSGI-INF/localechangeservice.xml
src.includes = about.html
source.. = Eclipse UI/,\
- Eclipse UI Editor Support/ \ No newline at end of file
+ Eclipse UI Editor Support/