Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell.forceFocus()


      public void handleEvent(Event event) {
        Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        shell.setVisible(true);
        shell.setMinimized(false);
        shell.forceActive();
        shell.forceFocus();
      }});
    trayItem.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        Boolean makeVisible = null;
        IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
View Full Code Here


              makeVisible = !shell.getVisible();
            shell.setVisible(makeVisible);
            if(makeVisible.booleanValue()) {
              shell.setMinimized(false);
              shell.forceActive();
              shell.forceFocus();
            }
          }
        }
//        Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
//        boolean visible = !shell.getVisible();
View Full Code Here

                      synchronized (this) {
                        this.wait(100);
                      }
                      shell.forceActive();
                      shell.setActive();
                      shell.forceFocus();

                      page.activate(editor);
                    } catch (Throwable T) {
                      T.printStackTrace();
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.