T - The type of the object describedpublic class ItemRegistry<T> extends java.lang.Object implements IItemRegistry<T>
IItemRegistry.| Constructor and Description |
|---|
ItemRegistry() |
| Modifier and Type | Method and Description |
|---|---|
IItemDescriptor<T> |
add(IItemDescriptor<T> descriptor)
Adds the given
IItemDescriptor to the registry. |
void |
clear()
Clears the registry.
|
IItemDescriptor<T> |
getItemDescriptor(java.lang.String id)
Returns the
IItemDescriptor with the given identifier. |
java.util.List<IItemDescriptor<T>> |
getItemDescriptors()
Returns all the
IItemDescriptor of the registry. |
IItemDescriptor<T> |
remove(java.lang.String id)
Removes the
IItemDescriptor with the given identifier. |
public java.util.List<IItemDescriptor<T>> getItemDescriptors()
IItemDescriptor of the registry.getItemDescriptors in interface IItemRegistry<T>IItemDescriptor of the registryorg.eclipse.eef.ide.internal.extensions.IItemRegistry#getItemDescriptors()public IItemDescriptor<T> getItemDescriptor(java.lang.String id)
IItemDescriptor with the given identifier.getItemDescriptor in interface IItemRegistry<T>id - The identifierIItemDescriptor with the given identifier or null if
none could be foundorg.eclipse.eef.ide.internal.extensions.IItemRegistry#getItemDescriptor(java.lang.String)public IItemDescriptor<T> add(IItemDescriptor<T> descriptor)
IItemDescriptor to the registry.add in interface IItemRegistry<T>descriptor - The descriptiorIItemDescriptor with the same identifier, or
null if no registered IItemDescriptor had the same
identifierorg.eclipse.eef.ide.internal.extensions.IItemRegistry#add(org.eclipse.eef.ide.internal.extensions.IItemDescriptor)public IItemDescriptor<T> remove(java.lang.String id)
IItemDescriptor with the given identifier.remove in interface IItemRegistry<T>id - The identifierIItemDescriptor removed or null if no registered
IItemDescriptor had an identifier matching the given oneorg.eclipse.eef.ide.internal.extensions.IItemRegistry#remove(java.lang.String)public void clear()
clear in interface IItemRegistry<T>org.eclipse.eef.ide.internal.extensions.IItemRegistry#clear()