Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Set fixed size for node
Set fixed size for node [message #180173] Tue, 01 April 2008 15:05 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:merging models
Next Topic:Synchronize Label with Property Sheet
Goto Forum:
  


Current Time: Thu Apr 25 06:29:39 GMT 2024

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

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

Back to the top