|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.pldt.common.ArtifactManager
public class ArtifactManager
Manage the artifacts: be able to retrieve an artifact from the id in a marker, for example.
Note that there can be more than one ArtifactManager, distinguished by an ID, probably a markerID. That is, all artifacts of the same markerID (probably shown in the same view) are managed by the same (distinct) ArtifactManager. TODO Question: why can't we just store the objects in an attribute??
| Field Summary | |
|---|---|
static HashMap |
registry
Registry of artifact managers. |
| Constructor Summary | |
|---|---|
ArtifactManager(String id)
Create ArtifactManager from id |
|
| Method Summary | |
|---|---|
void |
addArtifactToHash(IArtifact a)
Add an artifact to the hashtable for future lookup |
void |
clear()
Remove all the artifacts |
static IArtifact |
getArtifact(IMarker marker)
return the artifact for a marker; involves looking up the Artifact Manager, then the Artifact within that. |
HashMap |
getArtifactMap()
get hashtable of artifact map |
Object[] |
getArtifacts()
|
static ArtifactManager |
getManager(String id)
return the ArtifactManager used for managing artifacts of type "id" (probably a marker id) |
boolean |
removeArtifact(IArtifact a)
Remove artifact by artifact object |
boolean |
removeArtifact(String key)
Remove artifact by key |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static HashMap registry
| Constructor Detail |
|---|
public ArtifactManager(String id)
id - | Method Detail |
|---|
public static ArtifactManager getManager(String id)
id -
public static IArtifact getArtifact(IMarker marker)
throws CoreException
marker -
CoreExceptionpublic void addArtifactToHash(IArtifact a)
artifact - public Object[] getArtifacts()
public HashMap getArtifactMap()
public boolean removeArtifact(IArtifact a)
a - the artifact to remove
public boolean removeArtifact(String key)
key -
public void clear()
public String toString()
toString in class Object
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||