Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » label of a container takes to much space (e.g. in the mindmap example)
label of a container takes to much space (e.g. in the mindmap example) [message #204535] Fri, 05 September 2008 09:55 Go to next message
Eclipse UserFriend
Originally posted by: christian.koehler.cwi.nl

This is a multi-part message in MIME format.
--------------060404030809070708090701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

See the attached screenshot of the mindmap example. The label of the
container takes half of the vertical space. I know that it used to be ok
in an earlier version of GMF.

I have a workaround but it is not satisfactory. I create a another
rectangle figure for the compartment and use a grid layout to set the
size of the label on the one hand and the compartment on the other. But
then I have a problem with making the container smaller. It works
sometimes, sometimes not.

cheers,
Christian Koehler,
CWI Amsterdam

--------------060404030809070708090701
Content-Type: image/png;
name="mmd.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="mmd.png"

iVBORw0KGgoAAAANSUhEUgAAAOEAAADBCAIAAAC2fUAbAAAAAXNSR0IArs4c 6QAAAAlwSFlz
AAALEwAACxMBAJqcGAAAAAd0SU1FB9gJBQkwJOTjTwwAAAfHSURBVHja7d1d iFxnHcfx/3N2
dna322ZJti0LgthERWJNi8QSG1qyCTUYJRdaUyKYWnAJLnlRJHrntt6IhCpp Q0pZSqmmF0pB
kLTU0nQhghQJfVHBmJoLL1TauLvu0iQzc87zPF6c3em4e2Z2No2Z32a/H4Yw c85h5uzyzfPM
OWfYcTFGA4Qlnd4BYAk0CnU0CnU0CnU0CnU0CnWlFutitJkZX61atRrTlFNU uGa6u1257Hp6
bGCgK1lqnHTNzo9euRInJ31fX/L6yW2FG3zp8JlO/6RYqbIsVquxWrVLl8Lg YHLTTa06LR5H
L18OU1Ph9tu7ymVnZg+MTizY4J2XD7547H4yxdUplVyp5Pr7bWDAvftuCCHc fHPTTAtWxGiT
k2FoaC7Qu7/4aIixfovRYrRy/+Ad6+988dj9nf5hsbJ1dbmhoa7p6eB90z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RaTOq1WpyaCpVK9J4RFddYklhvb5IP gq23dLzxhDjO
4UMdjUIdjUIdjUIdjUIdjUIdjUIdjUIdjULdfwE3xSUTnEU6gwAAAABJRU5E rkJggg==
--------------060404030809070708090701--
Re: label of a container takes to much space (e.g. in the mindmap example) [message #204548 is a reply to message #204535] Fri, 05 September 2008 10:00 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Christian,

You can set the maximumSize of the label to an appropriate Dimension in
the .gmfgraph model (right click on Label and select New Child ->
Maximum Size Dimension).

Cheers,
Dimitrios

Christan Koehler wrote:
> See the attached screenshot of the mindmap example. The label of the
> container takes half of the vertical space. I know that it used to be ok
> in an earlier version of GMF.
>
> I have a workaround but it is not satisfactory. I create a another
> rectangle figure for the compartment and use a grid layout to set the
> size of the label on the one hand and the compartment on the other. But
> then I have a problem with making the container smaller. It works
> sometimes, sometimes not.
>
> cheers,
> Christian Koehler,
> CWI Amsterdam
>
> ------------------------------------------------------------ ------------
>
Previous Topic:Hiding elements in the ecore editor
Next Topic:Using own EditorInput for generated (Bpmn)DiagramEditor
Goto Forum:
  


Current Time: Fri Apr 26 23:16:39 GMT 2024

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

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

Back to the top