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/08/29 18:44:12 UTC

svn commit: r1162898 - in /incubator/opennlp/sandbox/caseditor-corpus-server-plugin: plugin.xml src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java

Author: joern
Date: Mon Aug 29 16:44:11 2011
New Revision: 1162898

URL: http://svn.apache.org/viewvc?rev=1162898&view=rev
Log:
OPENNLP-252 Added dummy view, to test that it can be created.

Added:
    incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml   (with props)
    incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java   (with props)

Added: incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml?rev=1162898&view=auto
==============================================================================
--- incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml (added)
+++ incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml Mon Aug 29 16:44:11 2011
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+
+<!--
+	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.    
+-->
+
+<plugin>
+  <extension point="org.eclipse.ui.views">
+    <view id="org.apache.opennlp.corpus_server.caseditor.TaskQueueView"
+	      name="Task Queue"
+          class="org.apache.opennlp.corpus_server.caseditor.TaskQueueView"
+          category="org.apache.opennlp.caseditor" />	
+  </extension>	
+</plugin>

Propchange: incubator/opennlp/sandbox/caseditor-corpus-server-plugin/plugin.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java?rev=1162898&view=auto
==============================================================================
--- incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java (added)
+++ incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java Mon Aug 29 16:44:11 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.corpus_server.caseditor;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.part.ViewPart;
+
+/**
+ * A task queue view to retrieve the next annotation task subject from the corpus server.
+ */
+public class TaskQueueView extends ViewPart {
+
+  @Override
+  public void createPartControl(Composite parent) {
+
+    Label testView = new Label(parent, SWT.NONE);
+    testView.setText("Test!");
+    
+    // User can select queue
+    // Button for next cas (gets nexts and closes current one, if not saved user is asked for it)
+    // Save will send CAS to server ?!
+
+    // History view ... shows n last opened CASes ...
+    // User can quickly re-open a CAS, in case he wants to change something ...
+  }
+
+  @Override
+  public void setFocus() {
+  }
+}

Propchange: incubator/opennlp/sandbox/caseditor-corpus-server-plugin/src/main/java/org/apache/opennlp/corpus_server/caseditor/TaskQueueView.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain