//Search on visible nodes:
nodes = Lookup.getDefault().lookup(GraphController.class).getModel().getHierarchicalGraphVisible().getNodesTree().toArray();
} else {
nodes = new Node[0];//Search on all nodes
}
searchOptions = new SearchOptions(nodes, null);
table = Lookup.getDefault().lookup(AttributeController.class).getModel().getNodeTable();
} else {
Edge[] edges;
if (onlyVisibleElements) {
//Search on visible edges:
edges = Lookup.getDefault().lookup(GraphController.class).getModel().getHierarchicalGraphVisible().getEdges().toArray();
} else {
edges = new Edge[0];//Search on all edges
}
searchOptions = new SearchOptions(edges, null);
table = Lookup.getDefault().lookup(AttributeController.class).getModel().getEdgeTable();
}
//Fill possible columns to search (first value is all columns):
columnsToSearchComboBox.addItem(NbBundle.getMessage(SearchReplaceUI.class, "SearchReplaceUI.allColumns"));