import java.util.Collection;
import java.util.List;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.viewers.ISelection;
import org.simantics.db.Resource;
import org.simantics.modeling.ui.modelBrowser.handlers.StandardCopyHandler;
ISelection selection = ISelectionUtils.createSelection(node);
Resource[] rs = new Resource[] {node};
- StandardCopyHandler.copyResourcesToClipboard(rs, selection);
+ StandardCopyHandler.copyResourcesToClipboard(rs, selection, new NullProgressMonitor());
}
public static void pasteNode (Resource target) {
if (element != null) {
newSelection.add(element);
} else {
- throw new DatabaseException("Could not find IElement for " + element);
+ throw new DatabaseException("Could not find IElement for " + element); //$NON-NLS-1$
}
}
if (element != null) {
newSelection.add(element);
} else {
- throw new DatabaseException("Could not find IElement for " + element);
+ throw new DatabaseException("Could not find IElement for " + element); //$NON-NLS-1$
}
}