Bug 209023 [Markers] New Problems view does not select current problem from editor
I20071106-0816 The Problems view used to select and reveal the problem at a Java editor's caret position. The new Problems view doesn't.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/MarkerViewUtil.java
* The NAME_ATTRIBUTE is the tag for the attribute on a marker 
	 * that can be used to supply the String for the name rather than
	 * using the name of the underlying resource.
	 * @see IMarker#getAttribute(java.lang.String)
	 * @since 3.2
	 */
	public static final String NAME_ATTRIBUTE = "org.eclipse.ui.views.markers.name";
    /**
     * Returns the id of the view used to show markers of the
     * same type as the given marker.
     * 
     * @param marker the marker
     * @return the view id or <code>null</code> if no appropriate view could be determined
     * @throws CoreException if an exception occurs testing the type of the marker
     */
    public static String getViewId(IMarker marker) throws CoreException {
        if (marker.isSubtypeOf(IMarker.TASK)) {
            return IPageLayout.ID_TASK_LIST;
        } else if (marker.isSubtypeOf(IMarker.PROBLEM)) {
            return IPageLayout.ID_PROBLEM_VIEW;
        } else if (marker.isSubtypeOf(IMarker.BOOKMARK)) {
            return IPageLayout.ID_BOOKMARKS;
        }
        return null;
    }
    /**
     * Shows the given marker in the appropriate view in the given page.
     * This must be called from the UI thread.
     * 
     * @param page the workbench page in which to show the marker