Revision: 652
http://cishell.svn.sourceforge.net/cishell/?rev=652&view=rev
Author: bh2
Date: 2008-03-12 05:52:35 -0700 (Wed, 12 Mar 2008)
Log Message:
-----------
branching the wizards project to update it to CIShell 1.0
Modified Paths:
--------------
branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java
branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$Factory.java
Added Paths:
-----------
branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/
Copied: branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards (from rev 650, trunk/templates/org.cishell.templates.wizards)
Modified: branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java
===================================================================
--- trunk/templates/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java 2008-03-11 19:35:36 UTC (rev 650)
+++ branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java 2008-03-12 12:52:35 UTC (rev 652)
@@ -17,7 +17,7 @@
this.context = context;
}
- public Data[] execute() {
+ public Data[] execute() throws AlgorithmExecutionException {
return null;
}
}
\ No newline at end of file
Modified: branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$Factory.java
===================================================================
--- trunk/templates/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$Factory.java 2008-03-11 19:35:36 UTC (rev 650)
+++ branches/spec_update/org.cishell.templates.wizards/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$Factory.java 2008-03-12 12:52:35 UTC (rev 652)
@@ -6,29 +6,9 @@
import org.cishell.framework.algorithm.Algorithm;
import org.cishell.framework.algorithm.AlgorithmFactory;
import org.cishell.framework.data.Data;
-import org.osgi.service.component.ComponentContext;
-import org.osgi.service.metatype.MetaTypeProvider;
-import org.osgi.service.metatype.MetaTypeService;
-
public class $algClass$Factory implements AlgorithmFactory {
- private MetaTypeProvider provider;
-
- protected void activate(ComponentContext ctxt) {
- //You may delete all references to metatype service if
- //your algorithm does not require parameters and return
- //null in the createParameters() method
- MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS");
- provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle());
- }
- protected void deactivate(ComponentContext ctxt) {
- provider = null;
- }
-
public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) {
return new $algClass$(data, parameters, context);
}
- public MetaTypeProvider createParameters(Data[] data) {
- return provider;
- }
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|