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
This will allow us to remember the storage path that allowed us to load a given resource.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
Field Summary
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
Constructor Summary
ConstructorsConstructorDescriptionStoragePathAdapter
(String storagePath, boolean isLocal) Default constructor.StoragePathAdapter
(String storagePath, boolean isLocal, String commitId, String username) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the commit id.Getter for the commit owner username.boolean
isAdapterForType
(Object type) boolean
isLocal()
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTarget
-
Constructor Details
-
StoragePathAdapter
Default constructor.- Parameters:
storagePath
- The storage path to remember.isLocal
- Whether this storage was local.
-
StoragePathAdapter
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
- Specified by:
isAdapterForType
in interfaceAdapter
- Overrides:
isAdapterForType
in classAdapterImpl
-
getCommitId
Getter for the commit id.- Returns:
- the commit it
-
getUsername
Getter for the commit owner username.- Returns:
- the username of the owner
-
getStoragePath
-
isLocal
public boolean isLocal()
-