Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbench


       
        return null;
    }

    private IWorkbenchWindow getWindow() {
        IWorkbench bench = PlatformUI.getWorkbench();
        if (bench == null)
            return null;
        IWorkbenchWindow window = bench.getActiveWorkbenchWindow();
        if (window == null) {
            if (bench.getWorkbenchWindowCount() > 0)
                window = bench.getWorkbenchWindows()[0];
        }
        return window;
    }
View Full Code Here


    public void updateUI( Runnable runnable ) {
        if (Display.getCurrent() != null) {
            runnable.run();
            return;
        }
        IWorkbench bench = PlatformUI.getWorkbench();
        Display display = null;
        if (bench != null)
            display = bench.getDisplay();

        if (display == null)
            display = Display.getDefault();

        display.asyncExec(runnable);
View Full Code Here

        if (part == null)
            return null;
        return (IEditorSite) part.getSite();
    }
    private IWorkbenchWindow getWindow() {
        IWorkbench bench=PlatformUI.getWorkbench();
        if( bench==null)
            return null;
        IWorkbenchWindow window = bench.getActiveWorkbenchWindow();
        if( window==null ){
            if( bench.getWorkbenchWindowCount()>0 )
                window=bench.getWorkbenchWindows()[0];
        }
        return window;
    }
View Full Code Here

                ProjectUIPlugin.log("", e); //$NON-NLS-1$
            }
        }
       
        if( needsUserInput ){
            IWorkbench workbench = PlatformUI.getWorkbench();
            IWorkbenchWindow activeWorkbenchWindow = workbench.getActiveWorkbenchWindow();
            Shell shell = activeWorkbenchWindow.getShell();
            shell.setActive();
            Map<Class< ? extends State>, WorkflowWizardPageProvider> pageMapping=new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
            ResourceSelectionPage resourceSelectionPage = new ResourceSelectionPage(Messages.AddToNewMap_resource_selection_page_title);
            resourceSelectionPage.setCollapseCheckedInput(true);
View Full Code Here

  public void validateValue() throws Exception {
  }

 
  public void actionPerformed(ActionEvent evt) {
    IWorkbench workbench = PlatformUI.getWorkbench();
    if(workbench==null)
      return;
    IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();
    IWorkbenchWindow window=null;
    if(windows!=null&&windows.length>0)
      window=windows[0];
    if(window==null)
      return;
View Full Code Here

  public void earlyStartup() {
    if (context != null) {
      Display.getDefault().asyncExec(new Runnable() {
        public void run() {
          try {
            IWorkbench bench = PlatformUI.getWorkbench();
            if (bench != null) {
              IWorkbenchWindow window = bench
                  .getActiveWorkbenchWindow();
              if (window != null) {
                window.getActivePage().showView(
                    WorkflowView.ID_VIEW);
              }
View Full Code Here

     
      addPrefPages(paramPrefPages, rootNode);
    }
   
    private Shell getParentShell() {
      IWorkbench workbench = PlatformUI.getWorkbench();
      IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();
  
      //possibly a better, less seamingly arbitrary way to do this
      IWorkbenchWindow window = windows[0];
      Shell parentShell = window.getShell();
      return parentShell;
View Full Code Here

  public void earlyStartup() {
    if (!getFullscreenStartup())
      return;
   
        final IWorkbench workbench = PlatformUI.getWorkbench();
        workbench.getDisplay().asyncExec(new Runnable() {
          public void run() {
            IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
            if (window != null) {
              Shell mainShell = window.getShell();
            getDefault().setFullScreen(mainShell, true);
            }
          }
View Full Code Here

    {
    }

    public IEditorInput getEditorInput()
    {
        IWorkbench bench = PerlDebugPlugin.getDefault().getWorkbench();
        if (bench != null)
        {
            IWorkbenchWindow window = bench.getActiveWorkbenchWindow();
            if (window != null)
            {
                IWorkbenchPage page = window.getActivePage();
                if (page != null)
                {
View Full Code Here

    }

    protected IDocument getDocument()
    {
        IDocument doc = null;
        IWorkbench bench = PerlDebugPlugin.getDefault().getWorkbench();
        if (bench != null)
        {
            IWorkbenchWindow window = bench.getActiveWorkbenchWindow();
            if (window != null)
            {
                IWorkbenchPage page = window.getActivePage();
                if (page != null)
                {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkbench

Copyright © 2018 www.massapicom. 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.