public interface IProject
Modifier and Type | Method and Description |
---|---|
AddLinkedProjectResult |
addLinkedProject(java.io.File aLinkedProjectFile,
java.awt.Component aInvoker)
Add the linked project
|
boolean |
addNickname(java.lang.String aNickname)
Add a nickname into this project.
|
void |
addProjectDiagramListener(IProjectDiagramListener listener) |
void |
addProjectListener(IProjectListener listener) |
void |
addProjectModelListener(IProjectModelListener listener) |
int |
allLevelModelElementCount() |
int |
allLevelModelElementCount(java.lang.String modelType) |
java.util.Iterator |
allLevelModelElementIterator()
Retrieve root level model elements from project.
|
java.util.Iterator |
allLevelModelElementIterator(java.lang.String modelType)
Retrieve root level model elements from project.
|
java.util.Iterator |
allLevelModelElementIterator(java.lang.String[] modelTypes)
Retrieve root level model elements from project.
|
java.util.Iterator |
diagramIterator() |
void |
disposeTransientModels() |
java.lang.String |
getCommentTableSortColumn() |
IDiagramUIModel |
getDiagramById(java.lang.String id) |
IDiagramElement |
getDiagramElementById(java.lang.String id) |
java.lang.String |
getId() |
java.lang.String |
getLanguage() |
IProject[] |
getLinkedProjects()
Get the linked project
|
ILogicalView |
getLogicalView()
Get logical view of project.
|
IModelElement |
getModelElementByAddress(java.lang.String aAddress) |
IModelElement |
getModelElementById(java.lang.String id) |
java.lang.String |
getName() |
java.lang.String |
getNickname()
Retrieve the current nickname of this project.
|
java.lang.String[] |
getNicknames()
Retrieve nicknames defined in this project.
|
java.io.File |
getProjectFile() |
IProjectProperties |
getProjectProperties() |
java.lang.String |
getProjectPublisherBasePath() |
boolean |
isCommentTableSortAscending() |
boolean |
isModelQualityBackgroundCheck() |
boolean |
isModified()
To detect is the project being modified.
|
java.util.Iterator |
modelElementIterator()
Retrieve root level model elements from project.
|
java.util.Iterator |
modelElementIterator(java.lang.String modelType)
Retrieve root level model elements from project.
|
java.util.Iterator |
modelElementIterator(java.lang.String[] modelTypes)
Retrieve root level model elements from project.
|
boolean |
removeLinkedProject(IProject aLinkedProject)
Remove the linked project
|
void |
removeProjectDiagramListener(IProjectDiagramListener listener) |
void |
removeProjectListener(IProjectListener listener) |
void |
removeProjectModelListener(IProjectModelListener listener) |
void |
setCommentTableSortAscending(boolean aCommentTableSortAscending) |
void |
setCommentTableSortColumn(java.lang.String aCommentTableSortColumn) |
void |
setName(java.lang.String name)
Project renaming is a significant action and is not allowed to be done via API.
|
void |
setNickname(java.lang.String aNickname)
Switch the current nickname of this project.
|
void |
setProjectPublisherBasePath(java.lang.String aBasePath) |
IProjectTransaction |
startProjectTransaction() |
IModelElement[] |
toAllLevelModelElementArray()
Retrieve all level model elements from project.
|
IModelElement[] |
toAllLevelModelElementArray(java.lang.String modelType)
Retrieve all level model elements from project.
|
IModelElement[] |
toAllLevelModelElementArray(java.lang.String[] modelTypes)
Retrieve all level model elements from project.
|
IDiagramUIModel[] |
toDiagramArray() |
IModelElement[] |
toModelElementArray()
Retrieve root level model elements from project.
|
IModelElement[] |
toModelElementArray(java.lang.String modelType)
Retrieve root level model elements from project.
|
IModelElement[] |
toModelElementArray(java.lang.String[] modelTypes)
Retrieve root level model elements from project.
|
java.util.Iterator |
transientAllLevelModelElementIterator() |
java.util.Iterator |
transientAllLevelModelElementIterator(java.lang.String modelType) |
java.lang.String getId()
void setName(java.lang.String name) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if renaming a Teamwork Project.java.lang.String getName()
IProjectProperties getProjectProperties()
java.io.File getProjectFile()
boolean isModified()
java.lang.String[] getNicknames()
boolean addNickname(java.lang.String aNickname)
aNickname
- the nickname will be added into this project.void setNickname(java.lang.String aNickname)
aNickname
- nickname will be switched to.java.lang.String getNickname()
java.lang.String getLanguage()
IModelElement getModelElementByAddress(java.lang.String aAddress)
IModelElement getModelElementById(java.lang.String id)
java.util.Iterator modelElementIterator()
java.util.Iterator modelElementIterator(java.lang.String modelType)
modelType
- type of model element to retrievejava.util.Iterator modelElementIterator(java.lang.String[] modelTypes)
modelTypes
- types of model elements to retrieveIModelElement[] toModelElementArray()
IModelElement[] toModelElementArray(java.lang.String modelType)
modelType
- type of model element to retrieveIModelElement[] toModelElementArray(java.lang.String[] modelTypes)
modelTypes
- types of model elements to retrievejava.util.Iterator allLevelModelElementIterator()
java.util.Iterator allLevelModelElementIterator(java.lang.String modelType)
modelType
- type of model element to retrievejava.util.Iterator allLevelModelElementIterator(java.lang.String[] modelTypes)
modelTypes
- types of model elements to retrievejava.util.Iterator transientAllLevelModelElementIterator()
java.util.Iterator transientAllLevelModelElementIterator(java.lang.String modelType)
void disposeTransientModels()
IModelElement[] toAllLevelModelElementArray()
IModelElement[] toAllLevelModelElementArray(java.lang.String modelType)
modelType
- type of model element to retrieveIModelElement[] toAllLevelModelElementArray(java.lang.String[] modelTypes)
modelTypes
- types of model elements to retrieveint allLevelModelElementCount()
int allLevelModelElementCount(java.lang.String modelType)
IDiagramUIModel getDiagramById(java.lang.String id)
java.util.Iterator diagramIterator()
IDiagramUIModel[] toDiagramArray()
IDiagramElement getDiagramElementById(java.lang.String id)
void addProjectListener(IProjectListener listener)
void removeProjectListener(IProjectListener listener)
void addProjectModelListener(IProjectModelListener listener)
void removeProjectModelListener(IProjectModelListener listener)
void addProjectDiagramListener(IProjectDiagramListener listener)
void removeProjectDiagramListener(IProjectDiagramListener listener)
IProject[] getLinkedProjects()
AddLinkedProjectResult addLinkedProject(java.io.File aLinkedProjectFile, java.awt.Component aInvoker)
aInvoker
- component used to show progress dialog, etc.... Not allow null, if no component, please use ViewManager.getRootFrame().boolean removeLinkedProject(IProject aLinkedProject)
void setCommentTableSortColumn(java.lang.String aCommentTableSortColumn)
java.lang.String getCommentTableSortColumn()
void setCommentTableSortAscending(boolean aCommentTableSortAscending)
boolean isCommentTableSortAscending()
void setProjectPublisherBasePath(java.lang.String aBasePath)
java.lang.String getProjectPublisherBasePath()
boolean isModelQualityBackgroundCheck()
ILogicalView getLogicalView()
logical
- view of project.IProjectTransaction startProjectTransaction()