Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-09-25 17:32:41 +0000
committeratikhomirov2009-09-25 17:32:41 +0000
commit509365e29967e78d6631e2b396e8ef23f46a4df9 (patch)
tree49e87ef0d034a878d08fc5a265bb918bd96972ff
parentaa2f89fc0b90d66d006cbbf8eb9ee14c6c9a4bce (diff)
downloadorg.eclipse.gmf-tooling-509365e29967e78d6631e2b396e8ef23f46a4df9.tar.gz
org.eclipse.gmf-tooling-509365e29967e78d6631e2b396e8ef23f46a4df9.tar.xz
org.eclipse.gmf-tooling-509365e29967e78d6631e2b396e8ef23f46a4df9.zip
[283717] explicitly generate boilerplate code for custom property tabs
[254734] resolve issues with use of qualified and non-qualified class names for custom tab and filter.
-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/GenCustomPropertyTabItemProvider.java24
2 files changed, 26 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index 54f131c9b..90092ac38 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -589,6 +589,7 @@ _UI_GenStandardPropertyTab_type = Standard Property Tab
_UI_GenCustomPropertyTab_type = Custom Property Tab
_UI_GenCustomPropertyTab_className_feature = Implementation class
_UI_GenCustomPropertyTab_filter_feature = Filter
+_UI_GenCustomPropertyTab_generateBoilerplate_feature = Generate Boilerplate
_UI_GenPropertyTabFilter_type = Property Tab Filter
_UI_GenPropertyTabFilter_tab_feature = Tab
_UI_TypeTabFilter_type = Typed selection filter
@@ -914,3 +915,4 @@ _UI_GenPreference_key_feature = Store key
_UI_GenPreference_defaultValue_feature = Default Value
_UI_ModeledViewmap_type = Modeled Viewmap
_UI_ModeledViewmap_figureModel_feature = Figure Model
+
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCustomPropertyTabItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCustomPropertyTabItemProvider.java
index 83ad876ab..7c3f4bf33 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCustomPropertyTabItemProvider.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenCustomPropertyTabItemProvider.java
@@ -62,6 +62,7 @@ public class GenCustomPropertyTabItemProvider
super.getPropertyDescriptors(object);
addClassNamePropertyDescriptor(object);
+ addGenerateBoilerplatePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -89,6 +90,28 @@ public class GenCustomPropertyTabItemProvider
}
/**
+ * This adds a property descriptor for the Generate Boilerplate feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addGenerateBoilerplatePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenCustomPropertyTab_generateBoilerplate_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenCustomPropertyTab_generateBoilerplate_feature", "_UI_GenCustomPropertyTab_type"),
+ GMFGenPackage.eINSTANCE.getGenCustomPropertyTab_GenerateBoilerplate(),
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
@@ -156,6 +179,7 @@ public class GenCustomPropertyTabItemProvider
switch (notification.getFeatureID(GenCustomPropertyTab.class)) {
case GMFGenPackage.GEN_CUSTOM_PROPERTY_TAB__CLASS_NAME:
+ case GMFGenPackage.GEN_CUSTOM_PROPERTY_TAB__GENERATE_BOILERPLATE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case GMFGenPackage.GEN_CUSTOM_PROPERTY_TAB__FILTER:

Back to the top