if ( selections.length != 2 ||
!(selections[1] instanceof NakedObjectActionParameter)) {
return;
}
NakedObjectActionParameter nakedObjectActionParameter =
(NakedObjectActionParameter) selections[1];
SingleVariableDeclaration searchDeclaration = (SingleVariableDeclaration)nakedObjectActionParameter.getDeclaration();
CompilationUnit parsedCompilationUnit = getEditorTracker().getParsedCompilationUnit();
if (parsedCompilationUnit == null) {
return;
}