[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] generating problem after upgrading to GMF2.0M4
|
- From: Sascha Hänsch <sh@xxxxxxxxx>
- Date: Thu, 25 Jan 2007 12:43:38 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5 (Windows/20051201)
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