Revision: 14950
          http://gate.svn.sourceforge.net/gate/?rev=14950&view=rev
Author:   valyt
Date:     2012-01-09 12:57:13 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
Generalised fix: don't find item type for any kind of GATE resource (not just 
Corpus) as such data would get ignored by the GUI anyway.

Modified Paths:
--------------
    gate/trunk/src/gate/creole/CreoleAnnotationHandler.java

Modified: gate/trunk/src/gate/creole/CreoleAnnotationHandler.java
===================================================================
--- gate/trunk/src/gate/creole/CreoleAnnotationHandler.java     2012-01-09 
12:49:25 UTC (rev 14949)
+++ gate/trunk/src/gate/creole/CreoleAnnotationHandler.java     2012-01-09 
12:57:13 UTC (rev 14950)
@@ -16,10 +16,10 @@
 
 package gate.creole;
 
-import gate.Corpus;
 import gate.Gate;
 import gate.Gate.DirectoryInfo;
 import gate.Gate.ResourceInfo;
+import gate.Resource;
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.AutoInstanceParam;
 import gate.creole.metadata.CreoleParameter;
@@ -415,9 +415,9 @@
             if(paramElt.getTextTrim().length() == 0) {
               // need to determine the type
               paramElt.setText(method.getParameterTypes()[0].getName());
-              // for collections (but not GATE Corpora) we also try to 
determine
+              // for collections (but not GATE Resources) we also try to 
determine
               // the item type.
-              if((!Corpus.class.isAssignableFrom(
+              if((!Resource.class.isAssignableFrom(
                       method.getParameterTypes()[0])) &&
                   Collection.class.isAssignableFrom(
                       method.getParameterTypes()[0])) {

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to