Hierachical Model with several Workbenches [message #230234] |
Wed, 07 February 2007 14:19 |
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] |
Tue, 13 February 2007 00:37 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02675 seconds