Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.ShowInContext


        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    return new ShowInContext( getMainWidget().getViewer().getInput(), getMainWidget().getViewer()
                        .getSelection() );
                }
            };
        }
View Full Code Here


    // bug 392949), so prepare our own history page input which can contain
    // multiple files to support showing more than one file in history.
    // It's also necessary for a single file that is outside of the
    // workspace (and as such is not an IResource).
    HistoryPageInput historyPageInput = getHistoryPageInput(selection);
    return new ShowInContext(historyPageInput, new StructuredSelection(elements));
  }
View Full Code Here

                .getRepoRelativePath()));
        if (resource != null)
          resources.add(resource);
      }
    }
    return new ShowInContext(null, new StructuredSelection(resources));
  }
View Full Code Here

    RepositoriesView view;
    try {
      view = (RepositoriesView) PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage().showView(
              RepositoriesView.VIEW_ID);
      ShowInContext ctx = new ShowInContext(ResourcesPlugin.getWorkspace().getRoot(), getSelection(event));
      view.show(ctx);
    } catch (PartInitException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return null;
View Full Code Here

          elements.add(container);
        else
          elements.add(entry.getLocation());
      }
    }
    return new ShowInContext(null, new StructuredSelection(elements));
  }
View Full Code Here

    HistoryPageInput historyPageInput = null;
    if (!files.isEmpty()) {
      historyPageInput = new HistoryPageInput(db,
          files.toArray(new File[files.size()]));
    }
    return new ShowInContext(historyPageInput, new StructuredSelection(
        elements));
  }
View Full Code Here

    }

    // M E T H O D S
    @Override
    public ShowInContext getShowInContext() {
        ShowInContext context = new ShowInContext(getEditorInput(), getSelectionProvider().getSelection());
        return context;
    }
View Full Code Here

   * Returns the <code>IShowInSource</code> for this view.
   */
  protected IShowInSource getShowInSource() {
    return new IShowInSource() {
      public ShowInContext getShowInContext() {
        return new ShowInContext(getTreeViewer().getInput(),
            getTreeViewer().getSelection());
      }
    };
  }
View Full Code Here

  public void setFocus() {
    fViewer.getControl().setFocus();
  }

  public ShowInContext getShowInContext() {
    return new ShowInContext(null, getSite().getSelectionProvider().getSelection());
  }
View Full Code Here

  public ShowInContext getShowInContext() {
    // TODO Auto-generated method stub
    //getEditorInput()
     
      ShowInContext context = new ShowInContext(getEditorInput(), getSelectionProvider().getSelection());
     
    return context;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.part.ShowInContext

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.