Class EclipseResourceDelta

    • Constructor Detail

      • EclipseResourceDelta

        public EclipseResourceDelta​(org.eclipse.core.resources.IResourceDelta resourceDelta)
    • Method Detail

      • unwrap

        public org.eclipse.core.resources.IResourceDelta unwrap()
        Description copied from interface: AAbstraction
        Returns 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 a ClassCastException will 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:
        unwrap in interface AAbstraction
        Overrides:
        unwrap in class AWrapper<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: AResourceDelta
        Returns the delta for the resource identified by the given path relative to this delta's resource.
        Specified by:
        findMember in interface AResourceDelta
        Parameters:
        path - a relative path to a resource contained in this delta's resource
        Returns:
        the child delta or null if no such resource exists
      • getFlags

        public int getFlags()
        Description copied from interface: AResourceDelta
        Returns bit-masked flags specifying details about this delta.
        Specified by:
        getFlags in interface AResourceDelta