| java.lang.Object org.eclipse.ui.views.markers.MarkerViewUtil
MarkerViewUtil | public class MarkerViewUtil (Code) | | Utility class for showing markers in the marker views.
|
Field Summary | |
final public static String | NAME_ATTRIBUTE 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. | final public static String | PATH_ATTRIBUTE The PATH_ATTRIBUTE is the tag for the attribute on a marker
that can be used to supply the String for the path rather than
using the path of the underlying resource. |
Method Summary | |
public static String | getViewId(IMarker marker) Returns the id of the view used to show markers of the
same type as the given marker. | public static boolean | showMarker(IWorkbenchPage page, IMarker marker, boolean showView) Shows the given marker in the appropriate view in the given page. |
NAME_ATTRIBUTE | final public static String NAME_ATTRIBUTE(Code) | | 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 Also: IMarker.getAttribute(java.lang.String) since: 3.2 |
PATH_ATTRIBUTE | final public static String PATH_ATTRIBUTE(Code) | | The PATH_ATTRIBUTE is the tag for the attribute on a marker
that can be used to supply the String for the path rather than
using the path of the underlying resource.
See Also: IMarker.getAttribute(java.lang.String) since: 3.2 |
getViewId | public static String getViewId(IMarker marker) throws CoreException(Code) | | Returns the id of the view used to show markers of the
same type as the given marker.
Parameters: marker - the marker the view id or null if no appropriate view could be determined throws: CoreException - if an exception occurs testing the type of the marker |
showMarker | public static boolean showMarker(IWorkbenchPage page, IMarker marker, boolean showView)(Code) | | Shows the given marker in the appropriate view in the given page.
This must be called from the UI thread.
Parameters: page - the workbench page in which to show the marker Parameters: marker - the marker to show Parameters: showView - true if the view should be shown firstfalse to only show the marker if the view is already showing true if the marker was successfully shown,false if not |
|
|