public class ProjectModelAdapter extends ContainerModelAdapter
ModelAdapter which adapts the Audit framework to the (vestigial)
 model of a Project node. The node is
 the root construct of the model, its contained constructs are the model
 adapters for the ContentDirectory instances deduced from its
 children.ModelAdapter, 
ContainerModelAdapter, 
ProjectModelType| Constructor and Description | 
|---|
ProjectModelAdapter(ModelFactory factory,
                   ModelType type,
                   ContainerModelAdapter workspace,
                   Project project)
Creates a project document. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
collectContainedElements()
Collects the contained  
Elements of the root construct. | 
int | 
compareTo(ModelAdapter that)
Gets whether this model is less than, equal to, or greater than another
 using the natural order defined by this class. 
 | 
boolean | 
contains(ModelAdapter that)
Gets whether this model contains a model. 
 | 
boolean | 
contains(java.lang.Object construct,
        Location location)
Gets whether a construct in this model contains a location. 
 | 
ContainerModelAdapter | 
getContainingAdapter()
Gets the model adapter containing this model adapter, or null if this is 
 the root node. 
 | 
ContentDirectory | 
getDirectory()
Gets the package directory containing this model, or null if none. 
 | 
javax.swing.Icon | 
getIcon(java.lang.Object construct)
Gets the icon for a construct of this model. 
 | 
java.lang.Object | 
getLabel(java.lang.Object construct)
Gets the label for a construct of this model. 
 | 
Node | 
getNode()
Gets the IDE  
Node corresponding to this model, or null if none
 (in particular, if this is the root or a directory model). | 
Project | 
getProject()
Gets the project containing this model. 
 | 
java.lang.Object | 
getSummary(java.lang.Object construct)
Gets the summary for a construct of this model. 
 | 
boolean | 
isModifiable()
Gets whether this model is modifiable. 
 | 
addContainedElement, addContainedModel, addEmbeddedModel, getConstruct, getContainedConstructs, getContainedUnauditableElements, getElementLocations, getLocation, getRootHook, getUrl, isFileacquireReadLock, acquireReadLock, acquireReadLock, beginRead, beginRead, beginReadHook, cancelRead, compareSiblings, contains, contains, contextDescription, createModelAccessError, createModelAccessError, createModelAccessError, edit, endRead, endRead, endReadHook, enter, equals, exit, getAttribute, getCharacter, getColumnOffset, getConstruct, getDependency, getDirectoryAdapter, getElement, getEndLocation, getFactory, getFileAdapter, getFocusLocation, getFocusLocation, getIcon, getIdeContext, getInitialLength, getLabel, getLine, getLineOffset, getLocation, getLocation, getLock, getNavigationPoint, getPrimaryCollationKey, getProjectAdapter, getRoot, getSecondaryCollationKey, getSecondaryCollationString, getShortLabel, getSimpleName, getSummary, getText, getType, getUrl, getURL, getWorkspace, getWorkspaceAdapter, hashCode, isAccessible, isModified, isModified, isNavigable, isReadLockHeld, isWriteLockHeld, release, releaseReadLock, releaseReadLock, setAttribute, toString, verifyModelAccess, verifyReadTransactionpublic ProjectModelAdapter(ModelFactory factory, ModelType type, ContainerModelAdapter workspace, Project project)
ProjectModelType.public ContainerModelAdapter getContainingAdapter()
ModelAdaptergetContainingAdapter in class ModelAdapterpublic ContentDirectory getDirectory()
ModelAdaptergetDirectory in class ModelAdapterpublic Project getProject()
ModelAdaptergetProject in class ModelAdapterprotected void collectContainedElements()
Elements of the root construct.
 Implementations must call ContainerModelAdapter.addContainedElement(oracle.ide.model.Element, java.net.URL) for each contained
 element. This method is invoked by the first invocation of
 ContainerModelAdapter.getContainedConstructs(java.lang.Object) or
 #getContainedUnauditableElements, unless {@link #addContainedModel}
 has already been invoked.
 
 The Audit framework invokes this method with a read transaction active
 on this model.
 The contained elements of a project are the root directories of the contents sets of the adapted project.
collectContainedElements in class ContainerModelAdapterpublic int compareTo(ModelAdapter that)
ModelAdapterModelFactory instances cannot be compared.compareTo in interface java.lang.Comparable<ModelAdapter>compareTo in class ModelAdapterthat - The model to which to compare this model.public boolean contains(ModelAdapter that)
ModelAdaptercontains in class ModelAdapterthat - The ModelAdapter to test.public boolean contains(java.lang.Object construct,
                        Location location)
ModelAdapterModelAdapter location returns true if the construct is
 this or the location returned for the construct by ModelAdapter.getLocation(Object) contains the construct
 (getLocation(construct).contains(location).
 
 Subclasses that can determine containment trivially for some constructs,
 or can extract offset and length directly from some constructs and so
 avoid the expense of creating a  object should override this
 method, delegating to super for any constructs they can't optimize. To
 determine containment of the location by an offset and length, use
 ModelAdapter.contains(int, int, Location) to ensure correct results for
 containment of an empty location.contains in class ModelAdapterconstruct - The construct in this node to test.location - The Location to test.public Node getNode()
ModelAdapterNode corresponding to this model, or null if none
 (in particular, if this is the root or a directory model).getNode in class ModelAdapterpublic boolean isModifiable()
ModelAdapterModelAdapter
 implementation returns false.isModifiable in class ModelAdapterpublic java.lang.Object getLabel(java.lang.Object construct)
ModelAdapterObject, and Audit waits until
 the String is needed to invoke String.valueOf(Object) to get a
 string. Typically, implementations of this method do return a string, but
 the return type allows returning an object which defers expensive
 formatting to its toString() method. If necessary, the string
 should be localized.getLabel in class ModelAdapterpublic java.lang.Object getSummary(java.lang.Object construct)
ModelAdapterObject, and Audit waits until
 the String is needed to invoke String.valueOf(Object) to get a
 string. Typically, implementations of this method do return a string, but
 the return type allows returning an object which defers expensive
 formatting to its toString() method. The string should be
 localized.getSummary in class ModelAdapterpublic javax.swing.Icon getIcon(java.lang.Object construct)
ModelAdaptergetIcon in class ModelAdapter