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 29340 - BuildTargetDescriptor should provide better implementation of getVisualObject
Summary: BuildTargetDescriptor should provide better implementation of getVisualObject
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2002-12-05 21:45 UTC by Chris Webster
Modified: 2004-04-19 16:16 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2002-12-05 21:45:41 UTC
BuildTargetDescriptor is derived from
ContentDescriptor which returns null for the
getVisualObject method. If this method is not
overridden, a build target will not be displayed.
I think this should be overridden by returning
getProjectMember either in BuildTargetDescriptor
or ContentDescriptor. This will enhance the
developers experience by providing a reasonable
default.
Comment 1 Vitezslav Stejskal 2002-12-06 10:27:53 UTC
Another possible solution would be to make the getVisualObject method
abstract in ContentDescriptor. Then everybody should know that it has
to be implemented somehow, will read javadoc and provide appropriate
impl. Opinions?
Comment 2 David Konecny 2002-12-06 11:36:04 UTC
Most of the time the implementation will be to return ProjectMember.
Therefore returning it directly in CD will lower burden on the CD
writers to learn and understand how to implement CD correctly.
Comment 3 Dusan Balek 2003-01-14 09:47:24 UTC
Fixed. ContentDescriptor.getVisualObject() changed to return
ProjectMemeber.
Comment 4 Jan Becicka 2003-11-25 14:00:31 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:09:13 UTC
---> CLOSED