Index: src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java =================================================================== RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.emf.type.core/src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java,v retrieving revision 1.2 diff -u -r1.2 EditHelperAdviceDescriptor.java --- src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java 12 Sep 2005 21:26:55 -0000 1.2 +++ src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/EditHelperAdviceDescriptor.java 7 Oct 2005 15:58:05 -0000 @@ -42,21 +42,32 @@ private String editHelperAdviceName; /** - * Constructs a new container descriptor from the configuration element. + * Constructs a new edit helper advice descriptor from the configuration element. * * @param specialization * the configuration element - * @throws CoreException - * when the configuration element does not contain the required - * elements and attributes */ public EditHelperAdviceDescriptor(String editHelperAdviceName, - SpecializationTypeDescriptor specialization) - throws CoreException { + SpecializationTypeDescriptor specialization) { this.editHelperAdviceName = editHelperAdviceName; this.specializationDescriptor = specialization; } + + /** + * Constructs a new descriptor for the edit helper advice. + * + * @param editHelperAdvice + * the edit helper advice + * @param specialization + * the configuration element + */ + public EditHelperAdviceDescriptor(IEditHelperAdvice editHelperAdvice, + SpecializationTypeDescriptor specialization) { + + this(editHelperAdvice.getClass().getName(), specialization); + this.editHelperAdvice = editHelperAdvice; + } /* * (non-Javadoc) Index: src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java =================================================================== RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.emf.type.core/src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java,v retrieving revision 1.2 diff -u -r1.2 SpecializationTypeDescriptor.java --- src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java 12 Sep 2005 21:26:55 -0000 1.2 +++ src/org/eclipse/gmf/runtime/emf/type/core/internal/descriptors/SpecializationTypeDescriptor.java 7 Oct 2005 15:58:06 -0000 @@ -99,11 +99,13 @@ * @param specializationType the specialization type */ public SpecializationTypeDescriptor(ISpecializationType specializationType) { - + super(specializationType); - + this.containerDescriptor = specializationType.getEContainerDescriptor(); this.editHelperAdvice = specializationType.getEditHelperAdvice(); + this.editHelperAdviceDescriptor = new EditHelperAdviceDescriptor( + editHelperAdvice, this); this.matcher = specializationType.getMatcher(); this.specializationType = specializationType; this.specializedTypeIds = specializationType.getSpecializedTypeIds();