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.
Summary: | Please provide API for UI of external wsdl/schema import chooser | ||
---|---|---|---|
Product: | xml | Reporter: | Vladimir Yaroslavskiy <yaroslavskiy> |
Component: | Code | Assignee: | issues@xml <issues> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | CC: | cwebster, nnguyen |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Yaroslavskiy
2007-01-30 16:32:31 UTC
This is duplicate of 91437. The common chooser is customizable for each domain editor needs. Note that XAMUI ExternalReferenceCustomizer allow choosing one referenced file, while ExternalReferenceCreator allows choosing multiple files. Also, the chooser does not load the referenced models as this issue suggested. This is more efficient. *** This issue has been marked as a duplicate of 91437 *** It is not duplicate of 91437. Reason: requested chooser should allow user to select a wsdl/schema file from any folder of local file system and/or set URL to external file from the internet (such as http://...). ExternalReferenceCustomizer or ExternalReferenceCreator doesn't allow to do it. The appropriate UI exists: see wizard for New | File/Folder | XML | External XML Schema Document(s) or External WSDL Document(s). My request is to provie API fro using this UI. I don't wish to copy/paste the source code of the UI. Classes to be reused: org.netbeans.modules.xml.schema.ui.retriever.RetrieveXMLResourceWizardPanel1*.java Seems like the import wizard could be launched here without any public expose of UI. Please take a look at http://www.netbeans.org/download/dev/javadoc/org-openide-loaders/org/openide/loaders/TemplateWizard.Iterator.html for how to launch the wizard. The using of the wizard is not acceptable: there are 3 classes used by NetBeans to show wizard - iterator, panel and ui. The ui is just JPanel (RetrieveXMLResourceVisualPanel1) and doesn't provide requested functionality. The iterator and panel (RetrieveXMLResourceWizardIterator and RetrieveXMLResourceWizardPanel1) are configuration files and have specific api used by NetBeans wizard framework. What I want to see is a dialog (let it be called ExternalModelImportChooser) with two buttons Ok and Cancel. It must be one constructor with one parameter - project - where dialog is called on, and one public method show() which opens the dialog and returns a {WSDL|Schema}model selected by user or null if user presses cancel. The internal panel should be the same as RetrieveXMLResourceVisualPanel1, reuse the code. There shouldn't be any wizard/iterator, it doesn't have required api and ui. Now import wizard can't be used. And the last: package org.netbeans.modules.xml.schema.ui.retriever must be public to be used. To remove the last minute dependencies, I suggest that you go ahead copy over the 1-2 needed files and customize any way you want. Later, if there are more of similar usages in the future, we will have better idea what is the common UI/API should be. (IMO, exposing the direct copying of wsdl files - instead of referencing, is out of line with the integrated user experience we want to achieve. User can always do direct retrievals of remote files through the New File wizards. This way we have less exposure for a less-than-optimal practice and also make user conscious about the fact that retrieved files should be version control). verified. |