Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Resize problem
Resize problem [message #207201] Sun, 28 September 2008 10:07 Go to next message
Michael is currently offline MichaelFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

I added a rectangle figure with a contained custom figure to the
graphical definition. In the editor the rectangle can only be resized
bigger, not smaller. The actor in the UML2 project's use case diagram
shows the same behavior.
What could be the problem?

Thank you,
Michael
Re: Resize problem [message #207330 is a reply to message #207201] Mon, 29 September 2008 13:53 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Michael,

Thank you for noticing the problem in UML2Tools. I submitted bugzilla #248937
'Allow to resize actor'

Let me explain the root and solution of the problem in UML2 Tools, because
you can have the similar one.
Minimum size the figure can get is defined in org.eclipse.draw2d.Figure#getMinimumSize(int,
int) method. Let's look at it:

if (minSize != null)
return minSize;
if (getLayoutManager() != null) {
Dimension d = getLayoutManager().getMinimumSize(this, wHint, hHint);
if (d != null)
return d;
}
return getPreferredSize(wHint, hHint);

In case of Actor minimum size was null, and Actor had no LayoutManager, that's
why getMinimumSize() returned preferredSize.
There are two possible solutions
1) set minimum size
2) set layout manager
The properties can be set in the definition of the figure in *.gmfgraph file.

Best wishes,
Tanya.


> I added a rectangle figure with a contained custom figure to the
> graphical definition. In the editor the rectangle can only be resized
> bigger, not smaller. The actor in the UML2 project's use case diagram
> shows the same behavior.
> What could be the problem?
Re: Resize problem [message #207339 is a reply to message #207330] Mon, 29 September 2008 14:14 Go to previous message
Michael is currently offline MichaelFriend
Messages: 23
Registered: July 2009
Junior Member
Thank you Tanya.
Then we have to completely paint the feet of our actor and he is
complete :-)
Previous Topic:save button is not enable
Next Topic:Multiple EditPartProviders for Diagram Partitioning
Goto Forum:
  


Current Time: Thu May 13 15:42:16 GMT 2021

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

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

Back to the top