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.
There are a couple of issues in the API exposed by dataview: - too many exposed packages: net.java.hulp.i18n, org.netbeans.modules.db.dataview.logger should not be exposed - too many exposed classes: only DataView in org.netbeans.modules.db.dataview.output should be exposed, and the package should be hidden. Please move DataView.java to a dedicated package, like org.netbeans.modules.db.dataview.api. What is DataView.getVerticalToolBar() good for? What is setToolbarType() good for? If you need to keep it, please move the int constants to an enum. There is no need to use integer constants instead of an enum from Java 1.5 on.
Moreover, are you sure the API should be public? If so, you need to go through an API review. I would rather suggest you make the API friend for now. That is, you use friend-packages instead of public-packages in project.xml.
No classes other than DataView is exposed. net.java.hulp.i18n, org.netbeans.modules.db.dataview.logger is hidden now -- > http://hg.netbeans.org/dbdataview/rev/913c80f32426 We need to DataView.getVerticalToolBar() in ETL editor It does not have to be public, I just need to know which modules will be declared as friend. ETL and Mashup editor will be two of them.
InsertRecordDialog and ShowSQLDialog are exposed. It is quite risky to expose a whole package full of implementation classes and then have to ensure all those impl classes are not public. Please do move DataView to a dedicated o.n.m.dataview.api package. Regarding the vertical toolbar: - the name is not a good one, since you only return a list of buttons which doesn't specify the orientation in any way. Please rename the method to getToolbarButtons(). - there should not be a notion of vertical vs. horizontal toolbar in the API, since it is up to the client to decide how to display the buttons (if the wants to). Perhaps it would make more sense to have a setToolbarVisible(boolean) method and drop setToolbarType(). Regarding the friend API: o.n.m.db.core needs to be friend too.
Fixed. http://hg.netbeans.org/dbdataview/rev/347bef1e8ad6
All API related issues has been fixed.
Also see http://hg.netbeans.org/dbdataview/rev/a11667ed08d0 updated db.core to reflect the API changes
Verified with build 080709.