[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Decorator provider problem
|
- From: Vlad Ciubotariu <vcciubot@xxxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 12:32:18 -0500
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))
Look in cvs dev.eclipse.org/cvsroot/technology for
org.eclipse.gmf/examples/org.eclipse.gmf.examples.runtime.diagram.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.VisualmodelDecoratorProvider"
> name="Diagram Decorator Provider"
> point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
> <decoratorProvider
> class="it.lynx.intesa.ide.modeler.visualmodel.diagram.VisualmodelDecoratorProvider">
> <Priority name="Lowest"/>
> <object
> class="it.lynx.intesa.ide.model.visualModel.diagram.edit.parts.VPagePageNameEditPart"
> 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.