import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.IStatusLineManager;
formatSelectionToClipboardText(event);
final Resource[] rs = ResourceAdaptionUtils.toResources(selection);
Job job = new Job("Copy resources") {
-
@Override
protected IStatus run(IProgressMonitor monitor) {
monitor.beginTask("Copy resources to clipboard", 1);
copyResourcesToClipboard(rs, selection, SubMonitor.convert(monitor, 1));
- return null;
+ return Status.OK_STATUS;
}
};
job.setUser(true);