]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/WikiDiagramViewer.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagramEditor / WikiDiagramViewer.java
index d067ba344035fb7e0a300848d2c76441de742ba0..47913a7e078403a2ed9f51c793eea91635b4aa5c 100644 (file)
@@ -157,7 +157,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
             IHintContext hints = new HintContext();
             hints.setHint(DiagramModelHints.KEY_ACTIVE_EXPERIMENT, experiment);
             if(layer != null) {
-                System.out.println("using layer '"+layer+"'");
+                System.out.println("using layer '"+layer+"'"); //$NON-NLS-1$ //$NON-NLS-2$
                 hints.setHint(DiagramHints.KEY_FIXED_LAYERS, new String[] { layer });
             }
 
@@ -170,7 +170,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
 
     void scheduleZoomToFit() {
         if (sourceDiagram == null)
-            throw new IllegalStateException("source diagram is null");
+            throw new IllegalStateException("source diagram is null"); //$NON-NLS-1$
 
         sourceDiagram.setHint(Hints.KEY_DISABLE_PAINTING, Boolean.TRUE);
         sourceDiagram.setHint(DiagramHints.KEY_INITIAL_ZOOM_TO_FIT, Boolean.TRUE);
@@ -188,7 +188,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
         if(experiment != null)
             hints.setHint(DiagramModelHints.KEY_ACTIVE_EXPERIMENT, experiment);
         if(layer != null) {
-            System.out.println("using layer '"+layer+"'");
+            System.out.println("using layer '"+layer+"'"); //$NON-NLS-1$ //$NON-NLS-2$
             hints.setHint(DiagramHints.KEY_FIXED_LAYERS, new String[] { layer });
         }
         IDiagram d = sessionContext.getSession().syncRequest(DiagramRequests.loadDiagram(new NullProgressMonitor(), getResourceInput2().getModel(null), structuralPath.resources[0], null, structuralPath.removeFromBeginning(0), synchronizer, hints));
@@ -213,7 +213,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
                 }
             });
         } catch (DatabaseException e) {
-            throw new UnsupportedOperationException("Failed to initialize data model synchronizer", e);
+            throw new UnsupportedOperationException("Failed to initialize data model synchronizer", e); //$NON-NLS-1$
         }
     }
 
@@ -311,7 +311,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
 
     @Override
     public void dispose() {
-        System.out.println("RemoteDiagramViewer.dispose()");
+        System.out.println("RemoteDiagramViewer.dispose()"); //$NON-NLS-1$
         if(getSite() != null) {
             IContextService contextService = (IContextService) getSite().getService(IContextService.class);
             contextService.deactivateContext(contextActivation);
@@ -352,7 +352,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
     public void init(IEditorSite site, IEditorInput input)
     throws PartInitException {
         if (!(input instanceof IResourceEditorInput))
-            throw new PartInitException("Invalid input: must be IResourceEditorInput");
+            throw new PartInitException("Invalid input: must be IResourceEditorInput"); //$NON-NLS-1$
         setSite(site);
         setInput(input);
         support = new ResourceEditorSupport(this);
@@ -376,7 +376,7 @@ public class WikiDiagramViewer extends EditorPart implements IResourceEditorPart
         try {
             SerialisationSupport support = session.getService(SerialisationSupport.class);
             ResourceTransferData data = ResourceTransferUtils.readAwtTransferable(support, tr);
-            if ("property".equals(data.getPurpose()))
+            if ("property".equals(data.getPurpose())) //$NON-NLS-1$
                 return data.toResourceArrayArray();
         } catch (UnsupportedFlavorException e) {
             throw new RuntimeException(e);