Class StorageTraversal

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, IDiagnosable

    @Beta
    public class StorageTraversal
    extends Object
    implements org.eclipse.core.runtime.IAdaptable, IDiagnosable
    A Resource Traversal is no more than a set of resources used by the synchronization model to determine which resources to load as part of a given logical model.
    • Constructor Detail

      • StorageTraversal

        public StorageTraversal​(Set<? extends org.eclipse.core.resources.IStorage> storages)
        Creates our traversal given its set of resources.
        Parameters:
        storages - The set of resources that are part of this traversal.
      • StorageTraversal

        public StorageTraversal​(Set<? extends org.eclipse.core.resources.IStorage> storages,
                                Diagnostic diagnostic)
        Creates our traversal given its set of resources.
        Parameters:
        storages - The set of resources that are part of this traversal.
        diagnostic - diagnostic of the errors that may occur during loading of the storages.
    • Method Detail

      • getStorages

        public Set<? extends org.eclipse.core.resources.IStorage> getStorages()
        Returns a mutable copy of the set of resources that are part of this traversal.
        Returns:
        A mutable copy of the set of resources that are part of this traversal.
      • removeStorage

        public void removeStorage​(org.eclipse.core.resources.IStorage storage)
        Removes the given storage from this traversal.
        Parameters:
        storage - The storage to be removed.
        Since:
        3.1
      • getDiagnostic

        public Diagnostic getDiagnostic()
        Returns the diagnostic of the storages of this traversal.
        Specified by:
        getDiagnostic in interface IDiagnosable
        Returns:
        the diagnostic
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        See Also:
        IAdaptable.getAdapter(java.lang.Class)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object