Set fixed size for node [message #180173] |
Tue, 01 April 2008 15:05 |
Eclipse User |
|
|
|
Originally posted by: daniel-p.gmx.de
Hi eveybody,
I'd like to set a fixed size for a node. I know that in GMF 2.0 there is
the "DefaultSizeFacet", which can be used for that purpous. But I'm
constrained to GMF 1.0 and I do not like to override any methods, e.g.
createNodePlate(). Is there any other possibility to achive that goal,
as for instance some extension point or os?
Cheers,
Daniel
|
|
|
Re: Set fixed size for node [message #180319 is a reply to message #180173] |
Wed, 02 April 2008 09:42 |
Eclipse User |
|
|
|
Originally posted by: daniel-p.gmx.de
Ok, I solved the problem myself. I now use the extension point
"org.eclipse.gmf.runtime.diagram.ui.editpartProviders" in order to
provide a new editpart provider, which returns an edit part extending
the original one. The extended one then overrides the createNodePlate()
method. However, the generated code remains untouched.
Cheers,
Daniel
Daniel Pech wrote:
> Hi eveybody,
>
> I'd like to set a fixed size for a node. I know that in GMF 2.0 there is
> the "DefaultSizeFacet", which can be used for that purpous. But I'm
> constrained to GMF 1.0 and I do not like to override any methods, e.g.
> createNodePlate(). Is there any other possibility to achive that goal,
> as for instance some extension point or os?
>
> Cheers,
> Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.02686 seconds