Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Decorator provider problem
Decorator provider problem [message #92635] Mon, 15 January 2007 06:30 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:problem with opening another diagram file - BUG?
Next Topic:dyanamic addition of new shape to the palette at runtime.
Goto Forum:
  


Current Time: Thu May 29 12:08:41 EDT 2025

Powered by FUDForum. Page generated in 0.03886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top