Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Resize problem
Resize problem [message #207201] Sun, 28 September 2008 06:07 Go to next message
Eclipse UserFriend
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 09:53 Go to previous messageGo to next message
Eclipse UserFriend
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 10:14 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 00:14:54 EDT 2025

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

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

Back to the top