|Re: General design problem [message #230537 is a reply to message #230226]
||Tue, 13 February 2007 00:40
Originally posted by: none.unknown.com|
Have you looked at EditPart#getModelChildren()?
"Nocif" <firstname.lastname@example.org> wrote in message
> Hi all,
> I will explain you my problem but before I have to explain what am I
> So actually I am intending to develop a graphical viewer for a type of
> data contained in an xml file. So what I want to have is just a graphical
> view of my data. That's the step I have followed :
> 1) written the data model
> 2) written XML parser to feed the model from data in the xml file.
> 3) created figure classes associated to each model object
> 3) create a graphical view in my application
> 4) then my application traverse the data model elements, calculates the
> right bounds for each elements and draw it on the view.
> it seems to be working correctly.
> Then I wanted to transform it into an eclipse RCP application and use the
> GEF framework.
> What I want to have is :
> 1) Choose an xml file to display
> 2) the parser parses the file
> 3) when adding new elements in the data model while parsing, the model
> fires propertychange events so that they are caught by the editparts
> (controller) and displays the corresponding figures in the editor.
> I can't have this because my model is created before it is set as contents
> for the graphical viewer : so I have only the root editpart created, and
> not the others.
> Can someone please help me, I know I have not explained all the things in
> this post because I don't know what to mention. Please ask me all the
> questions you want may be this will help me understand more.
> Thx to all
Powered by FUDForum
. Page generated in 0.02826 seconds