if (stm != null) {
String label = NameUtils.getSafeLabel(graph, r);
if (!label.isEmpty() && !stm.isAsserted(r))
if (stm != null) {
String label = NameUtils.getSafeLabel(graph, r);
if (!label.isEmpty() && !stm.isAsserted(r))
public static void addResource(Session s, GraphDebugger debugger) throws DatabaseException {
Shell shell = debugger.getShell();
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.setBlockOnOpen(true);
rld.setResourceFilter(ResourceSearch.FILTER_TYPES);
Resource subject_ = debugger.getDebuggerLocation();
if (subject_ == null) {
rld.setBlockOnOpen(true);
rld.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;
rld.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;
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.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_TYPES);
rld.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
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();
@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);
rld.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;
rld.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;
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.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.setInitialSelections(new Object[] {});
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;
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();
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;
rld.setBlockOnOpen(true);
if (rld.open()!=org.eclipse.jface.window.Window.OK) return;
if (rld.getResult()==null) return;