Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double EditPart.java files
Double EditPart.java files [message #468434] Wed, 05 August 2009 14:21 Go to next message
Peter Thijs is currently offline Peter ThijsFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I have the problem that some classes are double generated. I think the
problem is located in my gmf mapping. My mapping is as follows:

* TopNode
* Node Mapping: Model
Child Reference:
Node Mapping: Node
Child Reference:
Referenced Child: Node

Through this mapping the files
project.diagram.edit.parts.NodeEditPart.java and Node2EditPart.java are
generated. But these files have almost the same content. Is it possible
to adjust the project such that Node2EditPart.java isn't generated anymore?
Re: Double EditPart.java files [message #478432 is a reply to message #468434] Thu, 06 August 2009 09:53 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Peter,

No. it's not possible now.

-----------------
Alex Shatalin
Re: Double EditPart.java files [message #478693 is a reply to message #478432] Thu, 06 August 2009 12:35 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hello Peter, hello Alex,

Indeed, at the generation,we obtini two editparts that correspond to child
node and top nodes. The difference is about visual id.

Could explain why there is double code generation.

In the context of the development of Papyrus, we would like in the future to
supress this double editpart in order to gain space memory.
I think that generate only one editpart is big job? isn't it?
The GMF developer team is-it interested by this functionnality? Do you think
develop it?


Patrick

"Alex Shatalin" <vano@borland.com> a
Re: Double EditPart.java files [message #480536 is a reply to message #478693] Mon, 17 August 2009 14:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

> Could explain why there is double code generation.
I think it is because of the legacy code structure.
In the past there was a difference between these EditParts.

> The GMF developer team is-it interested by this functionnality? Do you
> think develop it?
If two generated EditParts contains completely same code then it definitely
make sence to generate only one EditPart.

-----------------
Alex Shatalin
Re: Double EditPart.java files [message #481002 is a reply to message #480536] Wed, 19 August 2009 10:39 Go to previous message
Peter Thijs is currently offline Peter ThijsFriend
Messages: 17
Registered: July 2009
Junior Member
Alex Shatalin wrote:
> Hello Patrick,
>
>> Could explain why there is double code generation.
> I think it is because of the legacy code structure.
> In the past there was a difference between these EditParts.
>
>> The GMF developer team is-it interested by this functionnality? Do you
>> think develop it?
> If two generated EditParts contains completely same code then it
> definitely make sence to generate only one EditPart.
In my files the two generated EditParts contains completely the same
code so it make sence for me to generate only one.
>
> -----------------
> Alex Shatalin
>
>
Peter Thijs
Previous Topic:set attribute on creation of node
Next Topic:GMF migration to 2.2 : OCL error
Goto Forum:
  


Current Time: Thu Mar 28 09:44:54 GMT 2024

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

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

Back to the top