Class LazyItemDescriptor<T>
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor<T>
-
- org.eclipse.emf.compare.rcp.internal.extension.impl.LazyItemDescriptor<T>
-
- Type Parameters:
T- an item type
- All Implemented Interfaces:
Comparable<IItemDescriptor<T>>,IItemDescriptor<T>
- Direct Known Subclasses:
MatchEngineFactoryDescriptor
public class LazyItemDescriptor<T> extends AbstractItemDescriptor<T>
Descriptor for an item.
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description LazyItemDescriptor(String label, String description, int rank, org.eclipse.core.runtime.IConfigurationElement config, String id)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IConfigurationElementgetConfig()IConfigurationElementused to instantiate the item.TgetItem()Create an item.-
Methods inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
compareTo, getDescription, getID, getItemFunction, getLabel, getRank, toString
-
-
-
-
Constructor Detail
-
LazyItemDescriptor
public LazyItemDescriptor(String label, String description, int rank, org.eclipse.core.runtime.IConfigurationElement config, String id)
Constructor.- Parameters:
label-IItemDescriptor.getLabel()description-IItemDescriptor.getDescription()rank-IItemDescriptor.getRank()config-IConfigurationElementused to instantiate the item.id-IItemDescriptor.getID()
-
-
Method Detail
-
getConfig
public org.eclipse.core.runtime.IConfigurationElement getConfig()
IConfigurationElementused to instantiate the item.- Returns:
- IConfigurationElement.
-
getItem
public T getItem()
Create an item.- Returns:
- a item instance
-
-