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
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.views.markers.internal;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.ide.ResourceUtil;
/**
 * ActionRevealMarker is the action for opening the editor on
 * a marker.
 *
 */
public class ActionRevealMarker extends MarkerSelectionProviderAction {