Class StoragePathAdapter

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.compare.ide.internal.utils.StoragePathAdapter
All Implemented Interfaces:
Adapter, Adapter.Internal

public class StoragePathAdapter extends AdapterImpl
This will allow us to remember the storage path that allowed us to load a given resource.
  • Constructor Details

    • StoragePathAdapter

      public StoragePathAdapter(String storagePath, boolean isLocal)
      Default constructor.
      Parameters:
      storagePath - The storage path to remember.
      isLocal - Whether this storage was local.
    • StoragePathAdapter

      public StoragePathAdapter(String storagePath, boolean isLocal, String commitId, String username)
      Constructor.
      Parameters:
      storagePath - The storage path to remember.
      isLocal - Whether this storage was local.
      commitId - The identifier of the commit.
      username - The username of the owner of the commit.
  • Method Details

    • isAdapterForType

      public boolean isAdapterForType(Object type)
      Specified by:
      isAdapterForType in interface Adapter
      Overrides:
      isAdapterForType in class AdapterImpl
    • getCommitId

      public String getCommitId()
      Getter for the commit id.
      Returns:
      the commit it
    • getUsername

      public String getUsername()
      Getter for the commit owner username.
      Returns:
      the username of the owner
    • getStoragePath

      public String getStoragePath()
    • isLocal

      public boolean isLocal()