Package org.eclipse.egit.ui.internal.repository

Examples of org.eclipse.egit.ui.internal.repository.RepositoriesView


    final SWTBotView view = getOrOpenView();
    view.bot().label(UIText.RepositoriesView_messsageEmpty);
  }

  protected void refreshAndWait() throws Exception {
    RepositoriesView view = (RepositoriesView) getOrOpenView()
        .getReference().getPart(false);
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.REPO_VIEW_REFRESH, 60, TimeUnit.SECONDS);
    view.refresh();
    jobJoiner.join();
  }
View Full Code Here


* An action to show the repositories view for a resource.
*/
public class ShowRepositoriesViewActionHandler extends RepositoryActionHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    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

            IFormColors.TITLE));
        link.setToolTipText(UIText.CommitEditor_showGitRepo);
        link.addHyperlinkListener(new HyperlinkAdapter() {
          @Override
          public void linkActivated(HyperlinkEvent event) {
            RepositoriesView view;
            try {
              view = (RepositoriesView) PlatformUI.getWorkbench()
                  .getActiveWorkbenchWindow().getActivePage()
                  .showView(RepositoriesView.VIEW_ID);
              view.showRepository(getCommit().getRepository());
            } catch (PartInitException e) {
              Activator.handleError(
                  UIText.CommitEditor_couldNotShowRepository,
                  e, false);
            }
View Full Code Here

public class DeleteFileCommand extends RepositoriesViewCommandHandler<FileNode> {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    Collection<IPath> paths = getSelectedFileAndFolderPaths(event);

    RepositoriesView view = getView(event);
    DeletePathsOperationUI operation = new DeletePathsOperationUI(paths, view.getSite());
    operation.run();

    view.refresh();
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.repository.RepositoriesView

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.