Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to start RCP Application fullscreen
How to start RCP Application fullscreen [message #409742] Mon, 14 February 2005 11:43 Go to next message
Michael Borchert is currently offline Michael BorchertFriend
Messages: 27
Registered: July 2009
Junior Member
Hello,

I think it's a silly question, but how can I start the workbench in an RCP
app in Fullscreen mode.

Thanks very much
Michael
Re: How to start RCP Application fullscreen [message #409746 is a reply to message #409742] Mon, 14 February 2005 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehardREMOVE_NO_SPAM.gentz-software.de

hi michael, I didn't found such a function in SWT,
but you can use

Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
configurer.setInitialSize(new Point((int)dim.getWidth(),
(int)dim.getHeight()));

in your
preWindowOpen(IWorkbenchWindowConfigurer configurer)

attention:
if you use
configurer.setSaveAndRestore(true);
in your initialize() then the rcp re-opens in the last used size.
set it to false or start with -clean

regards

ekkehard

Michael Borchert schrieb:
> Hello,
>
> I think it's a silly question, but how can I start the workbench in an RCP
> app in Fullscreen mode.
>
> Thanks very much
> Michael
>
>
Re: How to start RCP Application fullscreen [message #409747 is a reply to message #409746] Mon, 14 February 2005 13:45 Go to previous messageGo to next message
Mike Evans is currently offline Mike EvansFriend
Messages: 237
Registered: July 2009
Senior Member
try

configurer.getWindow().getShell().setMaximized( true );

on postWindowOpen( IWorkbenchWindowConfigurer configurer ) of your
WorkbenchAdvisor

Mike E.

ekkehard wrote:
> hi michael, I didn't found such a function in SWT,
> but you can use
>
> Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
> configurer.setInitialSize(new Point((int)dim.getWidth(),
> (int)dim.getHeight()));
>
> in your
> preWindowOpen(IWorkbenchWindowConfigurer configurer)
>
> attention:
> if you use
> configurer.setSaveAndRestore(true);
> in your initialize() then the rcp re-opens in the last used size.
> set it to false or start with -clean
>
> regards
>
> ekkehard
>
> Michael Borchert schrieb:
>
>> Hello,
>>
>> I think it's a silly question, but how can I start the workbench in an
>> RCP app in Fullscreen mode.
>>
>> Thanks very much
>> Michael
>>

--
Mike Evans
Incremental Ltd.
www.incremental.eu.com
Re: How to start RCP Application fullscreen [message #409749 is a reply to message #409747] Mon, 14 February 2005 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehardREMOVE_NO_SPAM.gentz-software.de

hi mike,

then in preWindowOpen you set the initial size to open the window
then directly after eclipse has opened the window
you set it to maximize
perhaps on some slow machines this can cause some flicker ?
(not tested yet)

I would prefer to calculate it before.

---
but for me I never open it maximized,
I have an "optimal" size and only check if its smaller then screensize
minus some pixels.
---

perhaps Michael always wants to use the whole screen

regards

ekkehard

Mike Evans schrieb:
> try
>
> configurer.getWindow().getShell().setMaximized( true );
>
> on postWindowOpen( IWorkbenchWindowConfigurer configurer ) of your
> WorkbenchAdvisor
>
> Mike E.
>
> ekkehard wrote:
>
>> hi michael, I didn't found such a function in SWT,
>> but you can use
>>
>> Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
>> configurer.setInitialSize(new Point((int)dim.getWidth(),
>> (int)dim.getHeight()));
>>
>> in your
>> preWindowOpen(IWorkbenchWindowConfigurer configurer)
>>
>> attention:
>> if you use
>> configurer.setSaveAndRestore(true);
>> in your initialize() then the rcp re-opens in the last used size.
>> set it to false or start with -clean
>>
>> regards
>>
>> ekkehard
>>
>> Michael Borchert schrieb:
>>
>>> Hello,
>>>
>>> I think it's a silly question, but how can I start the workbench in
>>> an RCP app in Fullscreen mode.
>>>
>>> Thanks very much
>>> Michael
>>>
>
Re: How to start RCP Application fullscreen [message #409753 is a reply to message #409742] Mon, 14 February 2005 15:26 Go to previous messageGo to next message
Michael Borchert is currently offline Michael BorchertFriend
Messages: 27
Registered: July 2009
Junior Member
Thank you both very much. The maximized works better, because the workbench
seems to have no
center behaviour, so when calculating, the window has the size of the
screen, but it is not in the middle of the screen.

Michael

"Michael Borchert" <michael.borchert@abovo.de> schrieb im Newsbeitrag
news:cuq2tp$6jq$1@www.eclipse.org...
> Hello,
>
> I think it's a silly question, but how can I start the workbench in an RCP
> app in Fullscreen mode.
>
> Thanks very much
> Michael
>
Re: How to start RCP Application fullscreen [message #409758 is a reply to message #409742] Mon, 14 February 2005 20:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wiz.vball.net

best way without the flicker or weird resizing on the fly on slower
machin is to override the
createWindowContents function in your WorkbenchAdvisor
this way the app starts full screen right off the bat without any
calculations on your part...

public void createWindowContents(IWorkbenchWindowConfigurer
configurer, Shell shell)
{
super.createWindowContents(configurer, shell);
shell.setMaximized(true);
}



On Mon, 14 Feb 2005 12:43:44 +0100, "Michael Borchert"
<michael.borchert@abovo.de> wrote:

>Hello,
>
>I think it's a silly question, but how can I start the workbench in an RCP
>app in Fullscreen mode.
>
>Thanks very much
>Michael
>
Re: How to start RCP Application fullscreen [message #409961 is a reply to message #409746] Tue, 15 February 2005 04:39 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
Did you in org.eclipse.swt.Device (superclass of Shell) try the methods
getClientArea and getBounds.

PaScaL

ekkehard wrote:
> hi michael, I didn't found such a function in SWT,
> but you can use
>
> Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
> configurer.setInitialSize(new Point((int)dim.getWidth(),
> (int)dim.getHeight()));
>
> in your
> preWindowOpen(IWorkbenchWindowConfigurer configurer)
>
> attention:
> if you use
> configurer.setSaveAndRestore(true);
> in your initialize() then the rcp re-opens in the last used size.
> set it to false or start with -clean
>
> regards
>
> ekkehard
>
> Michael Borchert schrieb:
>
>> Hello,
>>
>> I think it's a silly question, but how can I start the workbench in an
>> RCP app in Fullscreen mode.
>>
>> Thanks very much
>> Michael
>>
Re: How to start RCP Application fullscreen [message #409962 is a reply to message #409961] Tue, 15 February 2005 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehardREMOVE_NO_SPAM.gentz-software.de

hi pascal,
superclass of Shell is in my installation (31M4)
is Decorations and not Device

a test with new Shell() and
getClientArea gives 1432 * 855
getBounds gives 1440 * 882

but awt toolkit gives me the correct size 1920 * 1200

regards

ekkehard

Pascal Rapicault schrieb:
> Did you in org.eclipse.swt.Device (superclass of Shell) try the methods
> getClientArea and getBounds.
>
> PaScaL
>
> ekkehard wrote:
>
>> hi michael, I didn't found such a function in SWT,
>> but you can use
>>
>> Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
>> configurer.setInitialSize(new Point((int)dim.getWidth(),
>> (int)dim.getHeight()));
>>
>> in your
>> preWindowOpen(IWorkbenchWindowConfigurer configurer)
>>
>> attention:
>> if you use
>> configurer.setSaveAndRestore(true);
>> in your initialize() then the rcp re-opens in the last used size.
>> set it to false or start with -clean
>>
>> regards
>>
>> ekkehard
>>
>> Michael Borchert schrieb:
>>
>>> Hello,
>>>
>>> I think it's a silly question, but how can I start the workbench in
>>> an RCP app in Fullscreen mode.
>>>
>>> Thanks very much
>>> Michael
>>>
Re: How to start RCP Application fullscreen [message #409963 is a reply to message #409758] Tue, 15 February 2005 07:26 Go to previous messageGo to next message
Mike Evans is currently offline Mike EvansFriend
Messages: 237
Registered: July 2009
Senior Member
fabulous - thankyou.

Mike E.

FireFly wrote:
> best way without the flicker or weird resizing on the fly on slower
> machin is to override the
> createWindowContents function in your WorkbenchAdvisor
> this way the app starts full screen right off the bat without any
> calculations on your part...
>
> public void createWindowContents(IWorkbenchWindowConfigurer
> configurer, Shell shell)
> {
> super.createWindowContents(configurer, shell);
> shell.setMaximized(true);
> }
>
>
>
> On Mon, 14 Feb 2005 12:43:44 +0100, "Michael Borchert"
> <michael.borchert@abovo.de> wrote:
>
>
>>Hello,
>>
>>I think it's a silly question, but how can I start the workbench in an RCP
>>app in Fullscreen mode.
>>
>>Thanks very much
>>Michael
>>
>
>

--
Mike Evans
Incremental Ltd.
www.incremental.eu.com
Re: How to start RCP Application fullscreen [message #409966 is a reply to message #409758] Tue, 15 February 2005 09:25 Go to previous message
Eclipse UserFriend
Originally posted by: ekkehardREMOVE_NO_SPAM.gentz-software.de

thanks,
at this point I also can set the position where the window should open
with shell.setBounds(x, y, width, heigth)
btw: x and y were recognized, but width and heigth not
but combining this with configurer.setInitialSize() from preWindowOpen()
all is ok - the size and the position

regards

ekkehard

FireFly schrieb:
> best way without the flicker or weird resizing on the fly on slower
> machin is to override the
> createWindowContents function in your WorkbenchAdvisor
> this way the app starts full screen right off the bat without any
> calculations on your part...
>
> public void createWindowContents(IWorkbenchWindowConfigurer
> configurer, Shell shell)
> {
> super.createWindowContents(configurer, shell);
> shell.setMaximized(true);
> }
>
>
>
> On Mon, 14 Feb 2005 12:43:44 +0100, "Michael Borchert"
> <michael.borchert@abovo.de> wrote:
>
>
>>Hello,
>>
>>I think it's a silly question, but how can I start the workbench in an RCP
>>app in Fullscreen mode.
>>
>>Thanks very much
>>Michael
>>
>
>
Previous Topic:Notification of Property changes
Next Topic:Browser RCP example
Goto Forum:
  


Current Time: Tue Apr 23 09:01:15 GMT 2024

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

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

Back to the top