Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with resize from Figures
Problem with resize from Figures [message #160329] Wed, 14 November 2007 09:23 Go to next message
Eclipse UserFriend
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de

Hello,

I have a problem with resizing some Figures on my Diagram. The problem is
thah make the Figure bigger is ok, but I can't make the figure smaller.
This happens for some Figeres(Metamodel elements maybe), for Ellipse
Figures and for Rectengles as well. And for one particular Rectanle
works.Actually I can make only this Rectangle smaller, but other ones not.
Can someone help with this? it is because of Metamodel element definition
or something else? I've searched about the problem and I found the same
problem from someone else, but with no solution.

Thanks in advance.

Cheers,

Martin
Re: Problem with resize from Figures [message #160403 is a reply to message #160329] Wed, 14 November 2007 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ijerez2001.msn.com

Have you try with SetBoundsCommand?

In a EditPart, for example:
SetBoundsCommand sbc = new SetBoundsCommand(this.getEditingDomain(), "get
smaller", this,
new Dimension(newwidth, newheigth);
try{
sbc.execute(null,null);
}catch(Execution exception){}

Try it! I do this and I work well.
Regards.

"Martin Prodanov" <prodanov@tk.informatik.tu-darmstadt.de> escribió en el
mensaje de noticias:a1be03b1b08fdd738099ecd0f6807a09$1@www.eclipse.org...
> Hello,
>
> I have a problem with resizing some Figures on my Diagram. The problem is
> thah make the Figure bigger is ok, but I can't make the figure smaller.
> This happens for some Figeres(Metamodel elements maybe), for Ellipse
> Figures and for Rectengles as well. And for one particular Rectanle
> works.Actually I can make only this Rectangle smaller, but other ones not.
> Can someone help with this? it is because of Metamodel element definition
> or something else? I've searched about the problem and I found the same
> problem from someone else, but with no solution.
> Thanks in advance.
>
> Cheers,
>
> Martin
>
Re: Problem with resize from Figures [message #160575 is a reply to message #160403] Thu, 15 November 2007 05:36 Go to previous message
Eclipse UserFriend
Originally posted by: prodanov.tk.informatik.tu-darmstadt.de

Thanks for that!
Actually I've solved the Problem by adding "Minimal and Maximal Size" to
the Figure in the .gmfgrapf Model. It works perfect for now ;) and you
don't have to patch the code.

Greetings,

Martin
Previous Topic:One Tool in the Palette to create two different objects
Next Topic:How to allow relationship source & targets of multiple types
Goto Forum:
  


Current Time: Sun May 11 11:18:29 EDT 2025

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

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

Back to the top