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 124858 - ProjectDataSourceTracker always listens for Model Set changes
Summary: ProjectDataSourceTracker always listens for Model Set changes
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
Depends on:
Reported: 2008-01-08 02:34 UTC by John Baker
Modified: 2008-02-06 14:40 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2008-01-08 02:34:54 UTC
ProjectDataSourceTracker (PDST) tracks changes to data sources.
To determine if a project contains a data source, the project's pages must be modeled.

At IDE startup, PDST starts listening for model set changes.

Even when just a component is added to a page, PDST checks each bean in the project to see if contains any rowsets.
This is the original design.

Instead, I think that PDST should only create a modelset listener when a project is opened and then remove the listener
once project has been modeled.  ProjectDataSource tracker already listens for project open and close events.

A new listener can be implemented to fire an event to handle the case when a database table is added to a page or bean.
PDST can listen for this event and update the project data source information.  Once done, the listener can be removed.
Comment 1 John Baker 2008-01-11 00:23:51 UTC
Not sure if I have time to fix this by 6.1
Comment 2 John Baker 2008-01-14 01:20:55 UTC
This is an enhancement, not defect.  Listening for modelset changes was part of the original design