ASTNode selectedNode = NodeFinder.perform(astRoot,
selection.getOffset(), selection.getLength());
if (locations == null) {
IOccurrencesFinder finder = new VariableFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null || locations.length == 0) {
IOccurrencesFinder finder = new CallFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null || locations.length == 0) {
IOccurrencesFinder finder = new StringFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null) {
return;