Community
Participate
Working Groups
Registration code: ElementTypeRegistry.getInstance().register(new SpecializationType(...)); What''s wrong: SpecializationTypeDescriptor class has two constructors: the one that accepts ISpecializationType instance and another one that accepts configuration element and metamodel descriptor; the latter creates edit helper advice descriptor so it normally added to the registry in SpecializationTypeRegistry.registerSpecializationType(SpecializationTypeDescriptor); the first constructor does not create descriptor for edit helper advice so it is not added to the registry and not available during command creation (see AbstractEditHelper.getEditHelperAdvice(IEditCommandRequest)).
Created attachment 28032 [details] Patch for org.eclipse.gmf.runtime.emf.type.core SpecializationTypeDescriptors constructed with an ISpecializationType are now given an EditHelperAdviceDescriptor, which is registered with the SpecializationTypeRegistry.
Created attachment 28034 [details] Patch for org.eclipse.gmf.tests.runtime.emf.type.core Updates the unit tests to verify that advice from an ISpecializationType that is registered dynamically with the ElementTypeRegistry can be retrieved from the registry.
Created attachment 28038 [details] Patch for org.eclipse.gmf.runtime.emf.type.core Includes changes suggested in code review.
Committed the new fix.
[GMF Restructure] Bug 319140 : product GMF and component Runtime Common was the original product and component for this bug