Package org.eclipse.ui

Examples of org.eclipse.ui.IViewPart


    {
    try
      {
      IWorkbenchPage page = _window.getActivePage();

      IViewPart searchView = page.showView(SearchView.ID);

      DlgSearch dlg = new DlgSearch(_window.getShell(), searchView);

      dlg.open();
      }
View Full Code Here


    IViewReference[] ivrt = iwp.getViewReferences();

    for (IViewReference ivrf : ivrt)
      {
      IViewPart ivpart = ivrf.getView(false);

      if (ivpart instanceof DataUpdatable)
        {
        ((DataUpdatable) ivpart).refresh(subject, clientData);
        }
View Full Code Here

    IWorkbenchWindow wbwin = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IViewReference[] vr = wbwin.getActivePage().getViewReferences();

    for (int i = 0; i < vr.length; i++)
      {
      IViewPart vp = vr[i].getView(true);

      if (vp instanceof IReStartableView)
        {
        ((IReStartableView) vp).restart();
        }
View Full Code Here

      if (window != null) {
        IWorkbenchPage page = window.getActivePage();
        if (page != null) {
          page.showView(_viewIdToOpen, secondaryId,
              IWorkbenchPage.VIEW_CREATE);
          IViewPart justActivated = page.showView(_viewIdToOpen,
              secondaryId, IWorkbenchPage.VIEW_ACTIVATE);
        }
      }

    } catch (Exception e) {
View Full Code Here

    debugView = (TestPageBookView) HandlerUtil.getActivePart(event);
    debugPage = (TestViewPage) debugView.getCurrentPage();
    IProject project = debugPage.getResource().getProject();

    IViewPart scriptExpl = HandlerUtil.getActiveSite(event).getWorkbenchWindow().getActivePage()
            .findView("org.eclipse.dltk.ui.ScriptExplorer");
    if (scriptExpl != null) {
      ISelection select = scriptExpl.getViewSite().getSelectionProvider().getSelection();

      if (select != null && select instanceof StructuredSelection) {
        StructuredSelection structSelect = (StructuredSelection) select;
        Iterator<?> iter = structSelect.iterator();
        while (iter.hasNext()) {
View Full Code Here

      for (Object i : algs) {
        TextRulerLearnerController c = ((TextRulerLearnerController) i);

        c.setEnabled(true);

        IViewPart resultView;

        if ((resultView = getView(TextRulerResultsView.ID, c.getID())) == null) {
          try {
            IViewPart view = PlatformUI
                    .getWorkbench()
                    .getActiveWorkbenchWindow()
                    .getActivePage()
                    .showView(TextRulerResultsView.ID, ((TextRulerLearnerController) i).getID(),
                            IWorkbenchPage.VIEW_CREATE);
View Full Code Here

            DesignerLogger.logErrorWithoutDialog("Unable select element", e);
        }
    }
   
    public static void showPropertiesViewIfThisViewVisible(IWorkbenchPartSite site) throws PartInitException {
        IViewPart viewPart = site.getPage().findView(ID);
        if (site.getPage().isPartVisible(viewPart)) {
            site.getPage().showView(PropertiesView.ID, null, IWorkbenchPage.VIEW_VISIBLE);
        }
    }
View Full Code Here

    public String getJID() {
      if(window == null) return jid;
      return window.getJID();
    }
    private IChatGUI openChatView(IWorkbenchPage page) {
      IViewPart view;
      try {
        view = page.showView(ChatView.ID,Long.toString(System.currentTimeMillis() + ++counter),IWorkbenchPage.VIEW_ACTIVATE);
        if(chat != null)
          ((ChatView)view).init(account,chat);
        else
View Full Code Here

  public Object execute(ExecutionEvent event) throws ExecutionException {     
   
    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
   
    String playlistName;
    IViewPart playlistView;
           
    playlistName = page.getActivePart().getTitle();
    if (page.findViewReference(PlaylistView.ID, playlistName) == null) {
      playlistName = Constants.DEFAULT_PLAYLIST_ID;     
    }
View Full Code Here

  public Object execute(ExecutionEvent event) throws ExecutionException {
   
    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
   
    String playlistName;
    IViewPart playlistView;
           
    playlistName = page.getActivePart().getTitle();
    if (page.findViewReference(PlaylistView.ID, playlistName) == null) {
      playlistName = Constants.DEFAULT_PLAYLIST_ID;     
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IViewPart

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.