Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » About persistence problem
About persistence problem [message #547462] Sat, 17 July 2010 05:59
SonglinPiao  is currently offline SonglinPiao Friend
Messages: 11
Registered: December 2009
Junior Member
Hello, I met a persistence problem when I was storing and opening the file. I fixed two input port and one output port to the node and I implemented this scheme by putting createInputPin and createOutputPin function inside the node's constructor. For example, please see the code below:

protected StartImpl() {
numOfOutputPin = 1;
OutputPin outputSignal = EcasFactory.eINSTANCE.createOutputPin();


Here is the constructor of the node "Start".

The problem ocurred when I tried to open the stored file. After I opened the file, there are four input ports and two output ports. In the case of above code, there are two OutputPins . The number of pins became double size. Does anyone tell me any solution? I know this is because that when I recovered the model from the serialized file, the system called the constructor twice. But I am still confused how to fix it.
Please help. Thanks!
Previous Topic:Add a sub item in the menu Diagram
Next Topic:Maplet framework ?
Goto Forum:

Current Time: Sat May 25 08:27:51 GMT 2024

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

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

Back to the top