Java Doc for ADRequirementsManager.java in  » IDE-Netbeans » uml » org » netbeans » modules » uml » requirements » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » uml » org.netbeans.modules.uml.requirements 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.uml.core.requirementsframework.RequirementsManager
      org.netbeans.modules.uml.requirements.ADRequirementsManager

ADRequirementsManager
public class ADRequirementsManager extends RequirementsManager implements IDesignCenterSupport,IDesignCenterSupportGUI,IActionProvider(Code)

author:
   Trey Spiva


Field Summary
public static  intsortPriority
    

Constructor Summary
public  ADRequirementsManager()
    

Method Summary
public  voidaddRequirementSourceContents(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  voidaddSatisfiers(List<IPresentationElement> satisfiers, List<IProjectTreeItem> projectTreeItems)
    
protected  voidcreateEventsSink()
     Creates the event sinks for the Requirements Manager.
public  longdeInitialize(Object context)
    
public  voiddisconnectEventSinks()
     Revokes event sinks that were registered for the ADRequirements addin.
public  StringextractDescriptionAttribute(String strXML)
     Extracts the Description attribute from the passed in XML string.
public  Action[]getActions()
     Implements the IActionProvider interface.
public  StringgetID()
    
public  StringgetLocation()
    
public  StringgetName()
    
public  IProjectTreeControlgetProjectTree()
     Get the top level of the project tree for this addin.
public  IRequirementgetRequirementFromTreeItem(IProjectTreeItem pTreeItem)
    
public  IProjectTreeItemgetTreeItem()
    
public  StringgetVersion()
    
public  voidhandleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pSelectedItem)
    
public  voidinit(ApplicationView view)
    
public  longinitialize(Object context)
    
public  voidinitialize()
    
public static  ADRequirementsManagerinstance()
    
protected  voidloadAddIns()
     Loads the Requirements Provider addins from the registry key.
protected  voidloadReqProviderAddin(IProjectTreeItem treeItem, IRequirementSource requirementSource)
     Loads the Requirements Provider AddIn Source instance defined in the XML element.
protected  voidloadReqProviderAddins(IProjectTreeItem treeItem)
     Open the Requirement Sources file and load the Requirement Provider addins that it specifies.
public  IProjectTreeItemloadTreeItem(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  IProjectTreeItemloadTreeItem(IProjectTreeItem pParent, ISatisfier pSatisfier)
     Add a sub-tree item to the passed in IProjectTreeItem. pParent[in] Parent Tree item.
public  IProjectTreeItemloadTreeItem(IProjectTreeItem pTreeItem, IRequirement pRequirement)
     Add a sub-tree item to the passed in IProjectTreeItem. pTreeItem[in] Parent Tree item.
public  IProjectTreeItemloadTreeItem(IProjectTreeItem pTreeItem, String strName, String strXMIID)
     Add a sub-tree item to the passed in IProjectTreeItem. pTreeItem[in] Parent Tree item.
public  voidloadTreeItems(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  voidonDrawingAreaPostDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell)
     Handles the IDrawingAreaEventsSink OnDrawingAreaPostDrop event for the ADRequirements Addin.
public  voidonDrawingAreaPreDrop(IDiagram pParentDiagram, IDrawingAreaDropContext pContext, IResultCell cell)
     Handles the IDrawingAreaEventsSink OnDrawingAreaPreDrop event for the ADRequirements Addin.
public  voidonItemExpanding(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  voidonProjectTreeContextMenuPrepared(IProductContextMenu pMenu)
    
public  voidpopulateTreeItem(Object pParent)
     Called upon a request to expand this addin's items in the tree.
public  voidprocessSource(IRequirementSource pRequirementSource)
     Adds the Source Provider entry to the etd and to the tree.
public  voidremoveItemFromProxy(IProjectTreeControl pTreeControl, IProjectTreeItem pProjectTreeItem, IProjectTreeItem pParentProjectTreeItem)
     Removes the Satisfer element from the Requirements Provider and also from the Proxy file.
protected  voidremoveSatisfiers(IProjectTreeControl pTreeControl, IProjectTreeItem[] projectTreeItems)
    
public  booleanrequirementSourcesExist()
    
public  voidrun(ActionEvent e)
    
public  voidsave()
    
public  voidsetImage(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  voidsetProjectTree(IProjectTreeControl newVal)
     Set the top level of the project tree into this addin.
public  voidsetTreeItem(IProjectTreeItem item)
    
public  longunLoad(Object context)
    

Field Detail
sortPriority
public static int sortPriority(Code)




Constructor Detail
ADRequirementsManager
public ADRequirementsManager()(Code)
Creates a new instance of ADRequirementsManager




Method Detail
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.



addSatisfiers
public void addSatisfiers(List<IPresentationElement> satisfiers, List<IProjectTreeItem> projectTreeItems)(Code)
Associates the satisfiers with the requirements



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.



deInitialize
public long deInitialize(Object context)(Code)



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.



getID
public String getID()(Code)



getLocation
public String getLocation()(Code)



getName
public String getName()(Code)



getProjectTree
public IProjectTreeControl getProjectTree()(Code)
Get the top level of the project tree for this addin.



getRequirementFromTreeItem
public IRequirement getRequirementFromTreeItem(IProjectTreeItem pTreeItem)(Code)



getTreeItem
public IProjectTreeItem getTreeItem()(Code)



getVersion
public String getVersion()(Code)



handleSelection
public void handleSelection(IProductContextMenu pContextMenu, IProductContextMenuItem pSelectedItem)(Code)
Message from the sink that something has been selected



init
public void init(ApplicationView view)(Code)



initialize
public long initialize(Object context)(Code)



initialize
public void initialize()(Code)



instance
public static ADRequirementsManager instance()(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



onProjectTreeContextMenuPrepared
public void onProjectTreeContextMenuPrepared(IProductContextMenu pMenu)(Code)



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.



removeSatisfiers
protected void removeSatisfiers(IProjectTreeControl pTreeControl, IProjectTreeItem[] projectTreeItems)(Code)



requirementSourcesExist
public boolean requirementSourcesExist()(Code)
Determines if the RequirementsSouces.etd file exists, boolean Returns true if the file exists.



run
public void run(ActionEvent e)(Code)



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



setTreeItem
public void setTreeItem(IProjectTreeItem item)(Code)



unLoad
public long unLoad(Object context)(Code)



Fields inherited from org.netbeans.modules.uml.core.requirementsframework.RequirementsManager
protected Document m_ReqProxyDoc(Code)(Java Doc)
protected String m_ReqProxyFile(Code)(Java Doc)
protected String m_ReqSourcesFile(Code)(Java Doc)

Methods inherited from org.netbeans.modules.uml.core.requirementsframework.RequirementsManager
protected void addReqSourceToDoc(Document document, Element sourceElem)(Code)(Java Doc)
protected Element convertReqSourceToXMLElement(Document document, IRequirementSource requirementSource)(Code)(Java Doc)
protected void convertXMLElementToReqSource(Element sourceElem, IRequirementSource requirementSource)(Code)(Java Doc)
public void deleteProxy(IRequirement requirement, ISatisfier satisfier)(Code)(Java Doc)
protected Element findOrCreateElement(Node parentNode, String strNodeName, String strAttributeName, String strAttributeValue)(Code)(Java Doc)
public IRequirementsProvider[] getAddIns()(Code)(Java Doc)
protected IRequirementsProvider[] getAddinsFromRegistry(String path)(Code)(Java Doc)
protected String getConfigDir()(Code)(Java Doc)
protected boolean getReqProxyDoc()(Code)(Java Doc)
protected boolean getReqSourcesDoc()(Code)(Java Doc)
protected String getReqSourcesFile()(Code)(Java Doc)
public IRequirementsProvider getRequirementsProvider(String sProgID)(Code)(Java Doc)
public IRequirementSource getSource(String strRequirementSourceID)(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
protected void initializeReqSourcesDoc(Document document)(Code)(Java Doc)
public void processProxy(IRequirement requirement, ISatisfier satisfier)(Code)(Java Doc)
public void processSource(IRequirementSource requirementSource) throws RequirementsException(Code)(Java Doc)
protected void saveReqSourcesDoc()(Code)(Java Doc)
protected void updateProxyFileLocation(String strRequirementSourceID)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.