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;
}
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;
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<Resource>)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;
@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;
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<Resource>)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;
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;