Class EclipseResourceDelta
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AWrapper<org.eclipse.core.resources.IResourceDelta>
-
- org.faktorips.devtools.abstraction.eclipse.internal.EclipseResourceDelta
-
- All Implemented Interfaces:
AAbstraction,AResourceDelta
public class EclipseResourceDelta extends AWrapper<org.eclipse.core.resources.IResourceDelta> implements AResourceDelta
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.faktorips.devtools.abstraction.AResourceDelta
AResourceDelta.AResourceDeltaKind
-
-
Constructor Summary
Constructors Constructor Description EclipseResourceDelta(org.eclipse.core.resources.IResourceDelta resourceDelta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(AResourceDeltaVisitor visitor)AResourceDeltafindMember(org.eclipse.core.runtime.IPath path)Returns the delta for the resource identified by the given path relative to this delta's resource.intgetFlags()Returns bit-masked flags specifying details about this delta.AResourceDelta.AResourceDeltaKindgetKind()Returns the kind of change this delta represents.AResourcegetResource()Returns the resource this delta refers to.org.eclipse.core.resources.IResourceDeltaunwrap()Returns the platform-specific object corresponding to this abstraction.
-
-
-
Method Detail
-
unwrap
public org.eclipse.core.resources.IResourceDelta unwrap()
Description copied from interface:AAbstractionReturns the platform-specific object corresponding to this abstraction. The generic type parameter is used to avoid casts when assigning to platform-specific objects. It is the obligation of the caller to make sure the right type is used, otherwise aClassCastExceptionwill be thrown.Sample usage:
interface ACalendar extends AAbstraction[...] class LocalDateAsCalendarWrapper extends AWrapper<LocalDate>[...] [...] ACalendar calendar = Wrappers.of(LocalDate.now()).as(ACalendar.class); [...] LocalDate date = calendar.unwrap();- Specified by:
unwrapin interfaceAAbstraction- Overrides:
unwrapin classAWrapper<org.eclipse.core.resources.IResourceDelta>- See Also:
Wrappers#unwrap(AAbstraction) for a way to unwrap potentially null abstractions.
-
findMember
public AResourceDelta findMember(org.eclipse.core.runtime.IPath path)
Description copied from interface:AResourceDeltaReturns the delta for the resource identified by the given path relative to this delta's resource.- Specified by:
findMemberin interfaceAResourceDelta- Parameters:
path- a relative path to a resource contained in this delta's resource- Returns:
- the child delta or
nullif no such resource exists
-
getResource
public AResource getResource()
Description copied from interface:AResourceDeltaReturns the resource this delta refers to.- Specified by:
getResourcein interfaceAResourceDelta
-
getKind
public AResourceDelta.AResourceDeltaKind getKind()
Description copied from interface:AResourceDeltaReturns the kind of change this delta represents.- Specified by:
getKindin interfaceAResourceDelta
-
getFlags
public int getFlags()
Description copied from interface:AResourceDeltaReturns bit-masked flags specifying details about this delta.- Specified by:
getFlagsin interfaceAResourceDelta
-
accept
public void accept(AResourceDeltaVisitor visitor)
- Specified by:
acceptin interfaceAResourceDelta
-
-