X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.debug.ui%2Fsrc%2Forg%2Fsimantics%2Fdebug%2Fui%2Finternal%2FDebugUtils.java;h=67ebb19ee46e6de414c38bb9e595d6a12b1dcd78;hp=306f7f9613c6d4a9f593c565524f546d14f46275;hb=59724aa55a75a4efc3ec17e3b4a4ef62f463526e;hpb=1fe7ef332a6f996a13b4dda38bc85a743a154baa diff --git a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/DebugUtils.java b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/DebugUtils.java index 306f7f961..67ebb19ee 100644 --- a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/DebugUtils.java +++ b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/internal/DebugUtils.java @@ -44,7 +44,7 @@ public class DebugUtils { if (stm != null) { String label = NameUtils.getSafeLabel(graph, r); if (!label.isEmpty() && !stm.isAsserted(r)) - name += " (" + label + ")"; + name += " (" + label + ")"; //$NON-NLS-1$ //$NON-NLS-2$ } return name; } @@ -80,14 +80,14 @@ public class DebugUtils { public static void addResource(Session s, GraphDebugger debugger) throws DatabaseException { Shell shell = debugger.getShell(); - SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Create New Resource"); + SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_CreateNewResource); rld.setBlockOnOpen(true); rld.setResourceFilter(ResourceSearch.FILTER_TYPES); Resource subject_ = debugger.getDebuggerLocation(); if (subject_ == null) { rld.setBlockOnOpen(true); - rld.setMessage("Select Subject"); + rld.setMessage(Messages.DebugUtils_SelectSubject); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return; @@ -97,13 +97,13 @@ public class DebugUtils { rld.setBlockOnOpen(true); rld.setResourceFilter(ResourceSearch.FILTER_RELATIONS); - rld.setMessage("Select Predicate"); + rld.setMessage(Messages.DebugUtils_SelectPredicate); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return; final Resource predicate = ((Container)rld.getResult()[0]).get(); - rld.setMessage("Select Type of New Object Instance"); + rld.setMessage(Messages.DebugUtils_SelectTypeOfNewObjectInstance); rld.setResourceFilter(ResourceSearch.FILTER_TYPES); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; @@ -127,12 +127,12 @@ public class DebugUtils { @SuppressWarnings("unchecked") public static void addStatement(Session s, GraphDebugger debugger) throws DatabaseException { Shell shell = debugger.getShell(); - SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Create New Statement"); + SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_CreateNewStatement); Resource subject_ = debugger.getDebuggerLocation(); if (subject_ == null) { rld.setBlockOnOpen(true); - rld.setMessage("Select Subject"); + rld.setMessage(Messages.DebugUtils_SelectSubject); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return; @@ -142,14 +142,14 @@ public class DebugUtils { rld.setBlockOnOpen(true); rld.setResourceFilter(ResourceSearch.FILTER_RELATIONS); - rld.setMessage("Select Predicate"); + rld.setMessage(Messages.DebugUtils_SelectPredicate); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return; final Resource predicate = ((Container)rld.getResult()[0]).get(); rld.setResourceFilter(ResourceSearch.FILTER_ALL); - rld.setMessage("Select Object"); + rld.setMessage(Messages.DebugUtils_SelectObject); rld.setInitialSelections(new Object[] {}); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return; @@ -165,7 +165,7 @@ public class DebugUtils { public static void find(Session s, GraphDebugger debugger) { Shell shell = debugger.getShell(); - SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, "Select Resource to View"); + SearchResourceDialog rld = new SearchResourceDialog(s, false, shell, Messages.DebugUtils_SelectResourceToView); rld.setBlockOnOpen(true); if (rld.open()!=org.eclipse.jface.window.Window.OK) return; if (rld.getResult()==null) return;