Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » second window configuration(openening and coniguring a second workbench window)
icon5.gif  second window configuration [message #524965] Sun, 04 April 2010 22:22 Go to next message
nir dweck is currently offline nir dweckFriend
Messages: 17
Registered: April 2010
Junior Member
Hi,
I am trying to open a second workbench window. I have tried two methods:
1) PlatformUI.getWorkbench().openWorkbenchWindow("perspectiveII ",null);

this opens a new window, but with the menu bar and cool bar of the main window. How do I configure this window and remove these bars?

2)
Display display = PlatformUI.getWorkbench().getDisplay();
m_shell = new Shell(display, SWT.TITLE | SWT.RESIZE | SWT.CLOSE | SWT.MAX | SWT.MIN);
m_shell.open();
Confused
this also opened a new window, but It looks like it is going to be harder to control it without the perspective.
So my questions are:
1) which method is better?
2) If I choose the first method, how do I configure the bars?
Thanks,
Nir Confused Confused
Re: second window configuration [message #525035 is a reply to message #524965] Mon, 05 April 2010 13:58 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

nir dweck wrote:
> Hi,
> I am trying to open a second workbench window. I have tried two methods:
> 1)
> PlatformUI.getWorkbench().openWorkbenchWindow("perspectiveII ",null);
>
> this opens a new window, but with the menu bar and cool bar of the main
> window. How do I configure this window and remove these bars?

It would have to be your workbench window advisor and your application
action bar advisor. You would have to know you were in the second
window and work slightly differently.

But ... it doesn't sound very flexible to me, you would have to be very
careful about which window is opened and which window is allowed to
close at what time.

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


Re: second window configuration [message #525110 is a reply to message #525035] Mon, 05 April 2010 18:40 Go to previous messageGo to next message
nir dweck is currently offline nir dweckFriend
Messages: 17
Registered: April 2010
Junior Member
thanks,
I understand from your reply that you recommend working with a shell or any SWT dialog. My application has a table in the workbench window and any double click needs to open a new window, so I may have quit a lot of open windows and I need a solution that will make it easy to control them.
I was looking for advisors for the second window but couldn't find any, which would actually be the perfect solution for my problem.
Thanks,
Nir
Re: second window configuration [message #525695 is a reply to message #525110] Wed, 07 April 2010 13:15 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You only have one set of advisors.

You would have to write them so they have 2 modes, main window mode and
secondary window mode.

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:Architect Experts: Can you critique my design?
Next Topic:changes to plugin.xml requires a clean start
Goto Forum:
  


Current Time: Thu Apr 25 23:40:30 GMT 2024

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

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

Back to the top