You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/09/04 16:45:18 UTC
svn commit: r1165037 -
/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java
Author: joern
Date: Sun Sep 4 14:45:17 2011
New Revision: 1165037
URL: http://svn.apache.org/viewvc?rev=1165037&view=rev
Log:
OPENNLP-235 Now sets the preference store.
Modified:
incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java
Modified: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java?rev=1165037&r1=1165036&r2=1165037&view=diff
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java (original)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/sentdetect/SentenceDetectorPreferencePage.java Sun Sep 4 14:45:17 2011
@@ -17,6 +17,7 @@
package org.apache.opennlp.caseditor.sentdetect;
+import org.apache.opennlp.caseditor.OpenNLPPlugin;
import org.apache.opennlp.caseditor.OpenNLPPreferenceConstants;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
@@ -28,6 +29,11 @@ public class SentenceDetectorPreferenceP
private StringFieldEditor modelPath;
+ public SentenceDetectorPreferencePage() {
+ setPreferenceStore(OpenNLPPlugin.getDefault().getPreferenceStore());
+ setDescription("Sentence Detector Preferences.");
+ }
+
@Override
public void init(IWorkbench workbench) {
}