hierarchy build process [message #126695] |
Fri, 09 April 2004 09:00 |
Eclipse User |
|
|
|
Originally posted by: public.lischke-online.de
Hi all,
I'm a newbie with GEF and am currently learning how to use it. I have read
some articles about how to get started and was able to create a basic
viewer with one feature. What I'm after, though, is a visualization of a
special XML file and now I don't know how to proceed from here.
Loading a DOM from the XML file is done already and I used the root
element as the content element for the root edit part. I created a factory
for the edit parts (some XML nodes will get own edit parts, other won't),
which is queried once to create the part for the root element. Now I want
to create the other edit parts too, but don't kow how. Am I supposed to
put the entire hierarchy completely and manually into GEF? I'd expect the
the top edit part would be queried about its potential children and there
I would have the opportunity to create the other edit parts. But somehow I
can't find anything like that so I think this is not the right way.
I hoped GEF would help me to simplify the task of creating the edit part
hierarchy but so far it looks as if I have to do everything manually when
initially setting up the editor. I would be very thankful for any hint or,
even better, a simple example. I've got that workflow project from IBM but
this is way to complex for a beginner and I can't even get it to build
error free.
Mike
--
www.soft-gems.net
|
|
|
Re: hierarchy build process [message #126708 is a reply to message #126695] |
Fri, 09 April 2004 14:27 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
GEF will build your editpart hierarchy for you. All you have to do is
implement getModelChildren() in your editpart.
"Mike Lischke" <public@lischke-online.de> wrote in message
news:xn0dgtfp23kosd002@news.eclipse.org...
> Hi all,
>
> I'm a newbie with GEF and am currently learning how to use it. I have read
> some articles about how to get started and was able to create a basic
> viewer with one feature. What I'm after, though, is a visualization of a
> special XML file and now I don't know how to proceed from here.
>
> Loading a DOM from the XML file is done already and I used the root
> element as the content element for the root edit part. I created a factory
> for the edit parts (some XML nodes will get own edit parts, other won't),
> which is queried once to create the part for the root element. Now I want
> to create the other edit parts too, but don't kow how. Am I supposed to
> put the entire hierarchy completely and manually into GEF? I'd expect the
> the top edit part would be queried about its potential children and there
> I would have the opportunity to create the other edit parts. But somehow I
> can't find anything like that so I think this is not the right way.
>
> I hoped GEF would help me to simplify the task of creating the edit part
> hierarchy but so far it looks as if I have to do everything manually when
> initially setting up the editor. I would be very thankful for any hint or,
> even better, a simple example. I've got that workflow project from IBM but
> this is way to complex for a beginner and I can't even get it to build
> error free.
>
> Mike
> --
> www.soft-gems.net
|
|
|
Re: hierarchy build process [message #126750 is a reply to message #126708] |
Sat, 10 April 2004 18:23 |
Eclipse User |
|
|
|
Originally posted by: public.lischke-online.de
Randy Hudson wrote
>GEF will build your editpart hierarchy for you. All you have to do is
>implement getModelChildren() in your editpart.
I *knew* it would be something simple. Thank you Randy.
Mike
--
www.soft-gems.net
|
|
|
Powered by
FUDForum. Page generated in 0.03181 seconds