protected class InternalSelectionListener implements ISelectionChangedListener {
public void selectionChanged(SelectionChangedEvent event) {
ISelection selection = event.getSelection();
if (selection instanceof StructuredSelection) {
ValidationMessage validationMessage = (ValidationMessage) ((StructuredSelection) selection).getFirstElement();
if (validationMessage != null) {
String uristring = validationMessage.getUri();
ReferencedFileErrorUtility.openEditorAndGotoError(uristring, validationMessage.getLineNumber(), validationMessage.getColumnNumber());
}
}
}