How to open multiple workbench windows? [message #1016858] |
Thu, 07 March 2013 22:44 |
Guido Schnepp Messages: 15 Registered: March 2013 |
Junior Member |
|
|
Hi all,
is it still possible to open different windows (pages?) in E4 from a single Workbench? So I don'T talk about additional editors or views, but full Workbench windows. I've a fairly complex UI built with different PartSashContainers, PartStacks and Parts building an associated set of parts for my new RCP app. Now I need to open this full set of parts multiple times, one for each file the users wants to work with (if the user opens three files, this full set has to be shown three times, one per workbench window each). I could restart the full workbench three times, but there must be a more elegant way. Using complex editor parts seem's not to be a good solution either, since I'd lose the flexibility of user-arranged tabs and subwindows then. To hold everthing together, I'm thinking about a launcher object with main menu, if the product starts without file.
I've googled around a few hours, but only find 3.x samples using the PlatformUI.getWorkbench().openWorkbenchWindow(...) way. Since PlatformUI is no longer part of E4, I maybe just don't know what object to inject to get a similar functionality. While there are different samples available using EPartService to clone parts and switch Perspectives, I don't feel to be able to open additional Workbench windows this way (Q: To find the Workbench object, what search string/id do I have to use?)
Thanks in advance,
Guido
|
|
|
Re: How to open multiple workbench windows? [message #1021930 is a reply to message #1016858] |
Thu, 21 March 2013 00:09 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
Hi Guido,
I think you can use the EModelService. Experiment with findElements and
Cloneelement.
Best regards,
Wim
> Hi all,
>
> is it still possible to open different windows (pages?) in E4 from a single
Workbench? So I don'T talk about additional editors or views, but full
Workbench windows. I've a fairly complex UI built with different
PartSashContainers, PartStacks and Parts building an associated set of parts
for my new RCP app. Now I need to open this full set of parts multiple times,
one for each file the users wants to work with (if the user opens three
files, this full set has to be shown three times, one per workbench window
each). I could restart the full workbench three times, but there must be a
more elegant way. Using complex editor parts seem's not to be a good solution
either, since I'd lose the flexibility of user-arranged tabs and subwindows
then. To hold everthing together, I'm thinking about a launcher object with
main menu, if the product starts without file.
>
> I've googled around a few hours, but only find 3.x samples using the
PlatformUI.getWorkbench().openWorkbenchWindow(...) way. Since PlatformUI is
no longer part of E4, I maybe just don't know what object to inject to get a
similar functionality. While there are different samples available using
EPartService to clone parts and switch Perspectives, I don't feel to be able
to open additional Workbench windows this way (Q: To find the Workbench
object, what search string/id do I have to use?)
>
> Thanks in advance,
> Guido
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04577 seconds