Author: pkluegl
Date: Thu Nov 10 16:47:41 2011
New Revision: 1200420

URL: http://svn.apache.org/viewvc?rev=1200420&view=rev
Log:
UIMA-2282
Added new parent preference page "UIMA Cas Editor" for "Annotation Editor" and 
"Cas Editor Ide". The empty implementation of the general page is located in 
the ide plugin for now. 

Added:
    
uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/CasEditorPreferencePage.java
Modified:
    uima/uimaj/trunk/uimaj-ep-cas-editor-ide/plugin.xml

Modified: uima/uimaj/trunk/uimaj-ep-cas-editor-ide/plugin.xml
URL: 
http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor-ide/plugin.xml?rev=1200420&r1=1200419&r2=1200420&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-ep-cas-editor-ide/plugin.xml (original)
+++ uima/uimaj/trunk/uimaj-ep-cas-editor-ide/plugin.xml Thu Nov 10 16:47:41 2011
@@ -84,16 +84,22 @@
  
  <extension point="org.eclipse.ui.preferencePages">
     <page
+          category="org.apache.uima.caseditor.ide.CasEditorPreference"
           
class="org.apache.uima.caseditor.editor.AnnotationEditorPreferencePage"
           id="org.apache.uima.caseditor.ide.AnnotationEditorPreference"
-          name="UIMA Annotation Editor">
+          name="Annotation Editor">
     </page>
     <page
-          category="org.apache.uima.caseditor.ide.AnnotationEditorPreference"
+          category="org.apache.uima.caseditor.ide.CasEditorPreference"
           class="org.apache.uima.caseditor.ide.CasEditorIdePreferencePage"
           id="org.apache.uima.caseditor.ide.CasEditorIdePreference"
           name="Cas Editor Ide">
     </page>
+    <page
+          class="org.apache.uima.caseditor.ide.CasEditorPreferencePage"
+          id="org.apache.uima.caseditor.ide.CasEditorPreference"
+          name="UIMA Cas Editor">
+    </page>
  </extension>
  
     <extension

Added: 
uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/CasEditorPreferencePage.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/CasEditorPreferencePage.java?rev=1200420&view=auto
==============================================================================
--- 
uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/CasEditorPreferencePage.java
 (added)
+++ 
uima/uimaj/trunk/uimaj-ep-cas-editor-ide/src/main/java/org/apache/uima/caseditor/ide/CasEditorPreferencePage.java
 Thu Nov 10 16:47:41 2011
@@ -0,0 +1,45 @@
+/*
+ * 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.uima.caseditor.ide;
+
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+
+public class CasEditorPreferencePage extends FieldEditorPreferencePage
+  implements IWorkbenchPreferencePage {
+
+  public CasEditorPreferencePage() {
+    // TODO uncomment, if you really want to use this page
+    // setPreferenceStore(CasEditorPlugin.getDefault().getPreferenceStore());
+    setDescription("General Cas Editor Preferences.");
+  }
+  
+  public void init(IWorkbench arg0) {
+    
+  }
+
+  @Override
+  protected void createFieldEditors() {
+    
+  }
+
+
+}


Reply via email to