Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Hierachical Model with several Workbenches
Hierachical Model with several Workbenches [message #230234] Wed, 07 February 2007 09:19 Go to next message
Eclipse User
Originally posted by: newsfelle.googlemail.com

Hi,

I have a model which a hierarchical structure. So my graph consists of components that can contain an graph again.
I hope this illustrates it a bit.

-graph
--component
---graph2
----component2/
---/graph2
--/componet
-graph

So know I need a editor that can open my component in a new workbench to edit the graph.

Is something like this possible? And exist there any examples where a behavior like this is realized?

Thanks,

Tobe
Re: Hierachical Model with several Workbenches [message #230529 is a reply to message #230234] Mon, 12 February 2007 19:37 Go to previous message
Eclipse User
Originally posted by: none.unknown.com

Yes, it's possible. I assume you need the component with the graph opened
in a new editor (and not a new workbench) when the user double clicks on the
component. The editpart would get a request of type REQ_OPEN in the
performRequest method. Add the code there to open a new editor. You can
tell the page (which you can get from PlatformUI.getWorkbench()) to open an
editor with any editor input.

"tobe" <newsfelle@googlemail.com> wrote in message
news:5497029.1170858148575.JavaMail.root@cp1.javalobby.org...
> Hi,
>
> I have a model which a hierarchical structure. So my graph consists of
> components that can contain an graph again.
> I hope this illustrates it a bit.
>
> -graph
> --component
> ---graph2
> ----component2/
> ---/graph2
> --/componet
> -graph
>
> So know I need a editor that can open my component in a new workbench to
> edit the graph.
>
> Is something like this possible? And exist there any examples where a
> behavior like this is realized?
>
> Thanks,
>
> Tobe
Previous Topic:z-order: More interesting problem
Next Topic:General design problem
Goto Forum:
  


Current Time: Thu Aug 21 00:44:09 EDT 2014

Powered by FUDForum. Page generated in 0.01479 seconds