use of org.eclipse.egit.core.op.AssumeUnchangedOperation in project egit by eclipse.
the class StagingView method assumeUnchanged.
private void assumeUnchanged(@NonNull IStructuredSelection selection) {
List<IPath> locations = new ArrayList<>();
collectPaths(selection.toList(), locations);
if (locations.isEmpty()) {
return;
}
JobUtil.scheduleUserJob(new AssumeUnchangedOperation(currentRepository, locations, true), UIText.AssumeUnchanged_assumeUnchanged, JobFamilies.ASSUME_NOASSUME_UNCHANGED);
}
use of org.eclipse.egit.core.op.AssumeUnchangedOperation in project egit by eclipse.
the class NoAssumeUnchangedActionHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IResource[] resources = getSelectedResources(event);
if (resources.length == 0)
return null;
AssumeUnchangedOperation op = new AssumeUnchangedOperation(Arrays.asList(resources), false);
JobUtil.scheduleUserJob(op, UIText.AssumeUnchanged_assumeUnchanged, JobFamilies.ASSUME_NOASSUME_UNCHANGED);
return null;
}
use of org.eclipse.egit.core.op.AssumeUnchangedOperation in project egit by eclipse.
the class AssumeUnchangedActionHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IResource[] resources = getSelectedResources(event);
if (resources.length == 0)
return null;
AssumeUnchangedOperation op = new AssumeUnchangedOperation(Arrays.asList(resources), true);
JobUtil.scheduleUserJob(op, UIText.AssumeUnchanged_assumeUnchanged, JobFamilies.ASSUME_NOASSUME_UNCHANGED);
return null;
}
Aggregations