Custom decoration not being called [message #995597] |
Sun, 30 December 2012 16:09 |
Nigel Daniels Messages: 66 Registered: July 2009 |
Member |
|
|
Hi,
I have been following the GMF decoration example
(http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.gmf.doc%2Fexamples-guide%2Fdiagram%2FdecoratorServiceExample.html)
and have added my own extension point:
<extension
id="com.test.my.decorators"
name="Test Decorators"
point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
<decoratorProvider
class="com.test.my.providers.SelectedOptionDecoratorProvider">
<Priority
name="Medium">
</Priority>
<object
class="com.test.my.edit.parts.OptionEditPart"
id="option.node">
</object>
<context
decoratorTargets="option.node">
</context>
</decoratorProvider>
</extension>
In my diagram code the class OptionEditPart has been created and when i
added the extension point I have created and edited the
SelectedOptionDecoratorProvider class and I created a
SelectedOptionDecorator. However i never see the decoration I have added
appear in my diagram.
I have set a breakpoints in the provides(IOperation operation) method
and the createDecorators(IDecoratorTarget decoratorTarget) method but
they never seem to get called.
Is there something else i need to do to get this extension point working?
Thanks for any advice.
Best regards,
Nigel
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds