Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:02 Go to next message
Pawan Singh is currently offline Pawan SinghFriend
Messages: 9
Registered: July 2009
Junior Member
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 06:28 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
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] Thu, 08 May 2008 00:34 Go to previous message
Pawan Singh is currently offline Pawan SinghFriend
Messages: 9
Registered: July 2009
Junior Member
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 Jun 27 19:38:18 GMT 2024

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

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

Back to the top