X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser%2Fhandlers%2FStandardCopyHandler.java;h=1ce5b2d3698ddee5ce7989059dc58de5d6a9fe04;hp=002a31381439d3df4320a22dd79b28d19c012674;hb=21f12e54fc7907e26e49f26f95ee3b62cbecdc61;hpb=7e2197edb8015728a84e9e5c61ccd7eea8eedade diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/handlers/StandardCopyHandler.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/handlers/StandardCopyHandler.java index 002a31381..1ce5b2d36 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/handlers/StandardCopyHandler.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/handlers/StandardCopyHandler.java @@ -21,6 +21,7 @@ import org.eclipse.core.commands.ExecutionEvent; 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; @@ -97,12 +98,11 @@ public class StandardCopyHandler extends AbstractHandler { 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);