Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom decoration not being called
Custom decoration not being called [message #995597] Sun, 30 December 2012 11:09
Nigel Daniels is currently offline 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
Previous Topic:How to add diagram objects to (EMF) tree browser
Next Topic:Save operation corrupts diagram file
Goto Forum:
  


Current Time: Wed Aug 20 08:41:02 EDT 2014

Powered by FUDForum. Page generated in 0.03192 seconds