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 delta instance specified in the constructor.
|
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 nullpublic ElementDelta getDelta()
getDelta in interface IElementDeltaBuildernull)public ElementDelta.Builder added(IElement element)
IElementDeltaBuilderadded(element, 0).added in interface IElementDeltaBuilderelement - the added element (not null)IElementDeltaBuilder.added(IElement, long)public ElementDelta.Builder added(IElement element, long flags)
IElementDeltaBuilderadded in interface IElementDeltaBuilderelement - the added element (not null)flags - delta flagspublic ElementDelta.Builder removed(IElement element)
IElementDeltaBuilderremoved(element, 0).removed in interface IElementDeltaBuilderelement - the removed element (not null)IElementDeltaBuilder.removed(IElement, long)public ElementDelta.Builder removed(IElement element, long flags)
IElementDeltaBuilderremoved in interface IElementDeltaBuilderelement - the removed element (not null)flags - delta flagspublic ElementDelta.Builder changed(IElement element, long flags)
IElementDeltaBuilderchanged in interface IElementDeltaBuilderelement - the changed element (not null)flags - delta flagspublic ElementDelta.Builder movedFrom(IElement movedFromElement, IElement movedToElement)
IElementDeltaBuildermovedFrom in interface IElementDeltaBuildermovedFromElement - 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)
IElementDeltaBuildermovedTo in interface IElementDeltaBuildermovedToElement - 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)
IElementDeltaBuildermarkersChanged in interface IElementDeltaBuilderelement - 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)
IElementDeltaBuilderaddResourceDelta in interface IElementDeltaBuilderelement - the element with a resource change
(not null)resourceDelta - the resource delta for the element
(not null)Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0