Search in sources :

Example 1 with DeletePathsOperationUI

use of org.eclipse.egit.ui.internal.operations.DeletePathsOperationUI 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;
}
Also used : IPath(org.eclipse.core.runtime.IPath) RepositoriesView(org.eclipse.egit.ui.internal.repository.RepositoriesView) DeletePathsOperationUI(org.eclipse.egit.ui.internal.operations.DeletePathsOperationUI)

Aggregations

IPath (org.eclipse.core.runtime.IPath)1 DeletePathsOperationUI (org.eclipse.egit.ui.internal.operations.DeletePathsOperationUI)1 RepositoriesView (org.eclipse.egit.ui.internal.repository.RepositoriesView)1