Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-04-14 07:21:22 +0000
committerdstadnik2006-04-14 07:21:22 +0000
commit8f3fa238e447e6f3a42274b64efc92f2814f07b2 (patch)
tree2b265e9108f3f1bc497263f6aa627a3e2bbba8a4 /plugins/org.eclipse.gmf.codegen.edit
parent4b1b72affead95dfa83cd1c48398f04d7ef5e918 (diff)
downloadorg.eclipse.gmf-tooling-8f3fa238e447e6f3a42274b64efc92f2814f07b2.tar.gz
org.eclipse.gmf-tooling-8f3fa238e447e6f3a42274b64efc92f2814f07b2.tar.xz
org.eclipse.gmf-tooling-8f3fa238e447e6f3a42274b64efc92f2814f07b2.zip
#135693 Use decoration service to provide shortcut image
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.edit')
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/plugin.properties2
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java44
2 files changed, 46 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index c5524e408..c8b71612d 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -550,3 +550,5 @@ _UI_GenExpressionProviderBase_container_feature = Container
_UI_GenExpressionInterpreter_language_feature = Language
_UI_GenExpressionInterpreter_className_feature = Class Name
_UI_GenExpressionInterpreter_requiredPluginIDs_feature = Required Plugin IDs
+_UI_Shortcuts_shortcutsDecoratorProviderClassName_feature = Shortcuts Decorator Provider Class Name
+_UI_Shortcuts_shortcutsDecoratorProviderPriority_feature = Shortcuts Decorator Provider Priority
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java
index 5f921259b..4428fe4f7 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java
@@ -109,6 +109,8 @@ public class GenDiagramItemProvider
addVisualIDRegistryClassNamePropertyDescriptor(object);
addElementChooserClassNamePropertyDescriptor(object);
addLoadResourceActionClassNamePropertyDescriptor(object);
+ addShortcutsDecoratorProviderClassNamePropertyDescriptor(object);
+ addShortcutsDecoratorProviderPriorityPropertyDescriptor(object);
addCreateShortcutActionClassNamePropertyDescriptor(object);
addContainsShortcutsToPropertyDescriptor(object);
addShortcutsProvidedForPropertyDescriptor(object);
@@ -346,6 +348,46 @@ public class GenDiagramItemProvider
}
/**
+ * This adds a property descriptor for the Shortcuts Decorator Provider Class Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addShortcutsDecoratorProviderClassNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Shortcuts_shortcutsDecoratorProviderClassName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Shortcuts_shortcutsDecoratorProviderClassName_feature", "_UI_Shortcuts_type"),
+ GMFGenPackage.eINSTANCE.getShortcuts_ShortcutsDecoratorProviderClassName(),
+ true,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Shortcuts Decorator Provider Priority feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addShortcutsDecoratorProviderPriorityPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Shortcuts_shortcutsDecoratorProviderPriority_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Shortcuts_shortcutsDecoratorProviderPriority_feature", "_UI_Shortcuts_type"),
+ GMFGenPackage.eINSTANCE.getShortcuts_ShortcutsDecoratorProviderPriority(),
+ true,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
* This adds a property descriptor for the Contains Shortcuts To feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1438,6 +1480,8 @@ public class GenDiagramItemProvider
case GMFGenPackage.GEN_DIAGRAM__VISUAL_ID_REGISTRY_CLASS_NAME:
case GMFGenPackage.GEN_DIAGRAM__ELEMENT_CHOOSER_CLASS_NAME:
case GMFGenPackage.GEN_DIAGRAM__LOAD_RESOURCE_ACTION_CLASS_NAME:
+ case GMFGenPackage.GEN_DIAGRAM__SHORTCUTS_DECORATOR_PROVIDER_CLASS_NAME:
+ case GMFGenPackage.GEN_DIAGRAM__SHORTCUTS_DECORATOR_PROVIDER_PRIORITY:
case GMFGenPackage.GEN_DIAGRAM__CREATE_SHORTCUT_ACTION_CLASS_NAME:
case GMFGenPackage.GEN_DIAGRAM__CONTAINS_SHORTCUTS_TO:
case GMFGenPackage.GEN_DIAGRAM__SHORTCUTS_PROVIDED_FOR:

Back to the top