Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » General design problem
General design problem [message #230226] Wed, 07 February 2007 11:35 Go to next message
Nacef is currently offline NacefFriend
Messages: 29
Registered: July 2009
Junior Member
Hi all,

I will explain you my problem but before I have to explain what am I doing.

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
Re: General design problem [message #230537 is a reply to message #230226] Tue, 13 February 2007 00:40 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Have you looked at EditPart#getModelChildren()?

"Nocif" <nacef.l@gmail.com> wrote in message
news:28734247.1170848164476.JavaMail.root@cp1.javalobby.org...
> Hi all,
>
> I will explain you my problem but before I have to explain what am I
> doing.
>
> 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
Previous Topic:Hierachical Model with several Workbenches
Next Topic:1 diagram only
Goto Forum:
  


Current Time: Sat Apr 20 01:23:05 GMT 2024

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

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

Back to the top