Skip to main content


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 14:19 Go to next message
Eclipse UserFriend
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] Tue, 13 February 2007 00:37 Go to previous message
Eclipse UserFriend
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 Mar 28 19:37:20 GMT 2024

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

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

Back to the top