Revision: 16660
          http://sourceforge.net/p/gate/code/16660
Author:   markagreenwood
Date:     2013-04-25 11:04:01 +0000 (Thu, 25 Apr 2013)
Log Message:
-----------
removed a rather daft check that assumes that if a corpus is the same size as 
the number of loaded documents then it must consist of just those documents 
which stops you adding them to the corpus if they aren't the documents already 
in it

Modified Paths:
--------------
    gate/trunk/src/gate/gui/CorpusEditor.java

Modified: gate/trunk/src/gate/gui/CorpusEditor.java
===================================================================
--- gate/trunk/src/gate/gui/CorpusEditor.java   2013-04-25 01:21:06 UTC (rev 
16659)
+++ gate/trunk/src/gate/gui/CorpusEditor.java   2013-04-25 11:04:01 UTC (rev 
16660)
@@ -690,13 +690,18 @@
         "<li>right click on the corpus in the resources tree and choose 
'Populate'" +
         "</ul></html>");
       messageLabel.setVisible(true);
-    } else if (documentsLoadedCount > 0
+    } 
+    // This is a really stupid way of checking if all the open documents are 
in the
+    //corpus and it seems to be causing more problems than it might possibly 
be trying
+    //to solve
+    /*else if (documentsLoadedCount > 0
             && documentsLoadedCount == corpus.size()) {
       newDocumentAction.setEnabled(false);
       messageLabel.setText("All the documents loaded in the " +
         "system are in this corpus.");
       messageLabel.setVisible(true);
-    } else if (documentsLoadedCount == 0) {
+    } */
+    else if (documentsLoadedCount == 0) {
       newDocumentAction.setEnabled(false);
       if (corpus.getDataStore() == null) {
         messageLabel.setText(

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


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to