public void selectAndOpen(
IModelElement[] elements) {
if (elements == null
|| elements.length == 0) {
IEditorStatusLine statusLine = null;
if (editor != null)
statusLine = (IEditorStatusLine) editor
.getAdapter(IEditorStatusLine.class);
if (statusLine != null)
statusLine
.setMessage(
true,
ActionMessages.OpenAction_error_messageBadSelection,
null);
getShell().getDisplay().beep();