public static class ElementDelta.Builder extends java.lang.Object implements IElementDeltaBuilder
ElementDelta
objects based on elementary changes.Constructor and Description |
---|
Builder(ElementDelta rootDelta)
Constructs a delta tree builder on the given root delta.
|
Modifier and Type | Method and Description |
---|---|
ElementDelta.Builder |
added(IElement element)
Has the same effect as
added(element, 0) . |
ElementDelta.Builder |
added(IElement element,
long flags)
Informs this builder that an element has been added.
|
ElementDelta.Builder |
addResourceDelta(IElement element,
org.eclipse.core.resources.IResourceDelta resourceDelta)
Informs this builder about changes to children of the given element's
corresponding resource that cannot be described in terms of element deltas.
|
ElementDelta.Builder |
changed(IElement element,
long flags)
Informs this builder that an element has been changed.
|
ElementDelta |
getDelta()
Returns the root of the built delta tree.
|
ElementDelta.Builder |
markersChanged(IElement element,
org.eclipse.core.resources.IMarkerDelta[] markerDeltas)
Informs this builder about changes to markers on the given element's
corresponding resource.
|
ElementDelta.Builder |
movedFrom(IElement movedFromElement,
IElement movedToElement)
Informs this builder that an element has been removed
as it has moved to a new location.
|
ElementDelta.Builder |
movedTo(IElement movedToElement,
IElement movedFromElement)
Informs this builder that an element has been added
as it has moved from an old location.
|
ElementDelta.Builder |
removed(IElement element)
Has the same effect as
removed(element, 0) . |
ElementDelta.Builder |
removed(IElement element,
long flags)
Informs this builder that an element has been removed.
|
public Builder(ElementDelta rootDelta)
rootDelta
- not null
public ElementDelta getDelta()
This implementation always returns the root delta instance specified in the constructor.
getDelta
in interface IElementDeltaBuilder
null
if nonepublic ElementDelta.Builder added(IElement element)
IElementDeltaBuilder
added(element, 0)
.added
in interface IElementDeltaBuilder
element
- the added element (not null
)IElementDeltaBuilder.added(IElement, long)
public ElementDelta.Builder added(IElement element, long flags)
IElementDeltaBuilder
added
in interface IElementDeltaBuilder
element
- the added element (not null
)flags
- delta flagspublic ElementDelta.Builder removed(IElement element)
IElementDeltaBuilder
removed(element, 0)
.removed
in interface IElementDeltaBuilder
element
- the removed element (not null
)IElementDeltaBuilder.removed(IElement, long)
public ElementDelta.Builder removed(IElement element, long flags)
IElementDeltaBuilder
removed
in interface IElementDeltaBuilder
element
- the removed element (not null
)flags
- delta flagspublic ElementDelta.Builder changed(IElement element, long flags)
IElementDeltaBuilder
changed
in interface IElementDeltaBuilder
element
- the changed element (not null
)flags
- delta flagspublic ElementDelta.Builder movedFrom(IElement movedFromElement, IElement movedToElement)
IElementDeltaBuilder
movedFrom
in interface IElementDeltaBuilder
movedFromElement
- the element before it was moved to its
current location (not null
)movedToElement
- the element in its new location
(not null
)public ElementDelta.Builder movedTo(IElement movedToElement, IElement movedFromElement)
IElementDeltaBuilder
movedTo
in interface IElementDeltaBuilder
movedToElement
- the element in its new location
(not null
)movedFromElement
- the element before it was moved to its
current location (not null
)public ElementDelta.Builder markersChanged(IElement element, org.eclipse.core.resources.IMarkerDelta[] markerDeltas)
IElementDeltaBuilder
markersChanged
in interface IElementDeltaBuilder
element
- the element with changed markers
(not null
)markerDeltas
- the marker deltas for the element
(not null
, not empty)public ElementDelta.Builder addResourceDelta(IElement element, org.eclipse.core.resources.IResourceDelta resourceDelta)
IElementDeltaBuilder
addResourceDelta
in interface IElementDeltaBuilder
element
- the element with a resource change
(not null
)resourceDelta
- the resource delta for the element
(not null
)