| java.lang.Object org.eclipse.ui.internal.ide.undo.MarkerDescription
MarkerDescription | public class MarkerDescription (Code) | | MarkerDescription is a lightweight description of a marker that can be used
to describe a marker to be created or updated.
This class is not intended to be instantiated or used by clients.
since: 3.3 |
Constructor Summary | |
public | MarkerDescription(IMarker marker) Create a marker description from the specified marker. | public | MarkerDescription(String type, Map attributes, IResource resource) Create a marker description from the specified marker type, attributes,
and resource. |
Method Summary | |
public IMarker | createMarker() Create a marker from the marker description. | public IResource | getResource() Return the resource associated with this marker. | public String | getType() Return the marker type associated with this marker. | public void | updateMarker(IMarker marker) Update an existing marker using the attributes in the marker description. |
resource | IResource resource(Code) | | |
MarkerDescription | public MarkerDescription(IMarker marker) throws CoreException(Code) | | Create a marker description from the specified marker.
Parameters: marker - the marker to be described throws: CoreException - |
MarkerDescription | public MarkerDescription(String type, Map attributes, IResource resource)(Code) | | Create a marker description from the specified marker type, attributes,
and resource.
Parameters: type - the type of marker to be created. Parameters: attributes - the attributes to be assigned to the marker Parameters: resource - the resource on which the marker should be created |
createMarker | public IMarker createMarker() throws CoreException(Code) | | Create a marker from the marker description.
the created marker throws: CoreException - |
getResource | public IResource getResource()(Code) | | Return the resource associated with this marker.
the resource associated with this marker |
getType | public String getType()(Code) | | Return the marker type associated with this marker.
the string marker type of this marker |
updateMarker | public void updateMarker(IMarker marker) throws CoreException(Code) | | Update an existing marker using the attributes in the marker description.
Parameters: marker - the marker to be updated throws: CoreException - |
|
|