Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Setting size of window created by PlatformUI.getWorkbench().openWorkbenchWindow
Setting size of window created by PlatformUI.getWorkbench().openWorkbenchWindow [message #327861] Tue, 06 May 2008 14:02 Go to next message
Eclipse UserFriend
Is it possible to set the size of the window created by the following call:

PlatformUI.getWorkbench().openWorkbenchWindow(perspectiveId, null);

It can be done in RCP, but my code is just for a plugin and does not have
access to WorkbenchWindowAdvisor.

BTW - is it possible to get access to IWindowConfigurer or accesss to
methods which control behaviour of the window before the window is created
in "plugins" mode?

-Pawan
Re: Setting size of window created by PlatformUI.getWorkbench().openWorkbenchWindow [message #327879 is a reply to message #327861] Wed, 07 May 2008 02:28 Go to previous messageGo to next message
Eclipse UserFriend
You can ask the result of that call for its shell "getShell()" and then
set the size of the shell using setBounds(). Of course this fails your
"before the window is created" criteria, but it's the best that I can
come up with.

HTH,

Wayne


On Tue, 2008-05-06 at 18:02 +0000, Pawan Singh wrote:
> Is it possible to set the size of the window created by the following call:
>
> PlatformUI.getWorkbench().openWorkbenchWindow(perspectiveId, null);
>
> It can be done in RCP, but my code is just for a plugin and does not have
> access to WorkbenchWindowAdvisor.
>
> BTW - is it possible to get access to IWindowConfigurer or accesss to
> methods which control behaviour of the window before the window is created
> in "plugins" mode?
>
> -Pawan
>
Re: Setting size of window created by PlatformUI.getWorkbench().openWorkbenchWindow [message #327904 is a reply to message #327879] Wed, 07 May 2008 20:34 Go to previous message
Eclipse UserFriend
Thanks for the response.

I have to do some other thing to this window as well: e.g. set its title
and that seems to be available only to RCP applications because one can do
that in WorkbenchWindowAdvisor. In plugins mode, one does not seem to have
access to many key window properties before the window is created.

-Pawan
Previous Topic:The JAR of this class file belongs to contain 'Plug-in Dependencies' which does not allow modificati
Next Topic:how to write a runner
Goto Forum:
  


Current Time: Thu May 01 21:18:31 EDT 2025

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

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

Back to the top