From: <mwl...@us...> - 2008-03-25 19:57:29
|
Revision: 710 http://cishell.svn.sourceforge.net/cishell/?rev=710&view=rev Author: mwlinnem Date: 2008-03-25 12:55:46 -0700 (Tue, 25 Mar 2008) Log Message: ----------- Made CIShell 1.0 Compatible. Modified Paths: -------------- trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonResultFormatter.java Modified: trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF =================================================================== --- trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF 2008-03-25 19:38:29 UTC (rev 709) +++ trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF 2008-03-25 19:55:46 UTC (rev 710) @@ -2,12 +2,12 @@ Bundle-ManifestVersion: 2 Bundle-Name: JythonRunner Bundle-SymbolicName: org.cishell.templates.jythonrunner -Bundle-Version: 0.0.1 +Bundle-Version: 1.0.0 Bundle-ClassPath: . Bundle-Localization: plugin Import-Package: org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.osgi.framework;version="1.3.0", org.osgi.service.component;version="1.0.0", org.osgi.service.log;version="1.3.0", Modified: trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java =================================================================== --- trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java 2008-03-25 19:38:29 UTC (rev 709) +++ trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java 2008-03-25 19:55:46 UTC (rev 710) @@ -21,15 +21,11 @@ public class JythonAlgorithmFactory implements AlgorithmFactory { private BundleContext myBundleContext; private Bundle myBundle; - private MetaTypeProvider provider; private Dictionary properties; protected void activate(ComponentContext ctxt) { - - MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS"); this.myBundleContext = ctxt.getBundleContext(); this.myBundle = myBundleContext.getBundle(); - this.provider = mts.getMetaTypeInformation(myBundle); this.properties = ctxt.getProperties(); } @@ -43,8 +39,4 @@ return new JythonRunnerAlgorithm(data, parameters, context, properties, myBundle); } - - public MetaTypeProvider createParameters(Data[] data) { - return provider; - } } \ No newline at end of file Modified: trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonResultFormatter.java =================================================================== --- trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonResultFormatter.java 2008-03-25 19:38:29 UTC (rev 709) +++ trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonResultFormatter.java 2008-03-25 19:55:46 UTC (rev 710) @@ -191,7 +191,7 @@ return s.charAt(s.length() - 1); } else { throw new IndexOutOfBoundsException("Cannot get the last " + - "character of an empy string"); + "character of an empty string"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |