This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 128376 - request APIs for test automation
Summary: request APIs for test automation
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-26 00:32 UTC by Peter Lam
Modified: 2008-06-25 22:29 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
api list (8.56 KB, text/plain)
2008-02-26 16:43 UTC, Sherry Zhou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-02-26 00:32:28 UTC
1. Need an option to keep context palette stay open
2. Need a name for each palette button for the class diagram
3. Need a name for each palette button for the sequence diagram
4. Expose model in expose model in aletteButton class, so test can get ContextPaletteButtonModel in order call
getName(), getToolTip()
Comment 1 Sherry Zhou 2008-02-26 16:43:34 UTC
Created attachment 57287 [details]
api list
Comment 2 Sherry Zhou 2008-02-26 22:18:03 UTC
5. Need center methods that have same function as methods in
org.netbeans.modules.uml.ui.swing.drawingarea.IDrawAreaControl
    getAllEdgesViaRect()
    centerPointInWindow()

6. Need api to get edge's click point. See TS api 
org.netbeans.modules.uml.ui.products.ad.graphobjects.ETEdge
   getSourceClippingPoint()
   getTargetClippingPoint()

7. Need apis to get uml widget's color
org.netbeans.modules.uml.ui.products.ad.drawengines.ETNodeDrawEngine
   getBorderColor()
   getFillColor()
   getLightGradientFillColor()

8. Need  same api as org.netbeans.modules.uml.ui.support.viewfactorysupport.IETLabel
      getLabelKind() 

9. Need api to find all the edges around the rectangle.
   org.netbeans.modules.uml.ui.swing.drawingarea.IDrawAreaControl
    getAllEdgesViaRect()

See attachment for detail how tests use these apis.
Comment 3 Sherry Zhou 2008-05-15 22:58:15 UTC
Has found work around for #1( Need an option to keep context palette stay open). So please ignore this one
Comment 4 Trey Spiva 2008-06-25 16:32:13 UTC
6) Can be achieved by getting the connection widget first and last control point.
7) We only have a single background color now.  It can be retrieved by calling the standard getBackground on a widget.
Comment 5 Trey Spiva 2008-06-25 22:29:48 UTC
http://hg.netbeans.org/uml-main/rev/e9357b6e859b
Adds the center methods.  Because of the design of the visual library, if a node is on the edge of the diagram, it will not be centered.  It will be visible.
This fixes 5.  

http://hg.netbeans.org/uml-main/rev/a6598c34e465
Methods to retrieve the nodes and edges that are in a rectangle region of the diagram.
This fixes 9.

http://hg.netbeans.org/uml-main/rev/43afa34b7230
Allows access to the context palette model.  This fixes 2, 3, and 4.

We no longer have an label kind so 8 can not be fixed.  If you give me more information we may be able to do something with the label manager.  For 
now I am going to mark this as fixed, unless there is more we can do with the label kind.