Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Second WorkbenchWindow instance which is fully customizable
Second WorkbenchWindow instance which is fully customizable [message #541981] Wed, 23 June 2010 12:52 Go to next message
No real name is currently offline No real nameFriend
Messages: 5
Registered: June 2010
Junior Member
Hello guys,

what I currently need is opening a new instance of workbenchWindow (similar to Window-> New Window), but this WorkbenchWindow must be customizable. This means I want to define new toolbar items and new perspectives and view or editor parts.

Currently I have tried the following:

first: created a class which implements the JFace ApplicationWindow. Here the problem is that I don't have the wonderful functionality of having perspectives, editors and views. Or is there a way to achieve this??

second: I had a look on the classes WorkbenchWindow, WorkbenchWindowConfigurer, WorkbenchWindowAdvisor. Currently I'm not sure if I can realize an own implementation of IWorkbenchWindow which is then customizable. So more or less make a copy of the current WorkbenchWindow implementation and adjust in a way that I can open it. Currently I don't know if this is possible.

Hope somebody knows a way to achieve this. Maybe there is a way to simply create a new instance of workbenchWindow which is afterwards customizable through e.g. own written classes extending WorkbenchWindowAdvisor.

I also searched if something will be added in the e4. I think it would be wonderful to create an empty workbenchwindow which is fully customizable.

Hope somebody can help me.

Re: Second WorkbenchWindow instance which is fully customizable [message #542270 is a reply to message #541981] Thu, 24 June 2010 12:14 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can open the new window in a specific perspective, with
org.eclipse.ui.menus menuContributions (commands) or actionSets defined
for it.

Unless you are an RCP app, that's the best you can do.

If you are an RCP app, and you know you will either have 1 main window
or 1 main window and a secondary window, you can code your
ActionBarAdvisor to fill in different actions depending on the window.


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:RCP applications without org.eclipse.ui.workbench
Next Topic:Detecting active editor change in my plugin
Goto Forum:

Current Time: Sat May 26 10:24:50 GMT 2018

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

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

Back to the top