use of org.eclipse.egit.ui.internal.repository.RepositoriesView in project egit by eclipse.
the class GitRepositoriesViewTestBase method refreshAndWait.
protected void refreshAndWait() throws Exception {
RepositoriesView view = (RepositoriesView) getOrOpenView().getReference().getPart(true);
view.refresh();
try {
Job.getJobManager().join(JobFamilies.REPO_VIEW_REFRESH, new TimeoutProgressMonitor(60, TimeUnit.SECONDS));
} catch (OperationCanceledException e) {
fail("Refresh took longer 60 seconds");
}
TestUtil.processUIEvents();
}
use of org.eclipse.egit.ui.internal.repository.RepositoriesView in project egit by eclipse.
the class DeleteFileCommand method execute.
@Override
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;
}
Aggregations