Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Add a new TextContainer(Need to add some new sections to my model)
Add a new TextContainer [message #528680] Wed, 21 April 2010 13:16 Go to next message
GEF is currently offline GEF
Messages: 8
Registered: April 2010
Junior Member
Hello,

I have the following problem. I have a model which is composed by tree sections: the header section(just Text), a text container section(Several text rows) and a box container(contain several objects of my model object).

Now I need to add a new text container section. I added it to the model:

textContainer = new TextContainer(this);
getListeners().firePropertyChange(PROPERTY_ADD, null, textContainer);

boxContainer = new BoxContainer(this);
getListeners().firePropertyChange(PROPERTY_ADD, null, boxContainer);

variantContainer = new TextContainer(this);
getListeners().firePropertyChange(PROPERTY_ADD, null, variantContainer);


But It does not appear in the figure, Why? Should I add something to the modelPart?, what?

Please, I hope someone can help me!

Thank you in advance!

Federico.-
Re: Add a new TextContainer [message #528912 is a reply to message #528680] Thu, 22 April 2010 11:39 Go to previous message
GEF is currently offline GEF
Messages: 8
Registered: April 2010
Junior Member
Problem solved!

Just I had to add the variantContainer to the model.

Anyway, thank a lot!

Federico
Previous Topic:Saving figure Image - connections are cut short in image if scroll bars
Next Topic:Moving multiples objects
Goto Forum:
  


Current Time: Sat Sep 20 20:23:23 GMT 2014

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

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