GMFmap Feature Label Mapping - View Pattern vs. Edit Pattern [message #185812] |
Thu, 08 May 2008 08:23 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04783 seconds