| java.lang.Object org.netbeans.modules.uml.core.requirementsframework.RequirementsManager org.netbeans.modules.uml.requirements.ADRequirementsManager
Method Summary | |
public void | addRequirementSourceContents(IRequirementsProvider cpRequirementsProvider, IProjectTreeItem pTreeItem, IRequirementSource pRequirementSource) Add the passed in Requirements Source to the map of RequirementSources managed
by the Provider..
pAddin[in] Requirments Provider addin to add the Requirement Source to. | public void | addSatisfiers(List<IPresentationElement> satisfiers, List<IProjectTreeItem> projectTreeItems) | protected void | createEventsSink() Creates the event sinks for the Requirements Manager. | public long | deInitialize(Object context) | public void | disconnectEventSinks() Revokes event sinks that were registered for the ADRequirements addin. | public String | extractDescriptionAttribute(String strXML) Extracts the Description attribute from the passed in XML string. | public Action[] | getActions() Implements the IActionProvider interface. | public String | getID() | public String | getLocation() | public String | getName() | public IProjectTreeControl | getProjectTree() Get the top level of the project tree for this addin. | public IRequirement | getRequirementFromTreeItem(IProjectTreeItem pTreeItem) | public IProjectTreeItem | getTreeItem() | public String | getVersion() | public void | handleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pSelectedItem) | public void | init(ApplicationView view) | public long | initialize(Object context) | public void | initialize() | public static ADRequirementsManager | instance() | protected void | loadAddIns() Loads the Requirements Provider addins from the registry key. | protected void | loadReqProviderAddin(IProjectTreeItem treeItem, IRequirementSource requirementSource) Loads the Requirements Provider AddIn Source instance defined in the XML
element. | protected void | loadReqProviderAddins(IProjectTreeItem treeItem) Open the Requirement Sources file and load the Requirement Provider addins
that it specifies. | public IProjectTreeItem | loadTreeItem(IProjectTreeItem pTreeItem, IRequirementSource pRequirementSource) Creates a sub-tree item for the passed in requirements source.
*pTree[in] The parent tree item for new requirement provider Addin. | public IProjectTreeItem | loadTreeItem(IProjectTreeItem pParent, ISatisfier pSatisfier) Add a sub-tree item to the passed in IProjectTreeItem.
pParent[in] Parent Tree item. | public IProjectTreeItem | loadTreeItem(IProjectTreeItem pTreeItem, IRequirement pRequirement) Add a sub-tree item to the passed in IProjectTreeItem.
pTreeItem[in] Parent Tree item. | public IProjectTreeItem | loadTreeItem(IProjectTreeItem pTreeItem, String strName, String strXMIID) Add a sub-tree item to the passed in IProjectTreeItem.
pTreeItem[in] Parent Tree item. | public void | loadTreeItems(IProjectTreeItem pTreeItem, String strProgID, String strRequirementSourceID, ETList<IRequirement> pRequirements) Recursively Load Requirements and their Requirements collections.
pTreeItem[in] Starting TreeItem, item that received 'AddNode' event. | public void | onDrawingAreaPostDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell) Handles the IDrawingAreaEventsSink OnDrawingAreaPostDrop event
for the ADRequirements Addin. | public void | onDrawingAreaPreDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell) Handles the IDrawingAreaEventsSink OnDrawingAreaPreDrop event
for the ADRequirements Addin. | public void | onItemExpanding(IProjectTreeItem pProjectTreeItem, IRequirement pRequirement) Forwarded msg from EventSink when user clicks on a TreeItem with an embedded
Requirement. | public ETList<String> | onProjectTreeContextMenuPrepare(IProductContextMenu pMenu) Handles the OnDrawingAreaPostDrop event
for the ADRequirementsManager Addin. | public void | onProjectTreeContextMenuPrepared(IProductContextMenu pMenu) | public void | populateTreeItem(Object pParent) Called upon a request to expand this addin's items in the tree. | public void | processSource(IRequirementSource pRequirementSource) Adds the Source Provider entry to the etd and to the tree. | public void | removeItemFromProxy(IProjectTreeControl pTreeControl, IProjectTreeItem pProjectTreeItem, IProjectTreeItem pParentProjectTreeItem) Removes the Satisfer element from the Requirements Provider and also from
the Proxy file. | protected void | removeSatisfiers(IProjectTreeControl pTreeControl, IProjectTreeItem[] projectTreeItems) | public boolean | requirementSourcesExist() | public void | run(ActionEvent e) | public void | save() | public void | setImage(IProjectTreeItem pTreeItem, String sIconType) Given a key String this looks the String up in the resource manager and returns
the icon that should be used for that type. | public void | setProjectTree(IProjectTreeControl newVal) Set the top level of the project tree into this addin. | public void | setTreeItem(IProjectTreeItem item) | public long | unLoad(Object context) |
sortPriority | public static int sortPriority(Code) | | |
ADRequirementsManager | public ADRequirementsManager()(Code) | | Creates a new instance of ADRequirementsManager
|
addRequirementSourceContents | public void addRequirementSourceContents(IRequirementsProvider cpRequirementsProvider, IProjectTreeItem pTreeItem, IRequirementSource pRequirementSource) throws RequirementsException(Code) | | Add the passed in Requirements Source to the map of RequirementSources managed
by the Provider..
pAddin[in] Requirments Provider addin to add the Requirement Source to. pReqSouce[in] Requirements source to add to the addin. |
createEventsSink | protected void createEventsSink()(Code) | | Creates the event sinks for the Requirements Manager. For example it sets
up the IDrawingAreaEventsSink to facilitate drag/drop of requirements onto
the drawing area.
|
disconnectEventSinks | public void disconnectEventSinks()(Code) | | Revokes event sinks that were registered for the ADRequirements addin.
void |
extractDescriptionAttribute | public String extractDescriptionAttribute(String strXML)(Code) | | Extracts the Description attribute from the passed in XML string. The XML
String is returned from the clipboard after a drag/drop is performed.
strXML[in] An XML String from the clipboard after a drag/drop The returned value of the Description attribute. |
getActions | public Action[] getActions()(Code) | | Implements the IActionProvider interface.
|
initialize | public void initialize()(Code) | | |
loadAddIns | protected void loadAddIns()(Code) | | Loads the Requirements Provider addins from the registry key.
|
loadReqProviderAddin | protected void loadReqProviderAddin(IProjectTreeItem treeItem, IRequirementSource requirementSource)(Code) | | Loads the Requirements Provider AddIn Source instance defined in the XML
element. The element is obtained from the
RequirementSources.etd file. Then, add the top-level contents of the
Requirements Source to the tree. Note: if content loading fails, the catch
logic will remove the Source's Tree Item from the tree.
Parameters: treeItem - The currently selected tree Item, parent of newrequirement provider. Parameters: requirementSource - The requirement source that represents arequirements provider addin |
loadReqProviderAddins | protected void loadReqProviderAddins(IProjectTreeItem treeItem)(Code) | | Open the Requirement Sources file and load the Requirement Provider addins
that it specifies.
Parameters: treeItem - The currently selected tree Item, parent of addedrequirements providers. |
loadTreeItem | public IProjectTreeItem loadTreeItem(IProjectTreeItem pTreeItem, IRequirementSource pRequirementSource)(Code) | | Creates a sub-tree item for the passed in requirements source.
*pTree[in] The parent tree item for new requirement provider Addin. *pRequirementSource[in] Represents a requirements provider addin void |
loadTreeItem | public IProjectTreeItem loadTreeItem(IProjectTreeItem pParent, ISatisfier pSatisfier)(Code) | | Add a sub-tree item to the passed in IProjectTreeItem.
pParent[in] Parent Tree item. pSatisfier[in] Name of Satisifer to find or add The newly created sub-tree item. |
loadTreeItem | public IProjectTreeItem loadTreeItem(IProjectTreeItem pTreeItem, IRequirement pRequirement)(Code) | | Add a sub-tree item to the passed in IProjectTreeItem.
pTreeItem[in] Parent Tree item. strProgID[in] Name of the RequirementsProvider managing the new sub-tree item. strRequirementSourceID[in] ID of RequirementsSource pRequirement[in] an instance of IRequirement ppNewTreeItem[in] Return the newly created sub-tree item. void |
loadTreeItem | public IProjectTreeItem loadTreeItem(IProjectTreeItem pTreeItem, String strName, String strXMIID)(Code) | | Add a sub-tree item to the passed in IProjectTreeItem.
pTreeItem[in] Parent Tree item. strName[in] Name of either 1) New folder (will be equal to "Satisfiers"), or2) the model element name being satisfied strXMIID[in] ID of model element ppNewTreeItem[in] Return the newly created sub-tree item. void |
loadTreeItems | public void loadTreeItems(IProjectTreeItem pTreeItem, String strProgID, String strRequirementSourceID, ETList<IRequirement> pRequirements)(Code) | | Recursively Load Requirements and their Requirements collections.
pTreeItem[in] Starting TreeItem, item that received 'AddNode' event. strProgID[in] ProgID extracted from the AddIn. Parameters: strRequirementSourceID - [in] Requirements source ID from .etreq file pRequirements[in] Requirements collection built by the Provider. void |
onDrawingAreaPostDrop | public void onDrawingAreaPostDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell)(Code) | | Handles the IDrawingAreaEventsSink OnDrawingAreaPostDrop event
for the ADRequirements Addin. This event is Fired after items
are are dropped onto the diagram.
pParentDiagram[in] The diagram where the drop occured pContext[in] Deatails of what has been dropped onto the diagram cell[in] The result cell from the original event. void |
onDrawingAreaPreDrop | public void onDrawingAreaPreDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell)(Code) | | Handles the IDrawingAreaEventsSink OnDrawingAreaPreDrop event
for the ADRequirements Addin. This event is Fired right before
items are dropped onto the diagram.
pParentDiagram[in] The diagram where the drop occured pContext[in] Deatails of what has been dropped onto the diagram cell[in] The result cell from the original event. void |
onItemExpanding | public void onItemExpanding(IProjectTreeItem pProjectTreeItem, IRequirement pRequirement)(Code) | | Forwarded msg from EventSink when user clicks on a TreeItem with an embedded
Requirement.
|
onProjectTreeContextMenuPrepare | public ETList<String> onProjectTreeContextMenuPrepare(IProductContextMenu pMenu)(Code) | | Handles the OnDrawingAreaPostDrop event
for the ADRequirementsManager Addin. This event is fired on when
the user right-clicks in the DesignCenter TreeControl.
pMenu[in] The Context Menu The menu titles |
populateTreeItem | public void populateTreeItem(Object pParent)(Code) | | Called upon a request to expand this addin's items in the tree.
Parameters: pParent - The currently selected tree Item. |
processSource | public void processSource(IRequirementSource pRequirementSource) throws RequirementsException(Code) | | Adds the Source Provider entry to the etd and to the tree.
requirements provider addin that manages it.
*pReqSource[in] Represents a requirements provider addin void |
removeItemFromProxy | public void removeItemFromProxy(IProjectTreeControl pTreeControl, IProjectTreeItem pProjectTreeItem, IProjectTreeItem pParentProjectTreeItem) throws RequirementsException(Code) | | Removes the Satisfer element from the Requirements Provider and also from
the Proxy file.
Parameters: pTreeControl - [in] The DesignCenter's TreeControl Parameters: pProjectTreeItem - [in] The Satisfier node Parameters: pParentProjectTreeItem - [in] The 'Satisfiers Folder' node. |
requirementSourcesExist | public boolean requirementSourcesExist()(Code) | | Determines if the RequirementsSouces.etd file exists,
boolean Returns true if the file exists. |
save | public void save()(Code) | | save the design center addin
|
setImage | public void setImage(IProjectTreeItem pTreeItem, String sIconType)(Code) | | Given a key String this looks the String up in the resource manager and returns
the icon that should be used for that type.
Parameters: pTreeItem - [in] Contains the HTREEITEM that is to receive the icon Parameters: sIconType - [in] The keyString that should be used to lookup the icon (usually the element name or folder name) |
setProjectTree | public void setProjectTree(IProjectTreeControl newVal)(Code) | | Set the top level of the project tree into this addin.
Parameters: newVal - The new project tree |
|
|