Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Editor and View Pattern
Editor and View Pattern [message #195788] Fri, 04 July 2008 11:57 Go to next message
Tobias Emitslof is currently offline Tobias EmitslofFriend
Messages: 7
Registered: July 2009
Location: Kristianstad
Junior Member
Hi,

I want to show two attributes in the same label and this works fine using
the following settings. But when I click on the label I only want to edit
one of the attributes. It works as I want it to do, but the data is not
saved. I've heard that you can remove one of the attributes in
MessageFormatParser but I have not found the correct one.

Diagram Label: Diagram Label Test
Edit Method: MESSAGE_FORMAT
Editor Pattern: {0}
Edit Pattern: {0}
Features: label : EString, label2 : EString
Read Only: false
View Method: MESSAGE_FORMAT
View Pattern: {0}:{1}

Thanks,
Tobias
Re: Editor and View Pattern [message #196021 is a reply to message #195788] Tue, 08 July 2008 07:42 Go to previous message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

Hi Tobias,

i don't know exactly why, but the following works for me:

Editor Pattern: {0}
Edit Pattern: {0}{1}
View Pattern: {0} : {1}

Tobias Emitslöf schrieb:
> Hi,
>
> I want to show two attributes in the same label and this works fine
> using the following settings. But when I click on the label I only want
> to edit one of the attributes. It works as I want it to do, but the data
> is not saved. I've heard that you can remove one of the attributes in
> MessageFormatParser but I have not found the correct one.
>
> Diagram Label: Diagram Label Test
> Edit Method: MESSAGE_FORMAT
> Editor Pattern: {0}
> Edit Pattern: {0}
> Features: label : EString, label2 : EString
> Read Only: false
> View Method: MESSAGE_FORMAT
> View Pattern: {0}:{1}
>
> Thanks,
> Tobias
>
Previous Topic:How to make figure's foreground line (boundry line) invisible?
Next Topic:figure visibility change
Goto Forum:
  


Current Time: Sat Apr 20 01:58:29 GMT 2024

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

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

Back to the top