Examples of forceActive()


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

              }
            });
          }
        });
        firstShellWithStyle.setVisible(true);
        firstShellWithStyle.forceActive();
      } else {
        if (!isDisposed()) {
          super.open();
        }
      }
View Full Code Here

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

      ApplicationWorkbenchWindowAdvisor advisor = ApplicationWorkbenchAdvisor.fgPrimaryApplicationWorkbenchWindowAdvisor;
      if (advisor != null && advisor.isMinimizedToTray())
        advisor.restoreFromTray(shell);
      else if (shell.getMinimized()) {
        shell.setMinimized(false);
        shell.forceActive();
      }

      /* First try if the Bookmark is already visible */
      IEditorReference editorRef = EditorUtils.findEditor(page.getEditorReferences(), bookmark);
      if (editorRef != null) {
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()

      advisor.restoreFromTray(applicationShell);

    /* Restore from being Minimized */
    else if (applicationShell.getMinimized()) {
      applicationShell.setMinimized(false);
      applicationShell.forceActive();
    }

    /* Otherwise force Active */
    else
      applicationShell.forceActive();
View Full Code Here

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

      applicationShell.forceActive();
    }

    /* Otherwise force Active */
    else
      applicationShell.forceActive();
  }

  private void initResources() {

    /* Colors */
 
View Full Code Here

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

    ApplicationWorkbenchWindowAdvisor advisor = ApplicationWorkbenchAdvisor.fgPrimaryApplicationWorkbenchWindowAdvisor;
    if (advisor != null && advisor.isMinimizedToTray())
      advisor.restoreFromTray(applicationShell);
    else if (applicationShell.getMinimized()) {
      applicationShell.setMinimized(false);
      applicationShell.forceActive();
    }
  }

  /**
   * @return the current selected {@link IFolder} of the bookmark explorer or
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()

            IDE.openInternalEditorOnFileStore(page, fileStore);
            Shell shell = window.getShell();
            if (shell != null) {
              if (shell.getMinimized())
                shell.setMinimized(false);
              shell.forceActive();
            }
          } catch (PartInitException e) {
            String msg = NLS.bind(IDEWorkbenchMessages.OpenDelayedFileAction_message_errorOnOpen,
                    fileStore.getName());
            CoreException eLog = new PartInitException(e.getMessage());
View Full Code Here

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

    trayItem.addListener(SWT.DefaultSelection,new Listener() {
      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;
View Full Code Here

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

            if(makeVisible == null)
              makeVisible = !shell.getVisible();
            shell.setVisible(makeVisible);
            if(makeVisible.booleanValue()) {
              shell.setMinimized(false);
              shell.forceActive();
              shell.forceFocus();
            }
          }
        }
//        Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
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.