/*
* Method declared in IAction.
*/
@Override
public final void run() {
ISourceModule inputElement = EditorUtility.getEditorInputModelElement(
fEditor, false);
if (!(inputElement instanceof ISourceModule && inputElement.exists()))
return;
// ITypeRoot typeRoot= (ITypeRoot) inputElement;
ISourceRange sourceRange;
try {
sourceRange = inputElement.getSourceRange();
if (sourceRange == null || sourceRange.getLength() == 0) {
MessageDialog
.openInformation(
fEditor.getEditorSite().getShell(),
Messages.StructureSelectionAction_0,