|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A marker delta describes the change to a single marker. A marker can either be added, removed or changed. Marker deltas give access to the state of the marker as it was (in the case of deletions and changes) before the modifying operation occured.
This interface is not intended to be implemented by clients.
Method Summary | |
Object |
getAttribute(String attributeName)
Returns the object attribute with the given name. |
boolean |
getAttribute(String attributeName,
boolean defaultValue)
Returns the boolean-valued attribute with the given name. |
int |
getAttribute(String attributeName,
int defaultValue)
Returns the integer-valued attribute with the given name. |
String |
getAttribute(String attributeName,
String defaultValue)
Returns the string-valued attribute with the given name. |
Map |
getAttributes()
Returns a Map with all the attributes for the marker. |
Object[] |
getAttributes(String[] attributeNames)
Returns the attributes with the given names. |
long |
getId()
Returns the id of the marker. |
int |
getKind()
Returns the kind of this marker delta: one of IResourceDelta.ADDED ,
IResourceDelta.REMOVED , or IResourceDelta.CHANGED . |
IMarker |
getMarker()
Returns the marker described by this change. |
IResource |
getResource()
Returns the resource with which this marker is associated. |
String |
getType()
Returns the type of this marker. |
boolean |
isSubtypeOf(String superType)
Returns whether the type of this marker is considered to be a subtype of the given marker type. |
Method Detail |
public Object getAttribute(String attributeName)
String
, Integer
,
or Boolean
.
Returns null
if the attribute is undefined.
The set of valid attribute names is defined elsewhere.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attribute
null
if the attribute is undefined.public int getAttribute(String attributeName, int defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not exist
public String getAttribute(String attributeName, String defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not exist
public boolean getAttribute(String attributeName, boolean defaultValue)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeName
- the name of the attributedefaultValue
- the value to use if the attribute does not exist
public Map getAttributes()
String
,
Integer
, or Boolean
. If the marker has no
attributes then null
is returned.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
String
value type : String
, Integer
, or
Boolean
) or null
.public Object[] getAttributes(String[] attributeNames)
null
or an instance of one
of the following classes: String
, Integer
,
or Boolean
.
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
attributeNames
- the names of the attributes
public long getId()
public int getKind()
IResourceDelta.ADDED
,
IResourceDelta.REMOVED
, or IResourceDelta.CHANGED
.
IResourceDelta.ADDED
,
IResourceDelta.REMOVED
,
IResourceDelta.CHANGED
public IMarker getMarker()
IResourceDelta.REMOVED
, then this is the old marker,
otherwise this is the new marker. Note that if the marker was deleted,
the value returned cannot be used to access attributes.
public IResource getResource()
public String getType()
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
public boolean isSubtypeOf(String superType)
If kind is IResourceDelta.ADDED
, then the information is
from the new marker, otherwise it is from the old marker.
true
if the marker's type
is the same as (or a subtype of) the given type.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |