Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorradvorak2006-05-11 18:37:40 +0000
committerradvorak2006-05-11 18:37:40 +0000
commit9e1079d2b067d1629c94175af54af9c7a66cf466 (patch)
tree8d4d0bfea8f443a3a5a4bb0fcaa9e2d8a953936e /plugins/org.eclipse.gmf.codegen.edit
parent6a7c6861c6551122e7e5fe38e6d270f1c9d5f466 (diff)
downloadorg.eclipse.gmf-tooling-9e1079d2b067d1629c94175af54af9c7a66cf466.tar.gz
org.eclipse.gmf-tooling-9e1079d2b067d1629c94175af54af9c7a66cf466.tar.xz
org.eclipse.gmf-tooling-9e1079d2b067d1629c94175af54af9c7a66cf466.zip
#141340 Audit rule targeted to a metric definition is not registered as valid constraint
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.edit')
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/plugin.properties5
-rw-r--r--plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenAuditedMetricTargetItemProvider.java21
2 files changed, 24 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
index 16a416eb8..7f6650d32 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
+++ b/plugins/org.eclipse.gmf.codegen.edit/plugin.properties
@@ -419,9 +419,10 @@ _UI_LabelOffsetAttributes_y_feature = Y
_UI_GenDomainAttributeTarget_type = Gen Domain Attribute Target
_UI_GenDomainAttributeTarget_nullAsError_feature = Null As Error
_UI_GenDomainAttributeTarget_attribute_feature = Attribute
-
+
# ====================================================================
_UI_Wizard_category = Example EMF Model Creation Wizards
-
+
_UI_BatchValidation_validationDecoratorProviderClassName_feature = Validation Decorator Provider Class Name
_UI_BatchValidation_validationDecorators_feature = Validation Decorators
+_UI_GenAuditedMetricTarget_metricValueContext_feature = Metric Value Context
diff --git a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenAuditedMetricTargetItemProvider.java b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenAuditedMetricTargetItemProvider.java
index d8386c974..c7148eb58 100644
--- a/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenAuditedMetricTargetItemProvider.java
+++ b/plugins/org.eclipse.gmf.codegen.edit/src/org/eclipse/gmf/codegen/gmfgen/provider/GenAuditedMetricTargetItemProvider.java
@@ -61,6 +61,7 @@ public class GenAuditedMetricTargetItemProvider
super.getPropertyDescriptors(object);
addMetricPropertyDescriptor(object);
+ addMetricValueContextPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -86,6 +87,26 @@ public class GenAuditedMetricTargetItemProvider
}
/**
+ * This adds a property descriptor for the Metric Value Context feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addMetricValueContextPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_GenAuditedMetricTarget_metricValueContext_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_GenAuditedMetricTarget_metricValueContext_feature", "_UI_GenAuditedMetricTarget_type"),
+ GMFGenPackage.eINSTANCE.getGenAuditedMetricTarget_MetricValueContext(),
+ true,
+ null,
+ null,
+ null));
+ }
+
+ /**
* This returns GenAuditedMetricTarget.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->

Back to the top