Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » generating problem after upgrading to GMF2.0M4
generating problem after upgrading to GMF2.0M4 [message #96632] Thu, 25 January 2007 11:43 Go to next message
Eclipse UserFriend
Originally posted by: sh.wilken.de

Hi friends,

After upgrading to 2.0M4 we have some merging problems concerning
protected methods by "@generated NOT".

If we change the code of a method and mark it by "@generated NOT", we
got a second method with the same name after the next generation like
the following example

/**
* Creates figure for this edit part.
*
* Body of this method does not depend on settings in
* generation model
* so you may safely remove <i>generated</i> tag and modify it.
*
* @generated NOT
*/
protected NodeFigure createMainFigure() {
NodeFigure figure = createNodePlate();
figure.setLayoutManager(new StackLayout());
IFigure shape = createNodeShape();
figure.add(shape);
shape.setBackgroundColor(ColorConstants.lightGreen);
contentPane = setupContentPane(shape);
return figure;
}


/**
* Creates figure for this edit part.
*
* Body of this method does not depend on settings in
* generation model
* so you may safely remove <i>generated</i> tag and modify it.
*
* @generated
*/
protected NodeFigure createMainFigure() {
NodeFigure figure = createNodePlate();
figure.setLayoutManager(new StackLayout());
IFigure shape = createNodeShape();
figure.add(shape);
contentPane = setupContentPane(shape);
return figure;
}

Any ideas how we can fix this problem ?

thanks and regards
Sascha
Re: generating problem after upgrading to GMF2.0M4 [message #96693 is a reply to message #96632] Thu, 25 January 2007 12:38 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sascha_Hänsch,

Looks like a problem described in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=168713

-----------------
Alex Shatalin
Previous Topic:Re: Is it possible to create a connection before its source and target elements are created?
Next Topic:Initialization of diagramfile from existing domainmodel incomplete
Goto Forum:
  


Current Time: Sat Oct 19 10:00:02 GMT 2024

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

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

Back to the top