Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMFmap Feature Label Mapping - View Pattern vs. Edit Pattern
GMFmap Feature Label Mapping - View Pattern vs. Edit Pattern [message #185812] Thu, 08 May 2008 08:23 Go to next message
Eclipse UserFriend
Originally posted by: info.mtiede.de

Hey,

I've got a problem using my custom view pattern for a feature label
mapping in the gmfmap:

Diagram Label: Diagram Label MyLabel
Edit Method: MESSAGE_FORMAT
Editor Pattern: {0}
Edit Pattern: {0}
Features: label : EString, type : MyType
Read Only: false
View Method: MESSAGE_FORMAT
View Pattern: {0} [{1}]

Now I've got the problem, that the label is shown correctly on the screen:
myLabel [someMyType], but when I try to edit the label by clicking into it
and start typing the new value is not saved. I am only able to change the
value in the properties view.

I am using
- Eclipse Graphical Modeling Framework (GMF) Version: 1.1.0.v20080223
- Eclipse Graphical Modeling Framework (GMF) SDK Version: 2.0.1.v20080411
- and Eclipse 3.4M6

Thanks for your help!

with best regards
Markus
Re: GMFmap Feature Label Mapping - View Pattern vs. Edit Pattern [message #186084 is a reply to message #185812] Fri, 09 May 2008 15:29 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Since the same set of features is used to view and edit label you can't
view two features and edit one. I've submitted
https://bugs.eclipse.org/bugs/show_bug.cgi?id=231322 to resolve this but
for now you should modify MessageFormatParser to skip the type.

Markus wrote:
> Hey,
>
> I've got a problem using my custom view pattern for a feature label
> mapping in the gmfmap:
>
> Diagram Label: Diagram Label MyLabel
> Edit Method: MESSAGE_FORMAT
> Editor Pattern: {0}
> Edit Pattern: {0}
> Features: label : EString, type : MyType
> Read Only: false
> View Method: MESSAGE_FORMAT
> View Pattern: {0} [{1}]
>
> Now I've got the problem, that the label is shown correctly on the screen:
> myLabel [someMyType], but when I try to edit the label by clicking into
> it and start typing the new value is not saved. I am only able to change
> the value in the properties view.
> I am using - Eclipse Graphical Modeling Framework (GMF) Version:
> 1.1.0.v20080223
> - Eclipse Graphical Modeling Framework (GMF) SDK Version: 2.0.1.v20080411
> - and Eclipse 3.4M6
>
> Thanks for your help!
>
> with best regards
> Markus
>
Previous Topic:Property updated in Properties viewer and and change appears not to be saved (though in fact it has
Next Topic:[Announce] GMF 2.1.0 I200805091715 is available
Goto Forum:
  


Current Time: Fri Apr 26 16:01:45 GMT 2024

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

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

Back to the top