/**
* Executes the default action, in this case the open action.
*/
public void executeDefaultAction(IStructuredSelection selection) {
if (selection.getFirstElement() instanceof INlpElement) {
INlpElement nlpElement = (INlpElement) selection.getFirstElement();
openActionGroup.executeDefaultAction(new StructuredSelection(nlpElement.getResource()));
} else {
openActionGroup.executeDefaultAction(selection);
}
}