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 08:52 Go to next message
No real name is currently offline No real name
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.

Thanks,
Matthew
Re: Second WorkbenchWindow instance which is fully customizable [message #542270 is a reply to message #541981] Thu, 24 June 2010 08:14 Go to previous message
Paul Webster is currently offline Paul Webster
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.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Resource editor opened event?
Next Topic:"No repository found" problems in Helios
Goto Forum:
  


Current Time: Sat Aug 02 00:41:56 EDT 2014

Powered by FUDForum. Page generated in 0.02475 seconds