Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » minimize-button in workbenchwindow
minimize-button in workbenchwindow [message #51560] Mon, 15 October 2007 12:57 Go to next message
Eclipse UserFriend
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 13:10 Go to previous message
Eclipse UserFriend
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
Previous Topic:EMF editor in RAP?
Next Topic:UNable to use org.eclipse.rap.jface
Goto Forum:
  


Current Time: Fri Apr 19 05:17:39 GMT 2024

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

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

Back to the top