Package org.eclipse.ui

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


                for (int i = 0; i < workbenchWindows.length; i++) {
                    IWorkbenchWindow window = workbenchWindows[i];
                    if (window != null) {
                        IWorkbenchPage page = window.getActivePage();
                        if (page != null) {
                            IViewPart part = page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
                            if (part != null && part instanceof IConsoleView) {
                                ConsoleView view = (ConsoleView) part;
                                if (list.contains(view.getConsole())) {
                                    Control control = view.getCurrentPage().getControl();
                                    if (!control.isDisposed()) {
View Full Code Here


      IWorkbenchWindow wbw = wb.getActiveWorkbenchWindow();
      if (wbw != null) {
        IWorkbenchPage page = wbw.getActivePage();
        if (page != null) {
          try {
            IViewPart view = page.findView(PROPERTIES_VIEW_ID);
            if (view instanceof PropertySheet) {
              return (PropertySheet) view;
            }
          } catch (Exception ex) {
            Activator.getLogger().error(ex);
View Full Code Here

 
  public static IWorkbenchPart getWorkbenchPart(String id) {
    IWorkbenchPart part = null;
    IWorkbenchPage page = getActiveWorkbenchPage();
    if (page != null) {
      part = page.findView(id);
    }
    return part;
  }

  public static IWorkbenchPage getActiveWorkbenchPage() {
View Full Code Here

  public static IViewPart findView(String id, IWorkbenchWindow wbw) {
    IWorkbenchPage page = wbw.getActivePage();
    if (page != null) {
      try {
        IViewPart view = page.findView(id);
        return view;
      } catch (Exception ex) {
        Activator.getLogger().error(ex);
      }
    }
View Full Code Here

          IWorkbenchWindow wbw = wb.getActiveWorkbenchWindow();
          if (wbw != null) {
            IWorkbenchPage page = wbw.getActivePage();
            if (page != null) {
              try {
                if (page.findView(UIHelper.ID_PROPERTIES_VIEW) == null) {
                  page.showView(UIHelper.ID_PROPERTIES_VIEW);
                }
              } catch (PartInitException ex) {
                Activator.getLogger().error(ex);
              }
View Full Code Here

      IWorkbenchWindow wbw = wb.getActiveWorkbenchWindow();
      if (wbw != null) {
        IWorkbenchPage page = wbw.getActivePage();
        if (page != null) {
          try {
            if (page.findView(UIHelper.ID_PROPERTIES_VIEW) == null) {
              IViewPart propView = page.showView(UIHelper.ID_PROPERTIES_VIEW);
              IWorkbenchHelpSystem helpSystem = propView.getSite().getWorkbenchWindow().getWorkbench().getHelpSystem();
              //Activator.getLogger().debug(propView.getClass().getName());
              //helpSystem.setHelp(propView, PLUGIN_ID);
            }
View Full Code Here

      target.dropMessage(message);

      // lets try refresh the related views
      IWorkbenchPage activeWorkbenchPage = Workbenches.getActiveWorkbenchPage();
      if (activeWorkbenchPage != null) {
        IViewPart view = activeWorkbenchPage.findView(MessagesView.ID);
        if (view instanceof MessagesView) {
          ColumnViewSupport messageView = (ColumnViewSupport) view;
          messageView.refresh();
        }
      }
View Full Code Here

    if (wb != null) {
      IWorkbenchWindow wbw = wb.getActiveWorkbenchWindow();
      if (wbw != null) {
        IWorkbenchPage page = wbw.getActivePage();
        if (page != null) {
          IViewPart part = page.findView(FabricPerspective.ID_FABRIC_EXPORER);
          if (part != null) {
            // ok, we found the view
            FabricNavigator nav = (FabricNavigator)part;
            // so return it
            return nav;
View Full Code Here

        // If there is no active workbench page, then there can be no Repository view
        IWorkbenchPage page = activeWindow.getActivePage();
        if (page == null) {
            return;
        }
        RepositoryView view = (RepositoryView)page.findView(IGuvnorConstants.REPVIEW_ID);
        if (view != null) {
            view.refresh();
        }
    }
View Full Code Here

        }
    }

    private void showExpressionsView() {
        IWorkbenchPage page = PydevDebugPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
        IViewPart part = page.findView(IDebugUIConstants.ID_EXPRESSION_VIEW);
        if (part == null) {
            try {
                page.showView(IDebugUIConstants.ID_EXPRESSION_VIEW);
            } catch (PartInitException 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.