Decorator provider problem [message #92635] |
Mon, 15 January 2007 06:30  |
Eclipse User |
|
|
|
Originally posted by: zuegg.hotmail.it
Hi,
I'm trying to add a custom decoration to an editpart using the
decoratorProviders extension point in the diagram plugin.xml.
The problem is that my provider class is never used (the methods
createDecorators and provides are never called).
Here is the extension point I added (following the ReviewDecorator example):
<extension
id=" it.lynx.intesa.ide.modeler.visualmodel.diagram.VisualmodelDe coratorProvider "
name="Diagram Decorator Provider"
point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders ">
<decoratorProvider
class=" it.lynx.intesa.ide.modeler.visualmodel.diagram.VisualmodelDe coratorProvider ">
<Priority name="Lowest"/>
<object
class=" it.lynx.intesa.ide.model.visualModel.diagram.edit.parts.VPag ePageNameEditPart "
id="PAGE_LINK"/>
<context decoratorTargets="PAGE_LINK"/>
</decoratorProvider>
</extension>
It should work but I'm not able to realize where is the problem :(
Thanks for any suggestion,
Massimo.
|
|
|
Re: Decorator provider problem [message #92868 is a reply to message #92635] |
Mon, 15 January 2007 12:32  |
Eclipse User |
|
|
|
Originally posted by: vcciubot.uwaterloo.ca
Look in cvs dev.eclipse.org/cvsroot/technology for
org.eclipse.gmf/examples/org.eclipse.gmf.examples.runtime.di agram.decorator
It has a working example and it's easy to modify. It doesnt work with
labels, i.e. if you want to simply decorate with a label, it won't work
out of the box. But it works with images.
vlad
On Mon, 15 Jan 2007 12:30:30 +0100, d3K4!n wrote:
> Hi,
> I'm trying to add a custom decoration to an editpart using the
> decoratorProviders extension point in the diagram plugin.xml.
> The problem is that my provider class is never used (the methods
> createDecorators and provides are never called).
>
> Here is the extension point I added (following the ReviewDecorator example):
>
> <extension
> id=" it.lynx.intesa.ide.modeler.visualmodel.diagram.VisualmodelDe coratorProvider "
> name="Diagram Decorator Provider"
> point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders ">
> <decoratorProvider
> class=" it.lynx.intesa.ide.modeler.visualmodel.diagram.VisualmodelDe coratorProvider ">
> <Priority name="Lowest"/>
> <object
> class=" it.lynx.intesa.ide.model.visualModel.diagram.edit.parts.VPag ePageNameEditPart "
> id="PAGE_LINK"/>
> <context decoratorTargets="PAGE_LINK"/>
> </decoratorProvider>
> </extension>
>
> It should work but I'm not able to realize where is the problem :(
>
> Thanks for any suggestion,
> Massimo.
|
|
|
Powered by
FUDForum. Page generated in 0.03886 seconds