public class DescriptionAddingContainer extends AbstractContainer
IContainer.Manager
NULL_CONTAINER
Constructor and Description |
---|
DescriptionAddingContainer(IResourceDescription addMe,
IContainer delegate) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName qualifiedName,
boolean ignoreCase) |
java.lang.Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type) |
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri) |
int |
getResourceDescriptionCount() |
java.lang.Iterable<IResourceDescription> |
getResourceDescriptions() |
boolean |
hasResourceDescription(org.eclipse.emf.common.util.URI uri) |
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
|
getExportedObjectsByObject, getSelectables
getExportedObjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExportedObjects
public DescriptionAddingContainer(IResourceDescription addMe, IContainer delegate)
addMe
- the description to be merged into this container. May not be contained in the given delegate.delegate
- the backing container.public java.lang.Iterable<IResourceDescription> getResourceDescriptions()
IResourceDescription
contained in this container. The result is never
null
. The result may be a cached view on the actual content of the underlying resources.public int getResourceDescriptionCount()
getResourceDescriptionCount
in interface IContainer
getResourceDescriptionCount
in class AbstractContainer
IContainer.getResourceDescriptions()
public boolean hasResourceDescription(org.eclipse.emf.common.util.URI uri)
hasResourceDescription
in interface IContainer
hasResourceDescription
in class AbstractContainer
true
if the container can provide a resource description with the given uri
.public boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
isEmpty
in class AbstractCompoundSelectable
true
if the selectable does not provide any descriptions.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)
getExportedObjects
in interface ISelectable
getExportedObjects
in class AbstractCompoundSelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType
in interface ISelectable
getExportedObjectsByType
in class AbstractCompoundSelectable
null
.public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
getResourceDescription
in interface IContainer
getResourceDescription
in class AbstractContainer
IResourceDescription
for the given URI, or null is this container does
not contain such an IResourceDescription
.
The result may be a cached view on the actual content of the underlying resource.