Examples of findView()


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

            return;
        } catch (Exception e) {
        }
      }
      try {
        IViewPart part = page.findView(PaletteView.ID);
        page.hideView(part);
      } catch (Exception e) {
      }
    }
  }
View Full Code Here

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

  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
   
    RuleView view = (RuleView) page.findView(RuleView.ID);
    // Get the selection
    ISelection selection = view.getSite().getSelectionProvider()
        .getSelection();
    if (selection != null && selection instanceof IStructuredSelection) {
      Object obj = ((IStructuredSelection) selection).getFirstElement();
View Full Code Here

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

  public Object execute(ExecutionEvent event) throws ExecutionException {
    // Get the view
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
   
    ShapeView view = (ShapeView) page.findView(ShapeView.ID);
    // Get the selection
    ISelection selection = view.getSite().getSelectionProvider().getSelection();
    if (selection != null && selection instanceof IStructuredSelection) {
      Object obj = ((IStructuredSelection) selection).getFirstElement();
      // If we had a selection lets open the editor
View Full Code Here

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

  @Override
  public void init(IPageBookViewPage page, IConsole console) {
    IPageSite pageSite = page.getSite();
    IWorkbenchPage workbenchPage = pageSite.getPage();
    IViewPart viewPart = workbenchPage.findView(IConsoleConstants.ID_CONSOLE_VIEW );
    IViewSite viewSite = viewPart.getViewSite();
    IActionBars actionBars = viewSite.getActionBars();
    IToolBarManager toolBarManager = actionBars.getToolBarManager();
    IContributionItem[] items = toolBarManager.getItems();
    for (int i = 0; i < items.length; i++) {
View Full Code Here

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

        IWorkbenchPage page = window.getActivePage();
        if (page == null)
            return null;

        return page.findView(id);
    }

    /**
     * Return a string representation of the given paths suitable for debugging
     * by joining their OS dependent full path representation by ', '
View Full Code Here

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

          return;
        IWorkbenchPage page = ww.getActivePage();
        if(page == null)
          return;
       
        IViewPart v = page.findView("org.xvr.xvrengine.view.navigator");
        if (v != null && v instanceof CommonNavigator)
          ((CommonNavigator)v).getCommonViewer().refresh();   
      }
    });
  }
View Full Code Here

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

        if (window != null) {
          IWorkbenchPage page = window.getActivePage();
          if (page != null) {
            IViewPart view = null;
            if (marker.isSubtypeOf(IMarker.PROBLEM)) {
              view = page.findView(IPageLayout.ID_PROBLEM_VIEW);
            }
            else if (marker.isSubtypeOf(IMarker.TASK)) {
              view = page.findView(IPageLayout.ID_TASK_LIST);
            }
            else if (marker.isSubtypeOf(IMarker.BOOKMARK)) {
View Full Code Here

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

            IViewPart view = null;
            if (marker.isSubtypeOf(IMarker.PROBLEM)) {
              view = page.findView(IPageLayout.ID_PROBLEM_VIEW);
            }
            else if (marker.isSubtypeOf(IMarker.TASK)) {
              view = page.findView(IPageLayout.ID_TASK_LIST);
            }
            else if (marker.isSubtypeOf(IMarker.BOOKMARK)) {
              view = page.findView(IPageLayout.ID_BOOKMARKS);
            }
//            else if (marker.isSubtypeOf(IBreakpoint.BREAKPOINT_MARKER)) {
View Full Code Here

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

            }
            else if (marker.isSubtypeOf(IMarker.TASK)) {
              view = page.findView(IPageLayout.ID_TASK_LIST);
            }
            else if (marker.isSubtypeOf(IMarker.BOOKMARK)) {
              view = page.findView(IPageLayout.ID_BOOKMARKS);
            }
//            else if (marker.isSubtypeOf(IBreakpoint.BREAKPOINT_MARKER)) {
//              view = page.findView(IDebugUIConstants.ID_BREAKPOINT_VIEW);
//            }
           
View Full Code Here

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

//            else if (marker.isSubtypeOf(IBreakpoint.BREAKPOINT_MARKER)) {
//              view = page.findView(IDebugUIConstants.ID_BREAKPOINT_VIEW);
//            }
           
            if (view == null) {
              view = page.findView("org.eclipse.ui.views.AllMarkersView");
            }
            // If the view isn't open on this perspective, don't
            // interact with it
            if (view != null) {
              Method method = view.getClass().getMethod("setSelection", new Class[]{IStructuredSelection.class, boolean.class}); //$NON-NLS-1$
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.