Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorradvorak2006-05-09 12:41:23 +0000
committerradvorak2006-05-09 12:41:23 +0000
commita83552d9dbc23384ded596f67888bbf7f18b3fff (patch)
tree5871c4ac298336a265cb837a2780b56b18b4bf7d /plugins/org.eclipse.gmf.codegen.edit
parentf37451c48192fcef31bd7f9ace06b1733ae6ae72 (diff)
downloadorg.eclipse.gmf-tooling-a83552d9dbc23384ded596f67888bbf7f18b3fff.tar.gz
org.eclipse.gmf-tooling-a83552d9dbc23384ded596f67888bbf7f18b3fff.tar.xz
org.eclipse.gmf-tooling-a83552d9dbc23384ded596f67888bbf7f18b3fff.zip
#136803 Support decorator provider for validated elements in generated diagram editors
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.edit')
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/plugin.properties7
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenDiagramItemProvider.java44
2 files changed, 50 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index 1ed386790..13bf5218e 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -416,4 +416,9 @@ _UI_LabelOffsetAttributes_y_feature = Y
_UI_GenDomainAttributeTarget_type = Gen Domain Attribute Target
_UI_GenDomainAttributeTarget_nullAsError_feature = Null As Error
_UI_GenDomainAttributeTarget_attribute_feature = Attribute
- \ No newline at end of file
+
+# ====================================================================
+ _UI_Wizard_category = Example EMF Model Creation Wizards
+
+_UI_BatchValidation_validationDecoratorProviderClassName_feature = Validation Decorator Provider Class Name
+_UI_BatchValidation_validationDecorators_feature = Validation Decorators
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 58e5a7d31..03d5f2b55 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
@@ -120,6 +120,8 @@ public class GenDiagramItemProvider
addValidationEnabledPropertyDescriptor(object);
addMetricProviderClassNamePropertyDescriptor(object);
addMetricProviderPriorityPropertyDescriptor(object);
+ addValidationDecoratorProviderClassNamePropertyDescriptor(object);
+ addValidationDecoratorsPropertyDescriptor(object);
addUnitsPropertyDescriptor(object);
addDomainDiagramElementPropertyDescriptor(object);
}
@@ -567,6 +569,46 @@ public class GenDiagramItemProvider
}
/**
+ * This adds a property descriptor for the Validation Decorator Provider Class Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addValidationDecoratorProviderClassNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_BatchValidation_validationDecoratorProviderClassName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_BatchValidation_validationDecoratorProviderClassName_feature", "_UI_BatchValidation_type"),
+ GMFGenPackage.eINSTANCE.getBatchValidation_ValidationDecoratorProviderClassName(),
+ true,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Validation Decorators feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addValidationDecoratorsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_BatchValidation_validationDecorators_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_BatchValidation_validationDecorators_feature", "_UI_BatchValidation_type"),
+ GMFGenPackage.eINSTANCE.getBatchValidation_ValidationDecorators(),
+ true,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
* This adds a property descriptor for the Units feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -1470,6 +1512,8 @@ public class GenDiagramItemProvider
case GMFGenPackage.GEN_DIAGRAM__VALIDATION_ENABLED:
case GMFGenPackage.GEN_DIAGRAM__METRIC_PROVIDER_CLASS_NAME:
case GMFGenPackage.GEN_DIAGRAM__METRIC_PROVIDER_PRIORITY:
+ case GMFGenPackage.GEN_DIAGRAM__VALIDATION_DECORATOR_PROVIDER_CLASS_NAME:
+ case GMFGenPackage.GEN_DIAGRAM__VALIDATION_DECORATORS:
case GMFGenPackage.GEN_DIAGRAM__UNITS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;

Back to the top