The reason it only checks data[0] is it is only ever passed in 1 data object, since that is what its in_data specifies. Currently there is no way to specify you can take in any number of data models. I'm not sure how best to allow that either..


On 10/11/06, <> wrote:
Revision: 264
Author:   huangb
Date:     2006-10-11 13:36:20 -0700 (Wed, 11 Oct 2006)

Log Message:
Add the comments "why only check data[0]? An user can select
multiple objects from data manager." in the validate() method

Modified Paths:

Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/
--- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/     2006-10-11 20:26:21 UTC (rev 263)
+++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/     2006-10-11 20:36:20 UTC (rev 264)
@@ -65,6 +65,8 @@
                DataConversionService conversionManager = (DataConversionService) context.getService(

+               //Fix me
+               //Bonnie:why only check data[0]? An user can select multiple objects from data manager.
        Converter[] converters = conversionManager.findConverters(data[0], "file-ext:*");
        if (converters.length == 0) {
                return "No valid converters from " +

This was sent by the collaborative development platform, the world's largest Open Source development site.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Cishell-svn mailing list