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 215297 - API review of a new LogicalView interface providing findPath method.
Summary: API review of a new LogicalView interface providing findPath method.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: API, API_REVIEW_FAST
Depends on: 7551
Blocks: 208241
  Show dependency tree
 
Reported: 2012-07-09 14:40 UTC by Tomas Zezula
Modified: 2012-07-27 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Diff file (25.37 KB, patch)
2012-07-09 14:41 UTC, Tomas Zezula
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2012-07-09 14:40:00 UTC
The LogicalViewProvider has a Node findPath(Node, Object) method finding a sub node of a given node representing a given object. The implementations of the LVP often need to delegate the findPath to child nodes. Currently there is no concept of findMethod(Node, Object) so the implementers need to cast to the concrete implementation. This API change extracted a LVP.findPath(Node,Object) into a new interface PathFinder which the LVP extends. Such a change simplifies the delegation in implementation by polymorphism provided by the PathFinder interface.
Comment 1 Tomas Zezula 2012-07-09 14:41:30 UTC
Created attachment 121848 [details]
Diff file
Comment 2 Tomas Zezula 2012-07-13 08:52:36 UTC
Fixed jet-main 5d1b82e5768a