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/07/19 19:23:18 UTC
svn commit: r1148454 - in
/incubator/opennlp/sandbox/opennlp-caseditor-plugin: pom.xml
src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java
Author: joern
Date: Tue Jul 19 17:23:18 2011
New Revision: 1148454
URL: http://svn.apache.org/viewvc?rev=1148454&view=rev
Log:
OPENNLP-235 Added OpenNLP Plugin class
Added:
incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java (with props)
Modified:
incubator/opennlp/sandbox/opennlp-caseditor-plugin/pom.xml
Modified: incubator/opennlp/sandbox/opennlp-caseditor-plugin/pom.xml
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/opennlp-caseditor-plugin/pom.xml?rev=1148454&r1=1148453&r2=1148454&view=diff
==============================================================================
--- incubator/opennlp/sandbox/opennlp-caseditor-plugin/pom.xml (original)
+++ incubator/opennlp/sandbox/opennlp-caseditor-plugin/pom.xml Tue Jul 19 17:23:18 2011
@@ -190,6 +190,7 @@
<manifestLocation>META-INF/</manifestLocation>
<instructions>
<Bundle-SymbolicName>org.apache.opennlp.caseditor;singleton:=true</Bundle-SymbolicName>
+ <Bundle-Activator>org.apache.opennlp.caseditor.OpenNLPPlugin</Bundle-Activator>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Export-Package>
Added: incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java?rev=1148454&view=auto
==============================================================================
--- incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java (added)
+++ incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java Tue Jul 19 17:23:18 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.opennlp.caseditor;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+public class OpenNLPPlugin extends AbstractUIPlugin {
+
+ public static final String ID = "org.apache.opennlp.caseditor";
+
+ private static OpenNLPPlugin instance;
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+
+ instance = this;
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+
+ instance = null;
+ }
+
+ public static OpenNLPPlugin getDefault() {
+ return instance;
+ }
+
+}
Propchange: incubator/opennlp/sandbox/opennlp-caseditor-plugin/src/main/java/org/apache/opennlp/caseditor/OpenNLPPlugin.java
------------------------------------------------------------------------------
svn:mime-type = text/plain