Search in sources :

Example 1 with IgnoreOperationUI

use of org.eclipse.egit.ui.internal.operations.IgnoreOperationUI in project egit by eclipse.

the class IgnoreActionHandler method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    final IResource[] resources = getSelectedResources(event);
    if (resources.length == 0)
        return null;
    List<IPath> paths = new ArrayList<>();
    for (IResource resource : resources) paths.add(resource.getLocation());
    IgnoreOperationUI operation = new IgnoreOperationUI(paths);
    operation.run();
    return null;
}
Also used : IPath(org.eclipse.core.runtime.IPath) ArrayList(java.util.ArrayList) IResource(org.eclipse.core.resources.IResource) IgnoreOperationUI(org.eclipse.egit.ui.internal.operations.IgnoreOperationUI)

Aggregations

ArrayList (java.util.ArrayList)1 IResource (org.eclipse.core.resources.IResource)1 IPath (org.eclipse.core.runtime.IPath)1 IgnoreOperationUI (org.eclipse.egit.ui.internal.operations.IgnoreOperationUI)1