Revision: 6535
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6535&view=rev
Author:   dnaber
Date:     2012-02-19 15:26:50 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
LibreOffice 3.5 support an URL that provides more information for the error: 
example code for that feature (commented out)

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java  
2012-02-19 14:17:50 UTC (rev 6534)
+++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java  
2012-02-19 15:26:50 UTC (rev 6535)
@@ -458,6 +458,11 @@
     aError.nErrorStart = myMatch.getFromPos() + startIndex;
     aError.nErrorLength = myMatch.getToPos() - myMatch.getFromPos();
     aError.aRuleIdentifier = myMatch.getRule().getId();
+    // LibreOffice since version 3.5 supports an URL that provides more 
information for the error:
+    //final PropertyValue[] propertyValues = new PropertyValue[] {
+    //        new PropertyValue("FullCommentURL", -1, 
myMatch.getRule().getUrl(), PropertyState.DIRECT_VALUE)
+    //};
+    //aError.aProperties = propertyValues;
     aError.aProperties = new PropertyValue[0];
     return aError;
   }

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


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to