Revision: 7082
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7082&view=rev
Author:   milek_pl
Date:     2012-05-27 11:05:18 +0000 (Sun, 27 May 2012)
Log Message:
-----------
add URL to the command line interface (as "More info")

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java      
2012-05-27 10:35:53 UTC (rev 7081)
+++ trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java      
2012-05-27 11:05:18 UTC (rev 7082)
@@ -177,6 +177,10 @@
       }
       System.out.println(StringTools.getContext(match.getFromPos(), match
           .getToPos(), contents, contextSize));
+      if (match.getRule().getUrl() != null) {
+         System.out.println("More info: " + 
+                         match.getRule().getUrl().toString());
+      }
       if (i < ruleMatches.size()) {
         System.out.println();
       }

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to