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/06 14:55:03 UTC
svn commit: r1165647 - in
/incubator/opennlp/sandbox/caseditor-opennlp-plugin: plugin.xml
src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java
src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java
Author: joern
Date: Tue Sep 6 12:55:03 2011
New Revision: 1165647
URL: http://svn.apache.org/viewvc?rev=1165647&view=rev
Log:
OPENNLP-235 Added dummy for tokenizer preference page.
Added:
incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java (with props)
Modified:
incubator/opennlp/sandbox/caseditor-opennlp-plugin/plugin.xml
incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java
Modified: incubator/opennlp/sandbox/caseditor-opennlp-plugin/plugin.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/plugin.xml?rev=1165647&r1=1165646&r2=1165647&view=diff
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/plugin.xml (original)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/plugin.xml Tue Sep 6 12:55:03 2011
@@ -62,6 +62,13 @@
</page>
<page
+ class="org.apache.opennlp.caseditor.tokenize.TokenizerPreferencePage"
+ id="org.apache.opennlp.caseditor.tokenize.TokenizerPreferencePage"
+ name="Tokenizer"
+ category="org.apache.opennlp.caseditor.OpenNLPPreference">
+ </page>
+
+ <page
class="org.apache.opennlp.caseditor.namefinder.NameFinderPreferencePage"
id="org.apache.opennlp.caseditor.NameFinderPreference"
name="Name Finder"
Modified: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java?rev=1165647&r1=1165646&r2=1165647&view=diff
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java (original)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPreferenceConstants.java Tue Sep 6 12:55:03 2011
@@ -26,4 +26,5 @@ public class OpenNLPPreferenceConstants
public static final String SENTENCE_TYPE = "SENTENCE_TYPE";
public static final String TOKEN_TYPE = "TOKEN_TYPE";
public static final String NAME_TYPE = "NAME_TYPE";
+ public static final String TOKENIZER_MODEL_PATH = "TOKENIZER_MODEL_PATH";
}
Added: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java?rev=1165647&view=auto
==============================================================================
--- incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java (added)
+++ incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java Tue Sep 6 12:55:03 2011
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.opennlp.caseditor.tokenize;
+
+import org.apache.opennlp.caseditor.OpenNLPPlugin;
+import org.apache.opennlp.caseditor.OpenNLPPreferenceConstants;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.StringFieldEditor;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+public class TokenizerPreferencePage extends FieldEditorPreferencePage
+ implements IWorkbenchPreferencePage {
+
+ public TokenizerPreferencePage() {
+ setPreferenceStore(OpenNLPPlugin.getDefault().getPreferenceStore());
+ setDescription("Tokenizer Preferences.");
+ }
+
+ @Override
+ public void init(IWorkbench workbench) {
+ }
+
+ @Override
+ protected void createFieldEditors() {
+ StringFieldEditor modelPath = new StringFieldEditor(
+ OpenNLPPreferenceConstants.TOKENIZER_MODEL_PATH,
+ "Model Path", getFieldEditorParent());
+ addField(modelPath);
+ }
+
+}
Propchange: incubator/opennlp/sandbox/caseditor-opennlp-plugin/src/main/java/org/apache/opennlp/caseditor/tokenize/TokenizerPreferencePage.java
------------------------------------------------------------------------------
svn:mime-type = text/plain