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..

Bruce

On 10/11/06, huangb@users.sourceforge.net < huangb@users.sourceforge.net> wrote:
Revision: 264
           http://svn.sourceforge.net/cishell/?rev=264&view=rev
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:
--------------
    trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java

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

+               //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 SourceForge.net 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
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cishell-svn mailing list
Cishell-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cishell-svn