Revision: 7407
http://languagetool.svn.sourceforge.net/languagetool/?rev=7407&view=rev
Author: milek_pl
Date: 2012-06-19 08:50:55 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
LanguageManager: accept filenames that do not raise exceptions in the
LanguageBuilder
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
Modified:
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
===================================================================
---
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
2012-06-19 08:32:53 UTC (rev 7406)
+++
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
2012-06-19 08:50:55 UTC (rev 7407)
@@ -75,7 +75,7 @@
public void show() {
dialog = new JDialog(owner, true);
- dialog.setTitle(Messages.getString("guiLanguageManagerDialog")); //
FIXME: i18n //$NON-NLS-1$
+ dialog.setTitle(Messages.getString("guiLanguageManagerDialog"));
// close dialog when user presses Escape key:
// TODO: taken from ConfigurationDialog, avoid duplication:
@@ -178,7 +178,8 @@
static class XMLFileFilter extends FileFilter {
@Override
public boolean accept(final File f) {
- if (f.getName().toLowerCase().endsWith(".xml") || f.isDirectory()) {
//$NON-NLS-1$
+ if (f.getName().startsWith("rules") &&
f.getName().toLowerCase().endsWith(".xml")
+ || f.isDirectory()) { //$NON-NLS-1$
return true;
}
return false;
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