Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Node Labels in GMF
Node Labels in GMF [message #76522] Fri, 10 November 2006 08:33 Go to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

This is a multi-part message in MIME format.
--------------030501050202000503050109
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

I´ve got a problem with my GMF editor. I´ve defined nodes and label
mappings for them. The attributes of the concerned eclasses that act as
labels have the type String. When I insert a node in the diagram I get
what you can see in bad.JPG. I can edit the attribute value manually.
But what I want can be seen in good.JPG. I want to insert the node and
the label should be shown as <...> or whatever I specify as standard.
The attribute value that acts as the label should remain an empty String
until I specifiy it in the properties view. When I specify the class
attribute in the properties view via a the drop down menu (this feature
I already got to work) it should be shown as the nodes label. This works
for a node (called operator) I defined but not for the others, even
though I seem to have set the same settings. Maybe I forgot something I
don´t remember having it specified. Is there a special setting for a
node that stops the input mask (as seen in bad.JPG) from showing up?

Greetings,
Christian

--------------030501050202000503050109
Content-Type: image/jpeg;
name="good.JPG"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="good.JPG"

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwL DBgNDRgyIRwh
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy MjIyMjL/wAAR
CABYAGMDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcI CQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS 0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1 dnd4eXqDhIW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YY8sSKqmQlNuRiVA+TR1CS+l1zw HJqcMcN415cG
WNDwD9km7ZIBxglQzAHIDOBuPbV514y8XaPpvxK8I6PeC+F8JxND5MKNG/nr JbqGYuCuCxY4
U8D34APRaKKKACiiigAooooAK5CGzsn+LN67afYmePSre4S4+yx+cJGeaNj5 m3fyiKuM4wK6
+uVt/wDkq+o/9gO1/wDR9xQB1VFFFABRRRQAVyHiazsn8a+EZZNPsZZ5ruSN pprWOSQKkEsq
BXZSy4dQw2kc/WuvrlfEv/I4eC/+v+4/9JJqAOqooooAKKKKACiiigArzq68 J+NpPinNr1t4
kWHQGRhFZPcTOqN9n2AmDhCBJ8+Nwz1yDXotFAHK/wBk+Nv+hs0v/wAEh/8A j9H9k+Nv+hs0
v/wSH/4/XVUUAea/8Ih49/4WR/bf/CUxf2R5Gz7N5s2zzfs3l7/s/wBzHm/P t3/jmug/snxt
/wBDZpf/AIJD/wDH66qigDlf7J8bf9DZpf8A4JD/APH65/WPCHj298Z6BqcP imIafZ+T9vhi
lmtVuNs7O2IV3KcxlV5bnHOBXpVFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFF ABRRRQAUUUUA
FFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf//Z
--------------030501050202000503050109
Content-Type: image/jpeg;
name="bad.JPG"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="bad.JPG"

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwL DBgNDRgyIRwh
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy MjIyMjL/wAAR
CABiAJUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcI CQoL/8QAtRAA
AgEDAwIEAwUFBAQAA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RQAUUUUAFFFFABR RRQAUUUUAFFF
FABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUU AFFFFABRRRQA
UUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABR RRQAUUUUAFFF
FABRRRQB/9k=
--------------030501050202000503050109--
Re: Node Labels in GMF [message #76668 is a reply to message #76522] Fri, 10 November 2006 10:07 Go to previous messageGo to next message
Eclipse UserFriend
Christian,

Do you want the user to only be able to modify this label by choosing
one of the options in the drop down menu in the properties view? If so,
just set the Label Mapping's Read Only property to true. It will no
longer be editable on the diagram at all.

Regards,
Cherie

Christian Dänekas wrote:
> Hello,
>
> I´ve got a problem with my GMF editor. I´ve defined nodes and label
> mappings for them. The attributes of the concerned eclasses that act as
> labels have the type String. When I insert a node in the diagram I get
> what you can see in bad.JPG. I can edit the attribute value manually.
> But what I want can be seen in good.JPG. I want to insert the node and
> the label should be shown as <...> or whatever I specify as standard.
> The attribute value that acts as the label should remain an empty String
> until I specifiy it in the properties view. When I specify the class
> attribute in the properties view via a the drop down menu (this feature
> I already got to work) it should be shown as the nodes label. This works
> for a node (called operator) I defined but not for the others, even
> though I seem to have set the same settings. Maybe I forgot something I
> don´t remember having it specified. Is there a special setting for a
> node that stops the input mask (as seen in bad.JPG) from showing up?
>
> Greetings,
> Christian
>
> ------------------------------------------------------------ ------------
>
>
> ------------------------------------------------------------ ------------
>
Re: Node Labels in GMF [message #76762 is a reply to message #76522] Fri, 10 November 2006 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian

Your issue is that when you go into edit mode, the existing text <...> is
not being edited even though that is the text that shows on the diagram.

The string in your domain model is blank and by default the generated code
then displays <...>.

To fix this, create a default value for your String in your ecore model.

Note that the string default <...> is found on the LabelFigure in your
gmfmap file.

Cheers...
Anthony

"Christian D
Re: Node Labels in GMF [message #77031 is a reply to message #76668] Mon, 13 November 2006 05:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

I already did that. This was the main reason I asked, because I
understood the functionality of "Read Only" in the Label mapping
properties the same waay you just told me. I forgot to mention that in
my initial post, sorry. The strage thing is that I get the right
behaviour for one node, but not for any of the other nodes in my diagram
although I set the Label Mapping to read only for all of them. When I
generate the gmfgen-model and generate the diagram code I sometimes get
the error that a "Resource is out of sync with the file system". Maybe
this has something to do with it? When I generate the code a second time
the error disappears. Maybe I try to start all over again, but this
can´t be the solution since I have to modify the generated code all over
again (constraints defined in java, definition of Propertydescriptors
etc.) and of course the model properties. Maybe you or someone else has
better solution. I´m using version 2.0M2 sice the callisto version
gave me some serious trouble defining the models the way I have to
(graphical and tooling models that is).

Greetings,
Christian
Cherie Revells schrieb:
> Christian,
>
> Do you want the user to only be able to modify this label by choosing
> one of the options in the drop down menu in the properties view? If so,
> just set the Label Mapping's Read Only property to true. It will no
> longer be editable on the diagram at all.
>
> Regards,
> Cherie
Re: Node Labels in GMF [message #77148 is a reply to message #76668] Mon, 13 November 2006 09:50 Go to previous message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Ok, I still had an older version of my project and using it fixed my
problem. Some configuration management is a good idea while using GMF
;). Thanks for your help.

Greetings,
Christian
Previous Topic:Labeled Container - help
Next Topic:Copy/Paste
Goto Forum:
  


Current Time: Fri May 09 19:19:31 EDT 2025

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

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

Back to the top