Skip to content

Commit

Permalink
Added a plugin to register a locally hosted ambit2/,ontology/ install…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
egonw committed Apr 24, 2012
1 parent b01a4f1 commit d97eada
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/net.bioclipse.opentox.localhost/.classpath
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions plugins/net.bioclipse.opentox.localhost/.project
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>net.bioclipse.opentox.localhost</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
25 changes: 25 additions & 0 deletions plugins/net.bioclipse.opentox.localhost/META-INF/MANIFEST.MF
@@ -0,0 +1,25 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Localhost OpenTox Plugin
Bundle-SymbolicName: net.bioclipse.opentox.localhost; singleton:=true
Bundle-Version: 2.5.0.qualifier
Bundle-Activator: net.bioclipse.opentox.localhost.Activator
Export-Package: net.bioclipse.opentox.localhost
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
net.bioclipse.core,
net.bioclipse.scripting,
org.springframework.bundle.spring.aop,
net.sf.cglib,
org.springframework.osgi.aopalliance.osgi,
net.bioclipse.rdf,
net.bioclipse.business,
org.eclipse.core.resources,
net.bioclipse.opentox,
net.bioclipse.usermanager
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.apache.commons.codec,
org.apache.commons.logging,
org.apache.log4j
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
3 changes: 3 additions & 0 deletions plugins/net.bioclipse.opentox.localhost/build.properties
@@ -0,0 +1,3 @@
bin.includes = plugin.xml,\
META-INF/,\
.
15 changes: 15 additions & 0 deletions plugins/net.bioclipse.opentox.localhost/plugin.xml
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<extension
point="net.bioclipse.opentox">
<service
id="net.bioclipse.opentox.localhost"
name="Ambit2 - Localhost"
serviceURL="http://localhost:8080/ambit2/"
serviceSPARQL="http://localhost:8080/ontology/">
</service>
</extension>

</plugin>
@@ -0,0 +1,49 @@
/*******************************************************************************
* Copyright (c) 2012 Egon Willighagen <egonw@users.sf.net>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contact: http://www.bioclipse.net/
******************************************************************************/
package net.bioclipse.opentox.localhost;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
* The Activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {

public static final String PLUGIN_ID = "net.bioclipse.opentox.localhost";

// The shared instance
private static Activator plugin;

public Activator() {}

public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}



public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}

/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}

}

0 comments on commit d97eada

Please sign in to comment.