Bug 128953 [Markers] Problems view loses focus
Eclipse 3.2M5 The Problems view immediately loses focus, whenever you click on a marker that is opened in the currently active feature editor. To reproduce: - Create a feature.xml that has a warning. - Close all editors. - Double click on the warning in the problems view. (Editor opens, is active) - Now single click on the same item. Result: Problems view immediately gives away focus to the feature editor.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionRevealMarker.java
*/
	public void run() {
		
		IEditorPart editor = part.getSite().getPage().getActiveEditor();
		if (editor == null) {
			return;
		}
		IFile file = ResourceUtil.getFile(editor.getEditorInput());
		if (file != null) {
			IMarker marker = getSelectedMarker();
			if (marker.getResource().equals(file)) {
				try {
					IDE.openEditor(part.getSite().getPage(),
							marker, false);
				} catch (CoreException e) {
				}
			}
		}
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.actions.SelectionProviderAction#selectionChanged(org.eclipse.jface.viewers.IStructuredSelection)
	 */
	public void selectionChanged(IStructuredSelection selection) {
		setEnabled(Util.isSingleConcreteSelection(selection));
		if (isEnabled()) {
			run();
		}
	}
}