Problem with resize from Figures [message #160329] |
Wed, 14 November 2007 09:23  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03596 seconds