|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.util.List<java.lang.Object>>
org.eclipse.emf.compare.diff.service.DiffEngineRegistry
public final class DiffEngineRegistry
This registry will be initialized with all the diff engines that could be parsed from the extension points
if Eclipse is running according to EMFPlugin.IS_ECLIPSE_RUNNING
, else it will contain only the two
generic ones. Clients can add their own diff engines in the registry for standalone usage.
Field Summary | |
---|---|
static DiffEngineRegistry |
INSTANCE
Singleton instance of the registry. |
Method Summary | |
---|---|
java.util.List<DiffEngineDescriptor> |
getDescriptors(ModelIdentifier identifier)
This will return the list of engine descriptors available for a given model identifier. |
java.util.List<DiffEngineDescriptor> |
getDescriptors(java.lang.String engineIdentifier)
Deprecated. use getDescriptors(ModelIdentifier) instead. |
IDiffEngine |
getHighestEngine(ModelIdentifier identifier)
Returns the highest priority IDiffEngine registered against the given model identifiers. |
IDiffEngine |
getHighestEngine(java.lang.String engineIdentifier)
Deprecated. use getDescriptors(ModelIdentifier) instead. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Adds the given value in the list of engines known for the given extension. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final DiffEngineRegistry INSTANCE
Method Detail |
---|
public java.util.List<DiffEngineDescriptor> getDescriptors(ModelIdentifier identifier)
identifier
- ModelIdentifier
we seek the matching engines for.
DiffEngineDescriptor
.@Deprecated public java.util.List<DiffEngineDescriptor> getDescriptors(java.lang.String engineIdentifier)
getDescriptors(ModelIdentifier)
instead.
engineIdentifier
- Engine identifier we seek the differencing engines for.public IDiffEngine getHighestEngine(ModelIdentifier identifier)
IDiffEngine
registered against the given model identifiers.
Specific engines will always come before generic ones regardless of their priority. If engines have
been manually added to the list, the latest added will be returned.
identifier
- ModelIdentifier
to search on the registered IDiffEngine
IDiffEngine
for the given engine identifiers.@Deprecated public IDiffEngine getHighestEngine(java.lang.String engineIdentifier)
getDescriptors(ModelIdentifier)
instead.
IDiffEngine
registered against the given engine identifier.
Specific engines will always come before generic ones regardless of their priority. If engines have
been manually added to the list, the latest added will be returned.
engineIdentifier
- An engine identifier to search on the registered IDiffEngine
.IDiffEngine
for the given file extension.public void putValue(java.lang.String key, java.lang.Object value)
key
- The file extension we wish to add an engine for.value
- Engine to be added.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |