Examples of forceActive()


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

        }

        Shell parentShell = null;
        if (control != null) {
            parentShell = control.getShell();
            parentShell.forceActive();
        }

        final BalloonWindow window = new BalloonWindow(parentShell, SWT.ON_TOP
            | SWT.TOOL | SWT.CLOSE | SWT.TITLE);
View Full Code Here

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

            public void run() {
                final Shell shell = window.getShell();
                if (shell.isDisposed())
                    return;
                shell.forceActive();
                window.close();
            }
        });
        window.getShell().getDisplay().timerExec(timeout, closeWindow);
View Full Code Here

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

    // Open a new shell to cause the workbench window to lose focus:
    Shell shell = null;
    try {
      shell = new Shell(Display.getCurrent());
      shell.open();
      shell.forceActive();

      tracker.setEnabled(true);
      Thread.sleep(30);
      tracker.setEnabled(false);
      assertEquals(0, tracker.getData().size());
View Full Code Here

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

      }
    } catch (Throwable e) {
      // ignore
    } finally {
      eclipseShell.setEnabled(true);
      eclipseShell.forceActive();
    }
  }
  private Shell getEclipseShell() {
    return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
  }
View Full Code Here

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

      }
    } catch (Throwable e) {
      // ignore
    } finally {
      eclipseShell.setEnabled(true);
      eclipseShell.forceActive();
    }
  }
  private Shell getEclipseShell() {
    return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
  }
View Full Code Here

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

            if (windowShell.getMinimized()) {
              windowShell.setMinimized(false);
            }

            windowShell.open();
            windowShell.forceActive();
          }
        }
      }
    });
View Full Code Here

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

            advisor.restoreFromTray(shell);
          }

          /* Force Active and De-Iconify */
          else {
            shell.forceActive();
            shell.setMinimized(false);
          }
        }
      });
    }
View Full Code Here

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

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

                      page.activate(editor);
                    } catch (Throwable T) {
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.