public interface ProjectManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addHtmlDocumentationImage(java.io.File aImageFile)
Import image file into project.
|
java.lang.String |
addHtmlDocumentationImage(java.io.InputStream aImageFile)
Import image file into project.
|
java.lang.String |
convertHighlightedTextWithReferenceModelName(java.lang.String aText) |
java.lang.String |
convertHighlightedTextWithReferenceModelName(java.lang.String aText,
java.lang.String aModelNotFoundText)
used for the text which supported in HighlightedTextArea (e.g.
|
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
boolean aKeepModelAsAddress) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IReferenceModelPresentationOption aPresentationOption) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IUseCaseDescriptionDiagramUIModel aUseCaseDetails) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IUserStory aUserStory) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
java.lang.String aModelNotFoundText,
boolean aKeepModelAsAddress) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
java.lang.String aModelNotFoundText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IReferenceModelPresentationOption aPresentationOption) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
java.lang.String aModelNotFoundText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IUseCaseDescriptionDiagramUIModel aUseCaseDetails) |
java.lang.String |
convertHighlightedTextWithStyleAsHTML(java.lang.String aText,
java.lang.String aModelNotFoundText,
boolean aKeepModelAsAddress,
IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler,
IUserStory aUserStory) |
ICandidateItemUtil |
createCandidateItemUtil(ITextualAnalysisUIModel aDiagram) |
IReferenceModelPresentationOption |
createReferenceModelPresentationOption(IUseCaseDescriptionDiagramUIModel aUseCaseDescriptionDiagram)
Used to decide how to show the Scenario's model element links, and its font size, and show/hide Testing Procedure
|
IReferenceModelPresentationOption |
createReferenceModelPresentationOption(IUserStory aUserStory) |
RelationshipRetriever |
createRelationshipRetriever(IProject aCurrentProject)
Create RelationshipRetriever for query the relationship of the selected model element in all relative projects.
|
RelationshipRetriever |
createRelationshipRetriever(IProject aCurrentProject,
java.lang.String aRelationshipModelType)
Create RelationshipRetriever for query the relationship of the selected model element in all relative projects.
|
RelationshipRetriever |
createRelationshipRetriever(IProject aCurrentProject,
java.lang.String aRelationshipModelType,
IProject[] aTargetRefProjects)
Create RelationshipRetriever for query the relationship of the selected model element in current-project and target-ref-projects.
|
java.lang.String[] |
getAllModelTypes(IProject project,
boolean rootLevelOnly,
boolean includeLinkedProject) |
IRelationship[] |
getAllRelationships(IModelElement aModelElement,
IProject aCurrentProject)
Deprecated.
Replaced by
createRelationshipRetriever(IProject)
Time consume on retrieving relationships from reference projects.
This function is replaced by RelationshipRetriever, that, RelationshipRetrieve can work for retrieving relationships from N model elements. |
CandidateItemInText[] |
getCandidateItemsFromText(ITextualAnalysisUIModel aDiagram,
java.lang.String aText)
Deprecated.
|
java.lang.String |
getDisplayBusinessProcessId(IProject aProject,
IDiagramUIModel aModel)
Deprecated.
Replaced by
getDisplayUserId(IProject, IDiagramUIModel) |
java.lang.String |
getDisplayBusinessProcessId(IProject aProject,
IModelElement aModel)
Deprecated.
Replaced by
getDisplayUserId(IProject, IModelElement) |
java.lang.String |
getDisplayDataFlowId(IProject aProject,
IModelElement aModel) |
java.lang.String |
getDisplayRequirementId(IProject aProject,
IModelElement aModel)
Deprecated.
Replaced by
getDisplayUserId(IProject, IModelElement) |
java.lang.String |
getDisplayUserId(IModelElement aModel) |
java.lang.String |
getDisplayUserId(IModelElement aModel,
boolean aForceNonSubLevelId) |
java.lang.String |
getDisplayUserId(IProject aProject,
IDiagramUIModel aModel) |
java.lang.String |
getDisplayUserId(IProject aProject,
IModelElement aModel) |
java.lang.String |
getDisplayUserId(IProject aProject,
IModelElement aModel,
boolean aForceNonSubLevelId) |
GlossaryInText[] |
getGlossariesFromText(IProject aProject,
boolean aIncludeLinkedProject,
java.lang.String aText) |
GlossaryInText[] |
getGlossariesFromText(IProject aProject,
java.lang.String aText)
parse the text to retrieve the glossaries
|
java.lang.String |
getLink(IDiagramElement diagramElement,
boolean withName)
Retrieve the link of the diagram element.
|
java.lang.String |
getLink(IDiagramUIModel diagram,
boolean withName)
Retrieve the link of the diagram.
|
java.lang.String |
getLink(IModelElement modelElement,
boolean withName)
Retrieve the link of the model element.
|
ILinkDiagramInfo |
getLinkDiagramInfo(IReference aReference) |
ModelElementInText[] |
getModelElementsFromText(IProject aProject,
java.lang.String aText) |
IProject |
getProject()
Get the current project.
|
PropertyValueInText[] |
getPropertyValuesFromText(IProject aProject,
IDiagramUIModel aPropertyOwner,
java.lang.String aText) |
PropertyValueInText[] |
getPropertyValuesFromText(IProject aProject,
IModelElement aPropertyOwner,
java.lang.String aText) |
IModelElement[] |
getSelectableStereotypesForModelType(java.lang.String aModelType,
IProject aProject,
boolean aSort) |
java.lang.String |
getShapeDisplayImagePath(java.io.File imageFile,
java.lang.String aShapeType)
calculate the displayImagePath (which will be embedded in .vpp)
|
java.lang.String |
getTaggedValueType(ITaggedValue aTaggedValue)
Retrieve the
ITaggedValue |
java.lang.String |
getTaggedValueType(ITaggedValueDefinition aTaggedValueDefinition)
Retrieve the
ITaggedValueDefinition |
void |
importShapeDisplayImage(java.lang.String aDisplayImagePath,
java.io.File aImageFile,
IProject aProject)
import the display image into project.
|
boolean |
isBooleanEnumeration(ITaggedValue aTaggedValue)
Check does the TaggedValue is a Boolean tagged value.
|
boolean |
isBooleanEnumeration(ITaggedValueDefinition aTaggedValueDefinition)
Check does the TaggedValueDefinition is a Boolean tagged value.
|
DatabaseSetting |
loadDatabaseSetting(IProject aProject,
DatabaseType aDatabaseType,
DatabaseLanguage aLanguage)
Read the Database Setting of the project
|
boolean |
newProject() |
boolean |
openProject() |
boolean |
openProject(java.io.File file) |
java.io.InputStream |
readShapeDisplayImage(java.lang.String aDisplayImagePath,
IProject aProject)
read the display image from project.
|
java.lang.String |
resetHtmlDocumentationFontStyle(java.lang.String htmlDocumentation,
java.awt.Font font,
java.awt.Color foreground)
Reset the font style of a HTML description (documentation).
|
void |
saveDatabaseSetting(IProject aProject,
DatabaseType aDatabaseType,
DatabaseLanguage aLanguage,
DatabaseSetting aDatabaseSetting)
Save the Database Setting into the project
|
boolean |
saveProject() |
boolean |
saveProjectAs() |
boolean |
saveProjectAs(java.io.File file) |
void |
showTeamworkCommitDialog()
Trigger teamwork commit
|
void |
showTeamworkCommitDialog(java.awt.Component invoker)
Trigger teamwork commit
|
IProject getProject()
boolean newProject()
boolean openProject()
boolean openProject(java.io.File file)
boolean saveProject()
boolean saveProjectAs()
boolean saveProjectAs(java.io.File file)
java.lang.String[] getAllModelTypes(IProject project, boolean rootLevelOnly, boolean includeLinkedProject)
java.lang.String getDisplayBusinessProcessId(IProject aProject, IDiagramUIModel aModel)
getDisplayUserId(IProject, IDiagramUIModel)
java.lang.String getDisplayUserId(IProject aProject, IDiagramUIModel aModel)
java.lang.String getDisplayBusinessProcessId(IProject aProject, IModelElement aModel)
getDisplayUserId(IProject, IModelElement)
java.lang.String getDisplayRequirementId(IProject aProject, IModelElement aModel)
getDisplayUserId(IProject, IModelElement)
java.lang.String getDisplayUserId(IProject aProject, IModelElement aModel)
java.lang.String getDisplayUserId(IModelElement aModel)
java.lang.String getDisplayUserId(IProject aProject, IModelElement aModel, boolean aForceNonSubLevelId)
java.lang.String getDisplayUserId(IModelElement aModel, boolean aForceNonSubLevelId)
java.lang.String getDisplayDataFlowId(IProject aProject, IModelElement aModel)
RelationshipRetriever createRelationshipRetriever(IProject aCurrentProject)
RelationshipRetriever createRelationshipRetriever(IProject aCurrentProject, java.lang.String aRelationshipModelType)
aRelationshipModelType
- collects the relationship(s) in this type only.RelationshipRetriever createRelationshipRetriever(IProject aCurrentProject, java.lang.String aRelationshipModelType, IProject[] aTargetRefProjects)
aRelationshipModelType
- collects the relationship(s) in this type only.aTargetRefProjects
- collects relationships from current project + these referenced projects only. NULL stands for collecting from all relative projects.IRelationship[] getAllRelationships(IModelElement aModelElement, IProject aCurrentProject)
createRelationshipRetriever(IProject)
Time consume on retrieving relationships from reference projects.
This function is replaced by RelationshipRetriever, that, RelationshipRetrieve can work for retrieving relationships from N model elements.IModelElement[] getSelectableStereotypesForModelType(java.lang.String aModelType, IProject aProject, boolean aSort)
java.lang.String convertHighlightedTextWithReferenceModelName(java.lang.String aText, java.lang.String aModelNotFoundText)
java.lang.String convertHighlightedTextWithReferenceModelName(java.lang.String aText)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, java.lang.String aModelNotFoundText, boolean aKeepModelAsAddress)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, boolean aKeepModelAsAddress)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IUseCaseDescriptionDiagramUIModel aUseCaseDetails)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IUserStory aUserStory)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IReferenceModelPresentationOption aPresentationOption)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, java.lang.String aModelNotFoundText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IUseCaseDescriptionDiagramUIModel aUseCaseDetails)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, java.lang.String aModelNotFoundText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IUserStory aUserStory)
java.lang.String convertHighlightedTextWithStyleAsHTML(java.lang.String aText, java.lang.String aModelNotFoundText, boolean aKeepModelAsAddress, IHighlightedTextWithStyleAsHtmlConvertHandler aConvertHandler, IReferenceModelPresentationOption aPresentationOption)
IReferenceModelPresentationOption createReferenceModelPresentationOption(IUseCaseDescriptionDiagramUIModel aUseCaseDescriptionDiagram)
IReferenceModelPresentationOption createReferenceModelPresentationOption(IUserStory aUserStory)
GlossaryInText[] getGlossariesFromText(IProject aProject, java.lang.String aText)
GlossaryInText[] getGlossariesFromText(IProject aProject, boolean aIncludeLinkedProject, java.lang.String aText)
ModelElementInText[] getModelElementsFromText(IProject aProject, java.lang.String aText)
PropertyValueInText[] getPropertyValuesFromText(IProject aProject, IModelElement aPropertyOwner, java.lang.String aText)
PropertyValueInText[] getPropertyValuesFromText(IProject aProject, IDiagramUIModel aPropertyOwner, java.lang.String aText)
CandidateItemInText[] getCandidateItemsFromText(ITextualAnalysisUIModel aDiagram, java.lang.String aText)
ICandidateItemUtil createCandidateItemUtil(ITextualAnalysisUIModel aDiagram)
java.lang.String addHtmlDocumentationImage(java.io.File aImageFile)
ViewManager.getDocumentationImagePaths()
,
ViewManager.getDocumentationImageInputStream(String)
java.lang.String addHtmlDocumentationImage(java.io.InputStream aImageFile)
ViewManager.getDocumentationImagePaths()
,
ViewManager.getDocumentationImageInputStream(String)
java.lang.String resetHtmlDocumentationFontStyle(java.lang.String htmlDocumentation, java.awt.Font font, java.awt.Color foreground)
htmlDocumentation
- the original description (documentation)font
- the new font will be applied to the description (documentation)foreground
- the new foreground color will be applied to the description (documentation)IModelElement.setHTMLDocumentation(String)
,
IModelElement.setNickHTMLDocumentation(String)
,
IModelElement.getHTMLDocumentation()
,
IModelElement.getNickHTMLDocumentation()
java.lang.String getShapeDisplayImagePath(java.io.File imageFile, java.lang.String aShapeType)
IShapeUIModel.setDisplayImagePath(String)
void importShapeDisplayImage(java.lang.String aDisplayImagePath, java.io.File aImageFile, IProject aProject) throws java.lang.Exception
java.lang.Exception
java.io.InputStream readShapeDisplayImage(java.lang.String aDisplayImagePath, IProject aProject) throws java.lang.Exception
java.lang.Exception
boolean isBooleanEnumeration(ITaggedValue aTaggedValue)
boolean isBooleanEnumeration(ITaggedValueDefinition aTaggedValueDefinition)
java.lang.String getTaggedValueType(ITaggedValue aTaggedValue)
ITaggedValue.type
as String.
java.lang.String getTaggedValueType(ITaggedValueDefinition aTaggedValueDefinition)
ITaggedValueDefinition.type
as String.
ILinkDiagramInfo getLinkDiagramInfo(IReference aReference)
java.lang.String getLink(IModelElement modelElement, boolean withName)
java.lang.String getLink(IDiagramElement diagramElement, boolean withName)
java.lang.String getLink(IDiagramUIModel diagram, boolean withName)
void showTeamworkCommitDialog()
void showTeamworkCommitDialog(java.awt.Component invoker)
the
- component used to show dialog.DatabaseSetting loadDatabaseSetting(IProject aProject, DatabaseType aDatabaseType, DatabaseLanguage aLanguage)
void saveDatabaseSetting(IProject aProject, DatabaseType aDatabaseType, DatabaseLanguage aLanguage, DatabaseSetting aDatabaseSetting)