Examples of bringToTop()


Examples of org.eclipse.help.ui.internal.views.IHelpPartPage.bringToTop()

        view.setInputFromXml(id, name, xml, basePath);
      } else {
        view.setInput(id);
      }
      IWorkbenchPage page = view.getSite().getWorkbenchWindow().getActivePage();
      page.bringToTop(view);
    }
  }
}
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

      /* Find the Editor showing given Selection */
      IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IEditorReference[] editorReferences = activePage.getEditorReferences();
      IEditorReference reference = EditorUtils.findEditor(editorReferences, element);
      if (reference != null)
        activePage.bringToTop(reference.getPart(true));
    }
  }

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || part == null)
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

      /* Find the Editor showing given Selection */
      IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IEditorReference[] editorReferences = activePage.getEditorReferences();
      IEditorReference reference = EditorUtils.findEditor(editorReferences, element);
      if (reference != null)
        activePage.bringToTop(reference.getPart(false));
    }
  }

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || !fViewSite.getPage().isPartVisible(this) || part == null)
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

      /* Find the Editor showing given Selection */
      IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IEditorReference[] editorReferences = activePage.getEditorReferences();
      IEditorReference reference = EditorUtils.findEditor(editorReferences, element);
      if (reference != null)
        activePage.bringToTop(reference.getPart(false));
    }
  }

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || !fViewSite.getPage().isPartVisible(this) || part == null)
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

                                    new StructuredSelection());

                    // JONES: activate view now that there is no current selection.
                    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                    if (!page.isPartVisible(infoView))
                        page.bringToTop(infoView);
                                      
                    // we got here and info was null? Don't want to fail on first attempt
                    infoView = (MosaicInfoView) ApplicationGIS.getView(false,MosaicInfoView.VIEW_ID);
                    infoView.updateInfo(request);
                }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

                if (preferenceStore.getBoolean(PROJECT_EXPLORER_LINKED)) {
                    if (obj instanceof IProjectElement) {
                        IWorkbenchPage page = getSite().getPage();
                        IEditorPart part = page.findEditor(ApplicationGIS
                                .getInput((IProjectElement) obj));
                        page.bringToTop(part);
                    }
                }
            }

        });
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

              if( infoView.getSite().getSelectionProvider()!=null )
                infoView.getSite().getSelectionProvider().setSelection(new StructuredSelection());
         
          //JONES: activate view now that there is no current selection.
              IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
          if (!page.isPartVisible(infoView)) page.bringToTop(infoView);
                   
                    // we got here and info was null? Don't want to fail on first attempt
                    infoView=(InfoView2) ApplicationGIS.getView(false, InfoView2.VIEW_ID);                   
          infoView.search( request );
                }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

            // interact with it
            if (view != null) {
              Method method = view.getClass().getMethod("setSelection", new Class[]{IStructuredSelection.class, boolean.class}); //$NON-NLS-1$
              if (method != null) {
                method.invoke(view, new Object[]{new StructuredSelection(marker), Boolean.TRUE});
                page.bringToTop(view);
              }
            }
          }
        }
      }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

    if (window == null) return;
    IWorkbenchPage page = window.getActivePage();
    if (page != null) {
      try {
        IViewPart view = page.showView(CoverageView.ID, null, IWorkbenchPage.VIEW_CREATE);
        page.bringToTop(view);
      } catch (PartInitException e) {
        log(e);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchPage.bringToTop()

    if (window == null) return;
    IWorkbenchPage page = window.getActivePage();
    if (page != null) {
      try {
        IViewPart view = page.showView(CoverageView.ID, null, IWorkbenchPage.VIEW_CREATE);
        page.bringToTop(view);
      } catch (PartInitException e) {
        log(e);
      }
    }
  }
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.