Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » M7 not generating Parser classes anymore
M7 not generating Parser classes anymore [message #127767] Mon, 21 May 2007 07:53 Go to next message
Eclipse UserFriend
Hello

I just updated from GMF M6 to M7 and some changes seem to break one of
my plug-in extensions.
The reason is that the classes XXXAbstractParser,
XXXStructuralFeatureParser and XXXStructuralFeaturesParser (package
diagram.providers) are missing.
Why are those not generated anymore?
I didn't change anything in my model, and going back to M6 generates the
classes as usual.

I extend the AbstractParser to format/parse a label that combines 2
features (which are not simple strings). What can I do now? Is there any
other way to do what I want, or can I get GMF to generate the classes
somehow?

Norbert Schöpke
Re: M7 not generating Parser classes anymore [message #127906 is a reply to message #127767] Mon, 21 May 2007 13:59 Go to previous messageGo to next message
Eclipse UserFriend
This is due to fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=156411
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=156412

AbstractParser should be there. For the rest, check MessageFormatParser
which is default substitution for old parsers. You may also try to use
different LabelTextAccessMethod.

Artem


"Norbert Sch
Re: M7 not generating Parser classes anymore [message #128119 is a reply to message #127906] Tue, 22 May 2007 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Artem Tikhomirov wrote:
> This is due to fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=156411
> and https://bugs.eclipse.org/bugs/show_bug.cgi?id=156412
>
> AbstractParser should be there. For the rest, check MessageFormatParser
> which is default substitution for old parsers. You may also try to use
> different LabelTextAccessMethod.

Thanks I found the MessageFormatParser as I added a feature label with
"MESSAGE_FORMAT" set as edit method. I'll try to override that now.
But what do you mean by "LabelTextAccessMethod"? I didn't find any
reference to this term. Did you mean the other options for the edit
method property, like printf?.

Also, I have a problem with my labels. The features I want to display
(combined in a pattern) are actually properties of two references of the
node that shows the label. Whats the best way to update these references
after parsing the edited values? Do I have to write commands for this or
is there a simpler way?

Thanks for any thoughts
Norbert Schöpke
Re: M7 not generating Parser classes anymore [message #128503 is a reply to message #128119] Wed, 23 May 2007 07:05 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

The idea of the refactoring was to add other ways to produce label text
and parse it. So now you select attributes, select methods to produce
and parse label text and patterns for the selected methods.

LabelTextAccessMethod is enum of possible options.

Norbert Schöpke wrote:
> Artem Tikhomirov wrote:
>> This is due to fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=156411
>> and https://bugs.eclipse.org/bugs/show_bug.cgi?id=156412
>>
>> AbstractParser should be there. For the rest, check MessageFormatParser
>> which is default substitution for old parsers. You may also try to use
>> different LabelTextAccessMethod.
>
> Thanks I found the MessageFormatParser as I added a feature label with
> "MESSAGE_FORMAT" set as edit method. I'll try to override that now.
> But what do you mean by "LabelTextAccessMethod"? I didn't find any
> reference to this term. Did you mean the other options for the edit
> method property, like printf?.
>
> Also, I have a problem with my labels. The features I want to display
> (combined in a pattern) are actually properties of two references of the
> node that shows the label. Whats the best way to update these references
> after parsing the edited values? Do I have to write commands for this or
> is there a simpler way?
>
> Thanks for any thoughts
> Norbert Schöpke
Previous Topic:code generation for model/edit code fails?
Next Topic:Various problems when mapping
Goto Forum:
  


Current Time: Sat May 31 05:07:20 EDT 2025

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

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

Back to the top