]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/SCLClipboard.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / SCLClipboard.java
index 3d2b46288f60edd25999f8701757928b1cba92cb..ca2fde521cd315cd1a4a526bdda3636bb8656784 100644 (file)
@@ -4,6 +4,7 @@ import java.util.ArrayList;
 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;
@@ -27,7 +28,7 @@ public class SCLClipboard {
                
                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) {
@@ -54,7 +55,7 @@ public class SCLClipboard {
                                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$
                                }
                        }
                        
@@ -106,7 +107,7 @@ public class SCLClipboard {
                                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$
                                }
                        }