minimize-button in workbenchwindow [message #51560] |
Mon, 15 October 2007 08:57  |
Eclipse User |
|
|
|
Originally posted by: wen.ai.gillardon.de
Hi,
the workbenchwindow could be minimized with its own minimize-button. But
if I want to reopen it, what should I do? For example, I click a
external button for reopening this workbenchwindow again. I also want to
know, what the minimize-button really does im background. Any advice?
=======================================================
IWorkbenchWindow window =
PlatformUI.getWorkbench().getActiveWorkbenchWindow();
Shell shell = window.getShell();
shell.setMinimized(false);
shell.setVisible(true);
shell.forceActive();
it doesn't work
=======================================================
And I have seen the new workbench demo online. It's very very nice :-).
By the way, where can I see or download this code? I have checked the
complete project from cvs and it wasn't this.
Thanks a lot.
Greetings.
Wen
|
|
|
Re: minimize-button in workbenchwindow [message #52549 is a reply to message #51560] |
Wed, 17 October 2007 09:10  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
to activate the minimize button doesn't really make a lot of sence in the
current stage of development. Once you minimized the workbench you don't
have a possibility out of the box to restore the workbench. So the best
thing to do at the moment is to remove the minimize button in the
WorkbenchWindowAdvisor like this:
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
[...]
configurer.setShellStyle( SWT.TITLE | SWT.MAX | SWT.RESIZE );
[...]
}
Glad you like the new demo. The demo's source isn't available yet. But we
plan to publish the source in the sandbox module of the CVS soon.
Ciao
Frank
"Wen Ai" <wen.ai@gillardon.de> schrieb im Newsbeitrag
news:fevo4m$q58$1@build.eclipse.org...
> Hi,
>
> the workbenchwindow could be minimized with its own minimize-button. But
> if I want to reopen it, what should I do? For example, I click a external
> button for reopening this workbenchwindow again. I also want to know, what
> the minimize-button really does im background. Any advice?
>
> =======================================================
> IWorkbenchWindow window =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow();
> Shell shell = window.getShell();
> shell.setMinimized(false);
> shell.setVisible(true);
> shell.forceActive();
>
> it doesn't work
> =======================================================
>
> And I have seen the new workbench demo online. It's very very nice :-). By
> the way, where can I see or download this code? I have checked the
> complete project from cvs and it wasn't this.
>
> Thanks a lot.
>
> Greetings.
>
> Wen
|
|
|
Powered by
FUDForum. Page generated in 0.02607 seconds