Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a plugin to register a locally hosted ambit2/,ontology/ install…
…ation
- Loading branch information
Showing
6 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
25
plugins/net.bioclipse.opentox.localhost/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin.includes = plugin.xml,\ | ||
META-INF/,\ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
49 changes: 49 additions & 0 deletions
49
plugins/net.bioclipse.opentox.localhost/src/net/bioclipse/opentox/localhost/Activator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
} |