public LocalizedComponentsLocateResult getLocalizedComponentsLocateResult() {
IEditorInput editorInput = this.editorPart.getEditorInput();
FileEditorInput fileEditorInput = (FileEditorInput) editorInput;
IFile file = fileEditorInput.getFile();
LocalizedComponentsLocateResult localizedComponentsLocateResult = null;
try {
localizedComponentsLocateResult = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(file);
} catch (CoreException e) {
ComponenteditorPlugin.getDefault().log(e);
return null;
} catch (LocateException e) {
ComponenteditorPlugin.getDefault().log(e);
return null;
}
if (localizedComponentsLocateResult.getComponents() == null || localizedComponentsLocateResult.getComponents().length == 0) {
return null;
}
return localizedComponentsLocateResult;
}