|
Re: How to start RCP Application fullscreen [message #409746 is a reply to message #409742] |
Mon, 14 February 2005 13:27 |
Eclipse User |
|
|
|
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 #409749 is a reply to message #409747] |
Mon, 14 February 2005 14:07 |
Eclipse User |
|
|
|
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 #409758 is a reply to message #409742] |
Mon, 14 February 2005 20:22 |
Eclipse User |
|
|
|
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 #409962 is a reply to message #409961] |
Tue, 15 February 2005 06:35 |
Eclipse User |
|
|
|
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 #409966 is a reply to message #409758] |
Tue, 15 February 2005 09:25 |
Eclipse User |
|
|
|
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
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03906 seconds