You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
|
Sep
(46) |
Oct
(102) |
Nov
(10) |
Dec
(21) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(1) |
Feb
(3) |
Mar
(14) |
Apr
(9) |
May
(12) |
Jun
(4) |
Jul
(40) |
Aug
(60) |
Sep
(38) |
Oct
(2) |
Nov
(1) |
Dec
(42) |
2008 |
Jan
(23) |
Feb
(29) |
Mar
(107) |
Apr
(27) |
May
(3) |
Jun
(1) |
Jul
(15) |
Aug
(7) |
Sep
(19) |
Oct
|
Nov
(2) |
Dec
|
2009 |
Jan
(36) |
Feb
(4) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(30) |
Aug
(32) |
Sep
(11) |
Oct
(21) |
Nov
(12) |
Dec
(15) |
2010 |
Jan
(29) |
Feb
(9) |
Mar
(25) |
Apr
|
May
(7) |
Jun
(5) |
Jul
(21) |
Aug
(32) |
Sep
(10) |
Oct
(8) |
Nov
(29) |
Dec
(8) |
2011 |
Jan
(9) |
Feb
(35) |
Mar
(11) |
Apr
(4) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(3) |
Dec
(30) |
2012 |
Jan
(5) |
Feb
(7) |
Mar
(10) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <bh...@us...> - 2008-03-27 15:38:30
|
Revision: 727 http://cishell.svn.sourceforge.net/cishell/?rev=727&view=rev Author: bh2 Date: 2008-03-27 08:38:15 -0700 (Thu, 27 Mar 2008) Log Message: ----------- made static executable runner not swallow Exception Modified Paths: -------------- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java Modified: trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java =================================================================== --- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2008-03-27 14:50:53 UTC (rev 726) +++ trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java 2008-03-27 15:38:15 UTC (rev 727) @@ -28,6 +28,7 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.algorithm.ProgressMonitor; import org.cishell.framework.algorithm.ProgressTrackable; @@ -108,7 +109,7 @@ ALGORITHM_DEFAULT = ALGORITHM + "default/"; } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { try { Properties serviceProps = getProperties("/"+algName+"/service.properties"); Properties configProps = getProperties("/"+algName+"/config.properties"); @@ -122,13 +123,12 @@ copyFiles(runner.getTempDirectory()); return runner.execute(); - } catch (Exception e) { - e.printStackTrace(); - throw new RuntimeException(e); + } catch (IOException e) { + throw new AlgorithmExecutionException(e.getMessage(), e); } } - private void copyFiles(File dir) throws IOException { + private void copyFiles(File dir) throws IOException, AlgorithmExecutionException { Enumeration e = bContext.getBundle().getEntryPaths("/"+algName); Set entries = new HashSet(); @@ -173,7 +173,7 @@ } if (path == null) { - throw new RuntimeException("Unable to find compatible executable"); + throw new AlgorithmExecutionException("Unable to find compatible executable"); } else { //logger.log(LogService.LOG_DEBUG, "base path: "+path+ // "\n\t"+dir.getAbsolutePath() + "\n\n"); Modified: trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java =================================================================== --- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java 2008-03-27 14:50:53 UTC (rev 726) +++ trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java 2008-03-27 15:38:15 UTC (rev 727) @@ -30,6 +30,7 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmProperty; import org.cishell.framework.algorithm.ProgressMonitor; import org.cishell.framework.data.BasicData; @@ -76,19 +77,14 @@ /** * @see org.cishell.framework.algorithm.Algorithm#execute() */ - public Data[] execute() { - try { - String algDir = tempDir + File.separator - + props.getProperty("Algorithm-Directory") + File.separator; + public Data[] execute() throws AlgorithmExecutionException { + String algDir = tempDir + File.separator + + props.getProperty("Algorithm-Directory") + File.separator; - chmod(algDir); - File[] output = execute(getTemplate(algDir), algDir); + chmod(algDir); + File[] output = execute(getTemplate(algDir), algDir); - return toData(output); - } catch (Exception e) { - e.printStackTrace(); - throw new RuntimeException(e); - } + return toData(output); } protected Data[] toData(File[] files) { @@ -164,7 +160,7 @@ return data; } - protected void chmod(String baseDir) { + protected void chmod(String baseDir) throws AlgorithmExecutionException { // FIXME: Surely java has a way to do this!!!! if (new File("/bin/chmod").exists()) { try { @@ -172,21 +168,27 @@ Runtime.getRuntime().exec("/bin/chmod +x " + executable) .waitFor(); } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } catch (InterruptedException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } } } - protected File[] execute(String[] cmdarray, String baseDir) - throws Exception { + protected File[] execute(String[] cmdarray, String baseDir) + throws AlgorithmExecutionException { File dir = new File(baseDir); String[] beforeFiles = dir.list(); - final Process process = Runtime.getRuntime().exec(cmdarray, null, - new File(baseDir)); - process.getOutputStream().close(); + Process process = null; + try { + process = Runtime.getRuntime().exec(cmdarray, null, + new File(baseDir)); + process.getOutputStream().close(); + } catch (IOException e1) { + throw new AlgorithmExecutionException(e1.getMessage(),e1); + } + monitor.start(ProgressMonitor.CANCELLABLE, -1); InputStream in = process.getInputStream(); @@ -265,7 +267,7 @@ } protected StringBuffer logStream(int logLevel, InputStream is, - StringBuffer buffer) { + StringBuffer buffer) throws AlgorithmExecutionException { try { int available = is.available(); if (available > 0) { @@ -278,7 +280,7 @@ } catch (EOFException e) { //normal operation } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException("Error when processing the algorithm's screen output",e); } return buffer; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-27 14:51:00
|
Revision: 726 http://cishell.svn.sourceforge.net/cishell/?rev=726&view=rev Author: mwlinnem Date: 2008-03-27 07:50:53 -0700 (Thu, 27 Mar 2008) Log Message: ----------- Removed error when you cancel a file load. Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-03-27 14:44:41 UTC (rev 725) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-03-27 14:50:53 UTC (rev 726) @@ -76,7 +76,8 @@ return returnDM; } else { - throw new AlgorithmExecutionException("No data could be loaded."); + this.logger.log(LogService.LOG_WARNING, "File loading canceled"); + return new Data[0]; } } catch (AlgorithmExecutionException e1) { throw e1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
Revision: 725 http://cishell.svn.sourceforge.net/cishell/?rev=725&view=rev Author: mwlinnem Date: 2008-03-27 07:44:41 -0700 (Thu, 27 Mar 2008) Log Message: ----------- Converted to parameter mutator. Modified Paths: -------------- trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithmFactory.java Modified: trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithmFactory.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithmFactory.java 2008-03-26 21:29:56 UTC (rev 724) +++ trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithmFactory.java 2008-03-27 14:44:41 UTC (rev 725) @@ -9,21 +9,20 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; import org.cishell.framework.algorithm.AlgorithmFactory; +import org.cishell.framework.algorithm.ParameterMutator; import org.cishell.framework.data.Data; import org.cishell.reference.service.metatype.BasicAttributeDefinition; -import org.cishell.reference.service.metatype.BasicMetaTypeProvider; import org.cishell.reference.service.metatype.BasicObjectClassDefinition; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import org.osgi.service.component.ComponentContext; import org.osgi.service.metatype.AttributeDefinition; import org.osgi.service.metatype.MetaTypeInformation; -import org.osgi.service.metatype.MetaTypeProvider; import org.osgi.service.metatype.MetaTypeService; import org.osgi.service.metatype.ObjectClassDefinition; -public class ConverterTesterAlgorithmFactory implements AlgorithmFactory { +public class ConverterTesterAlgorithmFactory implements AlgorithmFactory, ParameterMutator { public static final String SELECTED_CONVERTER_PARAM_ID = "selectedConverter"; public static final String NUM_HOPS_PARAM_ID = "numHops"; @@ -46,7 +45,8 @@ public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) { return new ConverterTesterAlgorithm(data, parameters, context, bContext); } - public MetaTypeProvider createParameters(Data[] data) { + public ObjectClassDefinition mutateParameters(Data[] data, + ObjectClassDefinition parameters) { String[] converterNames = extractConverterNames( ConverterTesterAlgorithmUtil. @@ -88,8 +88,7 @@ - MetaTypeProvider provider = new BasicMetaTypeProvider(definition); - return provider; + return definition; } private String[] extractConverterNames(ServiceReference[] converterRefs) { @@ -112,4 +111,9 @@ int startIndex = pid.lastIndexOf(".") + 1; return pid.substring(startIndex); } + + public ObjectClassDefinition mutateParameters() { + // TODO Auto-generated method stub + return null; + } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-26 21:30:24
|
Revision: 724 http://cishell.svn.sourceforge.net/cishell/?rev=724&view=rev Author: mwlinnem Date: 2008-03-26 14:29:56 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Updated to conform to CIShell 1.0. Removed some old stuff that we aren't using anymore. Modified Paths: -------------- trunk/testing/org.cishell.testing.convertertester.algorithm/META-INF/MANIFEST.MF trunk/testing/org.cishell.testing.convertertester.core.new/META-INF/MANIFEST.MF trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/graph/Converter.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/DefaultTestRunner.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/ConvertedDataSubGenerator.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/results/FilePassResult.java Removed Paths: ------------- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterLoaderImpl.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterTesterImpl.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/service/ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConfigurationFileConstants.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConverterTester.java trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/OldTestResult.java Modified: trunk/testing/org.cishell.testing.convertertester.algorithm/META-INF/MANIFEST.MF =================================================================== --- trunk/testing/org.cishell.testing.convertertester.algorithm/META-INF/MANIFEST.MF 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.algorithm/META-INF/MANIFEST.MF 2008-03-26 21:29:56 UTC (rev 724) @@ -4,11 +4,10 @@ Bundle-SymbolicName: org.cishell.testing.convertertester.algorithm Bundle-Version: 0.0.1 Bundle-ClassPath: . -Bundle-Localization: plugin Import-Package: org.cishell.app.service.datamanager, - org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, + org.cishell.framework;version="1.0.0", + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.cishell.reference.app.service.datamanager, org.cishell.reference.app.service.scheduler, org.cishell.reference.gui.common, Modified: trunk/testing/org.cishell.testing.convertertester.core.new/META-INF/MANIFEST.MF =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/META-INF/MANIFEST.MF 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/META-INF/MANIFEST.MF 2008-03-26 21:29:56 UTC (rev 724) @@ -14,10 +14,7 @@ org.osgi.service.metatype;version="1.1.0", org.osgi.service.prefs;version="1.1.0" Require-Bundle: org.prefuse.lib -Export-Package: org.cishell.testing.convertertester.core.converter, - org.cishell.testing.convertertester.core.converter.graph, - org.cishell.testing.convertertester.core.service, - org.cishell.testing.convertertester.core.tester, +Export-Package: org.cishell.testing.convertertester.core.converter.graph, org.cishell.testing.convertertester.core.tester.graphcomparison, org.cishell.testing.convertertester.core.tester2, org.cishell.testing.convertertester.core.tester2.fakelogger, Deleted: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterLoaderImpl.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterLoaderImpl.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterLoaderImpl.java 2008-03-26 21:29:56 UTC (rev 724) @@ -1,146 +0,0 @@ -package org.cishell.testing.convertertester.core.converter; - -import java.util.ArrayList; -import java.util.Hashtable; -import java.util.Map; - -import org.cishell.framework.CIShellContext; -import org.cishell.framework.algorithm.AlgorithmFactory; -import org.cishell.framework.algorithm.AlgorithmProperty; -import org.cishell.service.conversion.Converter; -import org.cishell.service.conversion.DataConversionService; -import org.cishell.testing.convertertester.core.converter.graph.ConverterGraph; -import org.osgi.framework.BundleContext; -import org.osgi.framework.InvalidSyntaxException; -import org.osgi.framework.ServiceEvent; -import org.osgi.framework.ServiceListener; -import org.osgi.framework.ServiceReference; -import org.osgi.service.log.LogService; - - - -public class ConverterLoaderImpl implements AlgorithmProperty, DataConversionService, ServiceListener{ - -public final static String SERVICE_LIST = "SERVICE_LIST"; - private Map converterList; - private BundleContext bContext; - private LogService log; - private CIShellContext ciContext; - - - public ConverterLoaderImpl(BundleContext bContext, CIShellContext cContext, LogService log){ - this.ciContext = cContext; - this.bContext = bContext; - this.log = log; - converterList = new Hashtable(); - - - - String filter = "(&("+ALGORITHM_TYPE+"="+TYPE_CONVERTER+"))"; - //printConverters(bContext); - - try { - this.bContext.addServiceListener(this, filter); - } catch (InvalidSyntaxException e) { - e.printStackTrace(); - } - assembleGraph(); - } - - private void assembleGraph() { - try { - String filter = "(&("+ALGORITHM_TYPE+"="+TYPE_CONVERTER+"))";// + - - - ServiceReference[] refs = bContext.getServiceReferences( - AlgorithmFactory.class.getName(), filter); - ConverterGraph g = new ConverterGraph(refs, bContext, this.log); - - if (refs != null) { - for (int i = 0; i < refs.length; ++i) { - - this.converterList.put(refs[i].getProperty("service.pid").toString(), refs[i]); - - } - } - } catch (InvalidSyntaxException e) { - throw new RuntimeException(e); - } - } - - - - - - public void serviceChanged(ServiceEvent event) { - ServiceReference inServiceRef = event.getServiceReference(); - - - if (event.getType() == ServiceEvent.MODIFIED) { - this.converterList.put(inServiceRef.getProperty("service.pid").toString(), inServiceRef); - } - else if(event.getType() == ServiceEvent.REGISTERED) { - this.converterList.put(inServiceRef.getProperty("service.pid").toString(), inServiceRef); - } - else if(event.getType() == ServiceEvent.UNREGISTERING) { - System.out.println("Unregistering service: " + inServiceRef); - this.converterList.remove(inServiceRef.getProperty("service.pid").toString()); - - } - } - - - - public Converter[] findConverters(String inFormat, String outFormat, int maxHops, String maxComplexity) { - // TODO Auto-generated method stub - return null; - } - - public Converter[] findConverters(String inFormat, String outFormat) { - // TODO Auto-generated method stub - return null; - } - - - - public Converter getConverter(String[] converterChain) throws Exception{ - ArrayList services = new ArrayList(); - for(int ii = 0; ii < converterChain.length; ii++){ - String s = converterChain[ii]; - ServiceReference ref = (ServiceReference) this.converterList.get(s); - if(ref == null){ - throw new Exception("Converter: " + s + " cannot be found"); - } - services.add(ref); - } - return new ConverterTesterImpl(this.bContext, this.ciContext, (ServiceReference[])services.toArray(new ServiceReference[0])); - } - - private static void printConverters(BundleContext bContext){ - String filter = "(&("+ALGORITHM_TYPE+"="+TYPE_CONVERTER+"))"; - try{ - - ServiceReference[] refs = bContext.getAllServiceReferences(AlgorithmFactory.class.getName(), filter); - for(int ii = 0; ii < refs.length; ii++){ - ServiceReference ref = refs[ii]; - System.out.println("\t"+ref.getProperty("service.pid")); - } - - } - catch(Exception ex){ - System.err.println(ex); - } - - } - - public org.cishell.framework.data.Data convert(org.cishell.framework.data.Data data, String outFormat) { - // TODO Auto-generated method stub - return null; - } - - public Converter[] findConverters(org.cishell.framework.data.Data data, String outFormat) { - // TODO Auto-generated method stub - return null; - } - -} Deleted: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterTesterImpl.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterTesterImpl.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/ConverterTesterImpl.java 2008-03-26 21:29:56 UTC (rev 724) @@ -1,169 +0,0 @@ -package org.cishell.testing.convertertester.core.converter; - -import java.util.Dictionary; -import java.util.Enumeration; -import java.util.Hashtable; - -import org.cishell.framework.CIShellContext; -import org.cishell.framework.algorithm.Algorithm; -import org.cishell.framework.algorithm.AlgorithmFactory; -import org.cishell.framework.algorithm.AlgorithmProperty; -import org.cishell.framework.data.BasicData; -import org.cishell.framework.data.Data; -import org.cishell.service.conversion.Converter; -import org.osgi.framework.BundleContext; -import org.osgi.framework.Constants; -import org.osgi.framework.ServiceReference; -import org.osgi.service.metatype.MetaTypeProvider; - - - -public class ConverterTesterImpl implements Converter, AlgorithmFactory, AlgorithmProperty{ - private ServiceReference[] refs; - private BundleContext bContext; - private Dictionary props; - private CIShellContext cContext; - - public ConverterTesterImpl(BundleContext bContext, CIShellContext cContext, ServiceReference[] refs) { - this.bContext = bContext; - this.cContext = cContext; - this.refs = refs; - - props = new Hashtable(); - - props.put(IN_DATA, refs[0].getProperty(IN_DATA)); - props.put(OUT_DATA, refs[refs.length-1].getProperty(OUT_DATA)); - props.put(LABEL, props.get(IN_DATA) + " -> " + props.get(OUT_DATA)); - - String lossiness = LOSSLESS; - for (int i=0; i < refs.length; i++) { - if (LOSSY.equals(refs[i].getProperty(CONVERSION))) { - lossiness = LOSSY; - } - } - //TODO: Do the same thing for complexity - props.put(CONVERSION, lossiness); - } - - public Data convert(Data inDM) { - Data[] dm = new Data[]{inDM}; - - AlgorithmFactory factory = getAlgorithmFactory(); - Algorithm alg = factory.createAlgorithm(dm, new Hashtable(), cContext); - - dm = alg.execute(); - - Object outData = null; - if (dm != null && dm.length > 0) { - outData = dm[0].getData(); - } - - if (outData != null) { - Dictionary props = inDM.getMetaData(); - Dictionary newProps = new Hashtable(); - - for (Enumeration e=props.keys(); e.hasMoreElements();) { - Object key = e.nextElement(); - newProps.put(key, props.get(key)); - } - - String outFormat = (String)getProperties().get(AlgorithmProperty.OUT_DATA); - return new BasicData(newProps, outData, outFormat); - } else { - return null; - } - } - - public AlgorithmFactory getAlgorithmFactory() { - // TODO Auto-generated method stub - return this; - } - - public ServiceReference[] getConverterChain() { - // TODO Auto-generated method stub - return this.refs; - } - - public Dictionary getProperties() { - // TODO Auto-generated method stub - return this.props; - } - - public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) { - // TODO Auto-generated method stub - return new ConverterAlgorithm(data,parameters,context); - } - - public MetaTypeProvider createParameters(Data[] data) { - // TODO Auto-generated method stub - return null; - } - - private class ConverterAlgorithm implements Algorithm { - Data[] inDM; - CIShellContext context; - Dictionary parameters; - - public ConverterAlgorithm(Data[] dm, Dictionary parameters, CIShellContext context) { - this.inDM = dm; - this.parameters = parameters; - this.context = context; - } - - public Data[] execute() { - Data[] dm = inDM; - for (int i=0; i < refs.length; i++) { - AlgorithmFactory factory = (AlgorithmFactory)bContext.getService(refs[i]); - - if (factory != null) { - Algorithm alg = factory.createAlgorithm(dm, parameters, context); -// System.out.println("Entering: " + refs[i].getProperty(Constants.SERVICE_PID)+ "-->"); - dm = alg.execute(); - if(dm == null){ - throw new RuntimeException("Error after " + refs[i].getProperty(Constants.SERVICE_PID)); - - } - } else { - throw new RuntimeException("Missing subconverter: " - + refs[i].getProperty(Constants.SERVICE_PID)); - } - } - - return dm; - } - } - - public int hashCode() { - return toString().hashCode(); - } - - public String toString() { - String str =""; - ServiceReference[] refs = this.refs; - for (int ii = 0; ii < refs.length; ii++) { - ServiceReference ref = refs[ii]; - str += ref.getProperty(Constants.SERVICE_ID) + " " + ref.getProperty(Constants.SERVICE_PID) + "-> "; - } - return str; - } - - public boolean equals(Object o) { - boolean equals = false; - if (o instanceof Converter) { - ServiceReference[] otherServiceReference = ((Converter)o).getConverterChain(); - if (refs.length == otherServiceReference.length) { - for (int i = 0; i < otherServiceReference.length; i++) { - if (refs[i].getProperty(Constants.SERVICE_ID).equals( - otherServiceReference[i].getProperty(Constants.SERVICE_ID))) { - equals = true; - } else { - equals = false; - break; - } - } - } - } - return equals; - } - -} Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/graph/Converter.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/graph/Converter.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/converter/graph/Converter.java 2008-03-26 21:29:56 UTC (rev 724) @@ -4,6 +4,7 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.algorithm.AlgorithmProperty; import org.cishell.framework.data.Data; @@ -69,7 +70,7 @@ } public Data[] execute(Data[] input, Hashtable parameters, - CIShellContext cContext) { + CIShellContext cContext) throws AlgorithmExecutionException { AlgorithmFactory convAlgFactory = (AlgorithmFactory) this.bContext.getService(this.ref); Deleted: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConfigurationFileConstants.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConfigurationFileConstants.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConfigurationFileConstants.java 2008-03-26 21:29:56 UTC (rev 724) @@ -1,10 +0,0 @@ -package org.cishell.testing.convertertester.core.tester; - -public class ConfigurationFileConstants { - public static final String TEST_GRAPHS = "test_graphs="; - public static final String TEST_CONVERTERS = "test_converters="; - public static final String COMPARISON_CONVERTERS = "comparison_converters="; - public static final String NODE_ID_CHANGE = "nodeid_change="; - public static final String EXTENSION = "extension="; - -} Deleted: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConverterTester.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConverterTester.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/ConverterTester.java 2008-03-26 21:29:56 UTC (rev 724) @@ -1,239 +0,0 @@ -package org.cishell.testing.convertertester.core.tester; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.nio.channels.FileChannel; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; - -import org.cishell.framework.CIShellContext; -import org.cishell.framework.data.BasicData; -import org.cishell.framework.data.Data; -import org.cishell.service.conversion.Converter; -import org.cishell.testing.convertertester.core.converter.ConverterLoaderImpl; -import org.cishell.testing.convertertester.core.service.ConfigurationFileParser; -import org.cishell.testing.convertertester.core.tester.graphcomparison.DefaultGraphComparer; -import org.cishell.testing.convertertester.core.tester.graphcomparison.GraphComparer; -import org.osgi.framework.BundleContext; -import org.osgi.service.log.LogService; - -import prefuse.data.Graph; - -public class ConverterTester { - private CIShellContext cContext; - private ConfigurationFileParser cfp; - private ConverterLoaderImpl cli; - private Converter comparisonConverters; - private GraphComparer dgc; - private LogService log; - //private Map<String, Exception> fileErrors; - private static final String tempDir = "converterTesterTemp"; - private File temporaryStorage; - private Converter testConverters; - //string, comparisonresult - private Map results; - - public ConverterTester(BundleContext b, CIShellContext c, LogService log){ - this.cContext = c; - this.log = log; - cli = new ConverterLoaderImpl(b, this.cContext, this.log); - cfp = new ConfigurationFileParser(); - } - - public void runTests(File configFile) throws Exception{ - cfp.parseFile(configFile); - testConverters = cli.getConverter(cfp.getTestConverters()); - comparisonConverters = cli.getConverter(cfp.getComparisonConverters()); - results = new HashMap(); - setupDirectory(); - } - - public ConverterTester(BundleContext b, CIShellContext c, File configFile) throws Exception{ - cContext = c; - cli = new ConverterLoaderImpl(b, cContext, this.log); - cfp = new ConfigurationFileParser(configFile); - testConverters = cli.getConverter(cfp.getTestConverters()); - comparisonConverters = cli.getConverter(cfp.getComparisonConverters()); - results = new HashMap(); - setupDirectory(); - } - - public ConverterTester(BundleContext b, CIShellContext c, String configFileName) throws Exception { - cContext = c; - cli = new ConverterLoaderImpl(b,cContext, this.log); - cfp = new ConfigurationFileParser(new File(configFileName)); - testConverters = cli.getConverter(cfp.getTestConverters()); - comparisonConverters = cli.getConverter(cfp.getComparisonConverters()); - results = new HashMap(); - setupDirectory(); - } - - - private void setupDirectory() throws IOException{ - - temporaryStorage = new File(System.getProperty("user.home") + File.separator + - tempDir); - /*+ File.separator + - )) + - "Temp");*/ - temporaryStorage.mkdir(); - int index = cfp.getConfigFile().lastIndexOf("."); - String s; - if(index > 0) - s = cfp.getConfigFile().substring(0, index); - else - s = cfp.getConfigFile(); - temporaryStorage = new File(temporaryStorage.getCanonicalPath()+File.separator+s+"Temp"); - temporaryStorage.mkdir(); - } - - - private void compareFiles(File sourceFile, File convertedFile){ - System.out.println("Comparing: " + sourceFile.getName() + " and " + convertedFile.getName()); - try{ - dgc = new DefaultGraphComparer(); - results.put(sourceFile.getName() + " " + - convertedFile.getName(), - dgc.compare((Graph)convertFile(sourceFile,this.comparisonConverters).getData(), - (Graph)convertFile(convertedFile,this.comparisonConverters).getData(), - ! cfp.getNodeIDChange())); - - } - catch(Exception ex){ - System.out.println("Could not compare the files. We caught a " + ex.getClass().getName() + " exception"); - ex.printStackTrace(); - } - } - - public void compareFiles(){ - File[] files = temporaryStorage.listFiles(); - for (int ii = 0; ii < files.length; ii++){ - File f = files[ii]; - compareFiles(f,f); - } - } - - private Data convertFile(File f, Converter cnv) throws Exception{ - - try{ - //String s = f.getName(); - //String extension = this.testConverters.getProperties().get(AlgorithmProperty.OUT_DATA).toString(); - System.out.println("Converting " + f.getCanonicalPath()); - Data inData = new BasicData(f.getCanonicalPath(),""); - Data dm = cnv.convert(inData); - - - - if(dm != null){ - System.out.println("Successfully Converted "); - return dm; - } - return null; - } - catch(Exception ex){ - System.out.println("Could not Convert"); - //this.fileErrors.put(s, ex); - //ex.printStackTrace(); - throw ex; - //return null; - } - } - - - public void testFile(File f){ - - - if(!f.isHidden()){ - System.out.println("Testing " + f.getName()); - if(f.isDirectory()){ - File[] files = f.listFiles(); - for (int ii = 0; ii < files.length; ii++) { - File ff = files[ii]; - testFile(ff); - } - } - else{ - try{ - Data dm = convertFile(f,this.testConverters); - if(dm != null){ - writeAsFile(dm, f.getName()); - compareFiles(f,(File)dm.getData()); - } - else { - System.out.println("Could not test the files. The resulting data was null."); - } - }catch(Exception ex){ - System.out.println("Could not test the files."); - } - } - } - - } - - public void testFiles(){ - //System.out.println(this.cfp.getFiles().length); - - File[] files = this.cfp.getFiles(); - for(int i = 0; i < files.length; i++){ - File f = files[i]; - this.testFile(f); - } - } - - public String toString(){ - String output = ""; - output += cfp.toString(); - output += testConverters.toString()+"\r\n"; - output += comparisonConverters.toString()+"\r\n"; - return output; - } - - private void writeAsFile(Data inDM, String fileName){ - String s = fileName.substring(0,fileName.lastIndexOf(".")); - if(inDM != null){ - try{ - copy((File)inDM.getData(), new File(temporaryStorage.getCanonicalPath()+ - File.separator+"converted"+ - s+ this.cfp.getExtension())); - }catch(Exception ex){ - ex.printStackTrace(); - } - - } - } - - private boolean copy(File in, File out) { - try { - FileInputStream fis = new FileInputStream(in); - FileOutputStream fos = new FileOutputStream(out); - - FileChannel readableChannel = fis.getChannel(); - FileChannel writableChannel = fos.getChannel(); - - writableChannel.truncate(0); - writableChannel.transferFrom(readableChannel, 0, readableChannel.size()); - fis.close(); - fos.close(); - return true; - } - catch (IOException ioe) { - System.out.println("Copy Error: IOException during copy\r\n" + ioe.getMessage()); - return false; - } - } - - public void printResults(){ - System.out.println("There are " + this.results.size() + " results"); - Iterator iter = this.results.keySet().iterator(); - while (iter.hasNext()){ - String s = (String) iter.next(); - System.out.println(s); - System.out.println("\t"+this.results.get(s)); - } - } - - -} Deleted: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/OldTestResult.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/OldTestResult.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester/OldTestResult.java 2008-03-26 21:29:56 UTC (rev 724) @@ -1,17 +0,0 @@ -package org.cishell.testing.convertertester.core.tester; - -public abstract class OldTestResult { - public abstract String getType(); - public abstract String[] getTestConverterNames(); - public abstract String[] getComparisonConverterNames(); - - public boolean hasExplanation() {return false;} - public boolean hasFailedConverterName() {return false;} - public boolean hasOriginalGraphName() {return false;} - public boolean hasResultingGraphNames() {return false;} - - public String getExplanation() {return "";} - public String getFailedConverterName() {return "";} - public String getOriginalGraphName() {return "";} - public String[] getResultGraphNames() {return new String[0];} -} Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/ConverterTester2.java 2008-03-26 21:29:56 UTC (rev 724) @@ -212,7 +212,7 @@ results[ii] = new Data[] {new BasicData(new File(filePath), format)}; - Dictionary metadata = results[ii][0].getMetaData(); + Dictionary metadata = results[ii][0].getMetadata(); metadata.put(DataProperty.LABEL, filePath); } Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/DefaultTestRunner.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/DefaultTestRunner.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/DefaultTestRunner.java 2008-03-26 21:29:56 UTC (rev 724) @@ -322,7 +322,7 @@ } Data datum = data[0]; - Dictionary md = datum.getMetaData(); + Dictionary md = datum.getMetadata(); if (md.get(DataProperty.LABEL) == null) { md.put(DataProperty.LABEL, "result of " + converter.getShortName()); } else { @@ -357,7 +357,7 @@ private void alterMetaData(Data[] origFileData) { Data data = origFileData[0]; - Dictionary metadata = data.getMetaData(); + Dictionary metadata = data.getMetadata(); String label = (String) metadata.get(DataProperty.LABEL); if (label != null) { metadata.put(DataProperty.LABEL, getFileName(label)); Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/ConvertedDataSubGenerator.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/ConvertedDataSubGenerator.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/alltests/ConvertedDataSubGenerator.java 2008-03-26 21:29:56 UTC (rev 724) @@ -28,11 +28,11 @@ Object fileData = firstData.getData(); if (fileData != null && fileData instanceof File) { this.convertedDataReport = - new ConvertedDataReport((File) fileData,(String) firstData.getMetaData().get(DataProperty.LABEL) + + new ConvertedDataReport((File) fileData,(String) firstData.getMetadata().get(DataProperty.LABEL) + " for " + fpr.getName() + " of " + tr.getName()); } else { this.convertedDataReport = - new ConvertedDataReport((String) firstData.getMetaData().get(DataProperty.LABEL) + + new ConvertedDataReport((String) firstData.getMetadata().get(DataProperty.LABEL) + " for " + fpr.getName() + " of " + tr.getName()); } } Modified: trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/results/FilePassResult.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/results/FilePassResult.java 2008-03-26 21:12:15 UTC (rev 723) +++ trunk/testing/org.cishell.testing.convertertester.core.new/src/org/cishell/testing/convertertester/core/tester2/reportgen/results/FilePassResult.java 2008-03-26 21:29:56 UTC (rev 724) @@ -116,7 +116,7 @@ } public String getOriginalFileLabel() { - return (String) getOriginalData()[0].getMetaData().get(DataProperty.LABEL); + return (String) getOriginalData()[0].getMetadata().get(DataProperty.LABEL); } public String getOriginalFileShortLabel() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
Revision: 723 http://cishell.svn.sourceforge.net/cishell/?rev=723&view=rev Author: mwlinnem Date: 2008-03-26 14:12:15 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Change metadata line. Modified Paths: -------------- trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithm.java Modified: trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithm.java =================================================================== --- trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithm.java 2008-03-26 20:46:09 UTC (rev 722) +++ trunk/testing/org.cishell.testing.convertertester.algorithm/src/org/cishell/testing/convertertester/algorithm/ConverterTesterAlgorithm.java 2008-03-26 21:12:15 UTC (rev 723) @@ -361,7 +361,7 @@ private Data createReportData(Object report, String label, Data parent, String format, String type) { Data reportData = new BasicData(report, format); - Dictionary metadata = reportData.getMetaData(); + Dictionary metadata = reportData.getMetadata(); if (label == null) { label = "no label"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 20:46:27
|
Revision: 722 http://cishell.svn.sourceforge.net/cishell/?rev=722&view=rev Author: bh2 Date: 2008-03-26 13:46:09 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Made menumanager use the DEBUG level of logging for its messages Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/Activator.java trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java Modified: trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/Activator.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/Activator.java 2008-03-26 18:02:53 UTC (rev 721) +++ trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/Activator.java 2008-03-26 20:46:09 UTC (rev 722) @@ -42,7 +42,7 @@ public void start(BundleContext context) throws Exception { super.start(context); - this.context = context; + Activator.context = context; while (getWorkbench() == null) { Thread.sleep(500); Modified: trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-03-26 18:02:53 UTC (rev 721) +++ trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-03-26 20:46:09 UTC (rev 722) @@ -116,7 +116,7 @@ // initializeMenu(); } catch (InvalidSyntaxException e) { - getLog().log(LogService.LOG_ERROR, "Invalid Syntax", e); + getLog().log(LogService.LOG_DEBUG, "Invalid Syntax", e); } } @@ -275,7 +275,7 @@ } else{ //otherwise log the error - getLog().log(LogService.LOG_WARNING, + getLog().log(LogService.LOG_DEBUG, "Can not find an algorithm package associated with Menu: " +menuName+" and pid: " +pid+ ". Skip to show it on the menu."); } @@ -397,8 +397,8 @@ Display.getDefault().asyncExec(updateAction); } else { -// getLog().log(LogService.LOG_WARNING, -// "Bad menu path for Algorithm: " + ref.getProperty(LABEL)); + getLog().log(LogService.LOG_DEBUG, + "Bad menu path for Algorithm: " + ref.getProperty(LABEL)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 18:03:29
|
Revision: 721 http://cishell.svn.sourceforge.net/cishell/?rev=721&view=rev Author: bh2 Date: 2008-03-26 11:02:53 -0700 (Wed, 26 Mar 2008) Log Message: ----------- removed including equinox even though it REALLY REALLY needs it. Modified Paths: -------------- trunk/deployment/org.cishell.development.feature/feature.xml Modified: trunk/deployment/org.cishell.development.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-26 15:56:54 UTC (rev 720) +++ trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-26 18:02:53 UTC (rev 721) @@ -36,10 +36,6 @@ <discovery label="CIShell Update Site" url="http://cishell.org/update"/> </url> - <includes - id="org.eclipse.equinox" - version="0.0.0"/> - <plugin id="org.cishell.framework" download-size="0" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 15:56:58
|
Revision: 720 http://cishell.svn.sourceforge.net/cishell/?rev=720&view=rev Author: bh2 Date: 2008-03-26 08:56:54 -0700 (Wed, 26 Mar 2008) Log Message: ----------- updated to 1.0 Modified Paths: -------------- trunk/deployment/org.cishell.development.feature/feature.xml trunk/deployment/org.cishell.update/site.xml Modified: trunk/deployment/org.cishell.development.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-26 14:07:42 UTC (rev 719) +++ trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-26 15:56:54 UTC (rev 720) @@ -40,10 +40,6 @@ id="org.eclipse.equinox" version="0.0.0"/> - <includes - id="org.eclipse.equinox.source" - version="0.0.0"/> - <plugin id="org.cishell.framework" download-size="0" Modified: trunk/deployment/org.cishell.update/site.xml =================================================================== --- trunk/deployment/org.cishell.update/site.xml 2008-03-26 14:07:42 UTC (rev 719) +++ trunk/deployment/org.cishell.update/site.xml 2008-03-26 15:56:54 UTC (rev 720) @@ -3,19 +3,19 @@ <description url="http://cishell.org/update"> Update site for CIShell: Cyberinfrastructure Shell </description> - <feature url="features/org.cishell.algorithm.examples.feature_0.2.0.200610161755.jar" id="org.cishell.algorithm.examples.feature" version="0.2.0.200610161755"> + <feature url="features/org.cishell.development.feature_1.0.0.jar" id="org.cishell.development.feature" version="1.0.0"> <category name="Development"/> </feature> - <feature url="features/org.cishell.development.feature_0.2.0.200610161755.jar" id="org.cishell.development.feature" version="0.2.0.200610161755"> - <category name="Development"/> + <feature url="features/org.cishell.reference.gui.brand.feature_1.0.0.jar" id="org.cishell.reference.gui.brand.feature" version="1.0.0"> + <category name="Applications"/> </feature> - <feature url="features/org.cishell.reference.gui.feature_0.2.0.200610161755.jar" id="org.cishell.reference.gui.feature" version="0.2.0.200610161755"> + <feature url="features/org.cishell.reference.gui.feature_1.0.0.jar" id="org.cishell.reference.gui.feature" version="1.0.0"> <category name="Applications"/> </feature> - <feature url="features/org.cishell.feature_0.2.0.200610161755.jar" id="org.cishell.feature" version="0.2.0.200610161755"> + <feature url="features/org.cishell.feature_1.0.0.jar" id="org.cishell.feature" version="1.0.0"> <category name="Core Features"/> </feature> - <feature url="features/org.cishell.reference.feature_0.2.0.200610161755.jar" id="org.cishell.reference.feature" version="0.2.0.200610161755"> + <feature url="features/org.cishell.reference.feature_1.0.0.jar" id="org.cishell.reference.feature" version="1.0.0"> <category name="Core Features"/> </feature> <category-def name="Development" label="Development"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 14:08:06
|
Revision: 719 http://cishell.svn.sourceforge.net/cishell/?rev=719&view=rev Author: bh2 Date: 2008-03-26 07:07:42 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Committing an additional dependency that the remoting project has Added Paths: ----------- trunk/libs/org.knopflerfish.util/.classpath trunk/libs/org.knopflerfish.util/.project trunk/libs/org.knopflerfish.util/.settings/ trunk/libs/org.knopflerfish.util/.settings/org.eclipse.pde.core.prefs trunk/libs/org.knopflerfish.util/META-INF/ trunk/libs/org.knopflerfish.util/META-INF/MANIFEST.MF trunk/libs/org.knopflerfish.util/build.properties trunk/libs/org.knopflerfish.util/org/ trunk/libs/org.knopflerfish.util/org/knopflerfish/ trunk/libs/org.knopflerfish.util/org/knopflerfish/util/ trunk/libs/org.knopflerfish.util/org/knopflerfish/util/framework/ trunk/libs/org.knopflerfish.util/org/knopflerfish/util/sort/ trunk/libs/org.knopflerfish.util/org/knopflerfish/util/workerthread/ Added: trunk/libs/org.knopflerfish.util/.classpath =================================================================== --- trunk/libs/org.knopflerfish.util/.classpath (rev 0) +++ trunk/libs/org.knopflerfish.util/.classpath 2008-03-26 14:07:42 UTC (rev 719) @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry exported="true" kind="lib" path=""/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> Added: trunk/libs/org.knopflerfish.util/.project =================================================================== --- trunk/libs/org.knopflerfish.util/.project (rev 0) +++ trunk/libs/org.knopflerfish.util/.project 2008-03-26 14:07:42 UTC (rev 719) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.knopflerfish.util</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> Added: trunk/libs/org.knopflerfish.util/.settings/org.eclipse.pde.core.prefs =================================================================== --- trunk/libs/org.knopflerfish.util/.settings/org.eclipse.pde.core.prefs (rev 0) +++ trunk/libs/org.knopflerfish.util/.settings/org.eclipse.pde.core.prefs 2008-03-26 14:07:42 UTC (rev 719) @@ -0,0 +1,5 @@ +#Wed Mar 26 13:40:17 GMT 2008 +eclipse.preferences.version=1 +pluginProject.equinox=false +pluginProject.extensions=false +resolve.requirebundle=false Added: trunk/libs/org.knopflerfish.util/META-INF/MANIFEST.MF =================================================================== --- trunk/libs/org.knopflerfish.util/META-INF/MANIFEST.MF (rev 0) +++ trunk/libs/org.knopflerfish.util/META-INF/MANIFEST.MF 2008-03-26 14:07:42 UTC (rev 719) @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Knopflerfish Utility Bundle +Bundle-SymbolicName: org.knopflerfish.util +Bundle-Version: 2.0.4 +Export-Package: org.knopflerfish.util, + org.knopflerfish.util.framework, + org.knopflerfish.util.sort, + org.knopflerfish.util.workerthread +Import-Package: org.osgi.framework; version="1.4.0" Added: trunk/libs/org.knopflerfish.util/build.properties =================================================================== --- trunk/libs/org.knopflerfish.util/build.properties (rev 0) +++ trunk/libs/org.knopflerfish.util/build.properties 2008-03-26 14:07:42 UTC (rev 719) @@ -0,0 +1,4 @@ +source.. = . +output.. = . +bin.includes = META-INF/,\ + org/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 14:06:12
|
Revision: 718 http://cishell.svn.sourceforge.net/cishell/?rev=718&view=rev Author: bh2 Date: 2008-03-26 07:05:25 -0700 (Wed, 26 Mar 2008) Log Message: ----------- Committing an additional dependency that the remoting project has Added Paths: ----------- trunk/libs/org.knopflerfish.util/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 14:03:34
|
Revision: 717 http://cishell.svn.sourceforge.net/cishell/?rev=717&view=rev Author: bh2 Date: 2008-03-26 07:03:15 -0700 (Wed, 26 Mar 2008) Log Message: ----------- somewhat updated the reference remoting project to 1.0. It DOES NOT WORK. If we really want this, we'll need to spend actual time on it and maybe even actually use it. Modified Paths: -------------- trunk/clients/remoting/org.cishell.reference.remoting/META-INF/MANIFEST.MF trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/client/DataModelRegistryClient.java trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmFactoryRegistryServer.java trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmRegistryServer.java trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/DataModelRegistryServer.java trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/service/conversion/RemoteDataConversionServiceServer.java trunk/clients/remoting/org.cishell.remoting/META-INF/MANIFEST.MF Modified: trunk/clients/remoting/org.cishell.reference.remoting/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/META-INF/MANIFEST.MF 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/META-INF/MANIFEST.MF 2008-03-26 14:03:15 UTC (rev 717) @@ -2,18 +2,18 @@ Bundle-ManifestVersion: 2 Bundle-Name: CIShell Client/Server Reference Implementation Bundle-SymbolicName: org.cishell.reference.remoting -Bundle-Version: 0.0.1 -Bundle-Localization: plugin +Bundle-Version: 1.0.0 Service-Component: OSGI-INF/server.xml, OSGI-INF/client.xml X-AutoStart: true Import-Package: org.cishell.app.service.scheduler, - org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, + org.cishell.framework;version="1.0.0", + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.cishell.remoting.service.conversion, org.cishell.remoting.service.framework, - org.cishell.service.conversion, - org.cishell.service.guibuilder, + org.cishell.reference.service.metatype, + org.cishell.service.conversion;version="1.0.0", + org.cishell.service.guibuilder;version="1.0.0", org.knopflerfish.util, org.kobjects.base64, org.ksoap2, Modified: trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/client/DataModelRegistryClient.java =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/client/DataModelRegistryClient.java 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/client/DataModelRegistryClient.java 2008-03-26 14:03:15 UTC (rev 717) @@ -33,6 +33,7 @@ import org.cishell.reference.remoting.RemotingClient; import org.cishell.remoting.service.conversion.RemoteDataConversionService; import org.cishell.remoting.service.framework.DataModelRegistry; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.cishell.service.conversion.DataConversionService; @@ -126,8 +127,8 @@ id = ((RemoteDataModel) dm).dmID; } else { Hashtable properties = null; - if (dm.getMetaData() != null) { - properties = toHashtable(dm.getMetaData()); + if (dm.getMetadata() != null) { + properties = toHashtable(dm.getMetadata()); } else { properties = new Hashtable(); } @@ -166,7 +167,11 @@ format = (String)conversion.get(0); finalOutFormat = (String)conversion.get(1); - dm = converter.convert(dm, format); + try { + dm = converter.convert(dm, format); + } catch (ConversionException e) { + dm = null; + } } } else { dm = null; @@ -283,7 +288,11 @@ Data dm = new BasicData(new Hashtable(), file, inFormat); - dm = convert[0].convert(dm); + try { + dm = convert[0].convert(dm); + } catch (ConversionException e) { + dm = null; + } if (dm != null) { data = dm.getData(); @@ -298,7 +307,7 @@ return data; } - public Dictionary getMetaData() { + public Dictionary getMetadata() { if (properties == null) { properties = reg.getProperties(dmID); } Modified: trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmFactoryRegistryServer.java =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmFactoryRegistryServer.java 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmFactoryRegistryServer.java 2008-03-26 14:03:15 UTC (rev 717) @@ -23,6 +23,8 @@ import org.cishell.framework.algorithm.Algorithm; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.Data; +import org.cishell.reference.service.metatype.BasicMetaTypeProvider; +import org.cishell.reference.service.metatype.BasicObjectClassDefinition; import org.cishell.remoting.service.framework.AlgorithmFactoryRegistry; import org.cishell.remoting.service.framework.AlgorithmRegistry; import org.cishell.remoting.service.framework.DataModelRegistry; @@ -106,13 +108,29 @@ if (factory != null && algReg != null && mtpReg != null && dmReg != null) { Data[] dm = dmReg.getDataModels(dataModelIDs); - MetaTypeProvider mtp = factory.createParameters(dm); + MetaTypeProvider mtp = getMetaTypeProvider(servicePID, dm); mtpID = mtpReg.registerMetaTypeProvider(mtp); } return mtpID; } + //FIXME + private MetaTypeProvider getMetaTypeProvider(String servicePID, Data[] dm) { + try { + String filter = "(" + Constants.SERVICE_PID + "=" + servicePID + ")"; + ServiceReference[] refs = bContext.getServiceReferences(AlgorithmFactory.class.getName(), filter); + + if (refs != null && refs.length == 1) { + + } + } catch (InvalidSyntaxException e) { + + } + + return new BasicMetaTypeProvider(new BasicObjectClassDefinition(servicePID,"","",null)); + } + public Hashtable getProperties(String servicePID) { Hashtable ht = new Hashtable(); Modified: trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmRegistryServer.java =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmRegistryServer.java 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/AlgorithmRegistryServer.java 2008-03-26 14:03:15 UTC (rev 717) @@ -22,6 +22,7 @@ import org.cishell.app.service.scheduler.SchedulerService; import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.data.Data; import org.cishell.reference.remoting.ObjectRegistry; import org.cishell.reference.remoting.event.CIShellEventConstants; @@ -136,7 +137,7 @@ this.algorithmID = algorithmID; } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { return algorithm.execute(); } } Modified: trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/DataModelRegistryServer.java =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/DataModelRegistryServer.java 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/DataModelRegistryServer.java 2008-03-26 14:03:15 UTC (rev 717) @@ -27,6 +27,7 @@ import org.cishell.framework.data.Data; import org.cishell.reference.remoting.ObjectRegistry; import org.cishell.remoting.service.framework.DataModelRegistry; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.DataConversionService; import org.osgi.framework.BundleContext; @@ -79,7 +80,11 @@ ciContext.getService(DataConversionService.class.getName()); Data dm = getDataModel(dataModelID); - dm = converter.convert(dm, format); + try { + dm = converter.convert(dm, format); + } catch (ConversionException e1) { + dm = null; + } byte[] data = null; if (dm != null && dm.getData() instanceof File) { @@ -138,7 +143,7 @@ * @see org.cishell.remoting.service.framework.DataModelRegistry#getProperties(String) */ public Hashtable getProperties(String dataModelID) { - return (Hashtable) getDataModel(dataModelID).getMetaData(); + return (Hashtable) getDataModel(dataModelID).getMetadata(); } /** @@ -206,7 +211,7 @@ return null; } - public Dictionary getMetaData() { + public Dictionary getMetadata() { return new Hashtable(); } Modified: trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/service/conversion/RemoteDataConversionServiceServer.java =================================================================== --- trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/service/conversion/RemoteDataConversionServiceServer.java 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.reference.remoting/src/org/cishell/reference/remoting/server/service/conversion/RemoteDataConversionServiceServer.java 2008-03-26 14:03:15 UTC (rev 717) @@ -23,6 +23,7 @@ import org.cishell.framework.data.Data; import org.cishell.remoting.service.conversion.RemoteDataConversionService; import org.cishell.remoting.service.framework.DataModelRegistry; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.cishell.service.conversion.DataConversionService; import org.osgi.framework.BundleContext; @@ -55,7 +56,11 @@ Data dm = dmRegistry.getDataModel(dataModelID); if (dm != null) { - dm = converter.convert(dm, outFormat); + try { + dm = converter.convert(dm, outFormat); + } catch (ConversionException e) { + dm = null; + } if (dm != null) { id = dmRegistry.registerDataModel(dm); Modified: trunk/clients/remoting/org.cishell.remoting/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/remoting/org.cishell.remoting/META-INF/MANIFEST.MF 2008-03-26 13:30:42 UTC (rev 716) +++ trunk/clients/remoting/org.cishell.remoting/META-INF/MANIFEST.MF 2008-03-26 14:03:15 UTC (rev 717) @@ -3,9 +3,8 @@ Bundle-Name: CIShell Remoting API Bundle-SymbolicName: org.cishell.remoting Bundle-Version: 1.0.0 -Bundle-Localization: plugin -Import-Package: org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.osgi.service.metatype;version="1.1.0" Export-Package: org.cishell.remoting.service.conversion, org.cishell.remoting.service.framework This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-26 13:30:44
|
Revision: 716 http://cishell.svn.sourceforge.net/cishell/?rev=716&view=rev Author: bh2 Date: 2008-03-26 06:30:42 -0700 (Wed, 26 Mar 2008) Log Message: ----------- updated scripting layer to be cishell 1.0 compatible Modified Paths: -------------- trunk/clients/scripting/org.cishell.reference.scripting/META-INF/MANIFEST.MF trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test.py trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test2.py Modified: trunk/clients/scripting/org.cishell.reference.scripting/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/scripting/org.cishell.reference.scripting/META-INF/MANIFEST.MF 2008-03-25 21:08:31 UTC (rev 715) +++ trunk/clients/scripting/org.cishell.reference.scripting/META-INF/MANIFEST.MF 2008-03-26 13:30:42 UTC (rev 716) @@ -2,12 +2,11 @@ Bundle-ManifestVersion: 2 Bundle-Name: Reference Scripting Client Bundle-SymbolicName: org.cishell.reference.scripting -Bundle-Version: 0.0.1 +Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.scripting.Activator -Bundle-Localization: plugin -Import-Package: org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.framework;version="1.0.0", + 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.log;version="1.3.0", org.python.core, Modified: trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test.py =================================================================== --- trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test.py 2008-03-25 21:08:31 UTC (rev 715) +++ trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test.py 2008-03-26 13:30:42 UTC (rev 716) @@ -15,11 +15,11 @@ def getService(service): return bContext.getService(bContext.getServiceReference(str(service))) -from org.cishell.framework.datamodel import BasicDataModel +from org.cishell.framework.data import BasicData refs = findAlgorithms() factory = getAlgorithm(refs[2]) -alg = factory.createAlgorithm([BasicDataModel(None)],Hashtable(),ciContext) +alg = factory.createAlgorithm([BasicData(None)],Hashtable(),ciContext) dm1 = alg.execute() dm2 = [BasicDataModel("100"),] Modified: trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test2.py =================================================================== --- trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test2.py 2008-03-25 21:08:31 UTC (rev 715) +++ trunk/clients/scripting/org.cishell.reference.scripting/src/org/cishell/reference/scripting/test2.py 2008-03-26 13:30:42 UTC (rev 716) @@ -11,14 +11,14 @@ def getService(service): return bContext.getService(bContext.getServiceReference(str(service))) -from org.cishell.framework.datamodel import BasicDataModel +from org.cishell.framework.data import BasicData refs = findAlgorithms("(service.pid=org.cishell.tests.conversion1.algA)") factory = getAlgorithm(refs[0]) ht = Hashtable() ht["org.cishell.tests.conversion1.AlgA.myInput"] = "100" -alg = factory.createAlgorithm([BasicDataModel(None)],ht,ciContext) +alg = factory.createAlgorithm([],ht,ciContext) dm1 = alg.execute() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-25 21:08:38
|
Revision: 715 http://cishell.svn.sourceforge.net/cishell/?rev=715&view=rev Author: mwlinnem Date: 2008-03-25 14:08:31 -0700 (Tue, 25 Mar 2008) Log Message: ----------- Made CIShell 1.0 Compatible. Modified Paths: -------------- trunk/templates/org.cishell.templates.wizards/templates_3.0/jython_algorithm/META-INF/MANIFEST.MF Modified: trunk/templates/org.cishell.templates.wizards/templates_3.0/jython_algorithm/META-INF/MANIFEST.MF =================================================================== --- trunk/templates/org.cishell.templates.wizards/templates_3.0/jython_algorithm/META-INF/MANIFEST.MF 2008-03-25 20:52:42 UTC (rev 714) +++ trunk/templates/org.cishell.templates.wizards/templates_3.0/jython_algorithm/META-INF/MANIFEST.MF 2008-03-25 21:08:31 UTC (rev 715) @@ -6,9 +6,9 @@ Bundle-ClassPath: . Bundle-Localization: plugin Import-Package: org.cishell.templates.jythonrunner, - org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, + org.cishell.framework;version="1.0.0", + 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", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-25 20:53:51
|
Revision: 714 http://cishell.svn.sourceforge.net/cishell/?rev=714&view=rev Author: bh2 Date: 2008-03-25 13:52:42 -0700 (Tue, 25 Mar 2008) Log Message: ----------- forgot a new bundle dependency for equinox DS Modified Paths: -------------- trunk/deployment/org.cishell.environment.equinox.feature/feature.xml Modified: trunk/deployment/org.cishell.environment.equinox.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.environment.equinox.feature/feature.xml 2008-03-25 20:22:30 UTC (rev 713) +++ trunk/deployment/org.cishell.environment.equinox.feature/feature.xml 2008-03-25 20:52:42 UTC (rev 714) @@ -44,6 +44,13 @@ unpack="false"/> <plugin + id="org.eclipse.equinox.util" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin id="org.eclipse.equinox.event" download-size="0" install-size="0" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-25 20:25:21
|
Revision: 713 http://cishell.svn.sourceforge.net/cishell/?rev=713&view=rev Author: mwlinnem Date: 2008-03-25 13:22:30 -0700 (Tue, 25 Mar 2008) Log Message: ----------- Fixed for CIShell 1.0. Modified Paths: -------------- 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/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java =================================================================== --- trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java 2008-03-25 19:59:25 UTC (rev 712) +++ trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonAlgorithmFactory.java 2008-03-25 20:22:30 UTC (rev 713) @@ -29,11 +29,6 @@ this.properties = ctxt.getProperties(); } - - protected void deactivate(ComponentContext ctxt) { - provider = null; - } - public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) { return new JythonRunnerAlgorithm(data, parameters, context, 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:59:25 UTC (rev 712) +++ trunk/templates/org.cishell.templates.jythonrunner/src/org/cishell/templates/jythonrunner/JythonResultFormatter.java 2008-03-25 20:22:30 UTC (rev 713) @@ -53,7 +53,7 @@ List results = new ArrayList(); for (int ii = 0; ii < data.size(); ii++) { Data result = ((Data) data.get(ii)); - Dictionary metadataHolder = result.getMetaData(); + Dictionary metadataHolder = result.getMetadata(); String dataLabel = getResultLabel(properties, ii); metadataHolder.put(DataProperty.LABEL, dataLabel); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-25 20:01:07
|
Revision: 712 http://cishell.svn.sourceforge.net/cishell/?rev=712&view=rev Author: mwlinnem Date: 2008-03-25 12:59:25 -0700 (Tue, 25 Mar 2008) Log Message: ----------- Added version="1.0.0" to import. Modified Paths: -------------- trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF 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:58:01 UTC (rev 711) +++ trunk/templates/org.cishell.templates.jythonrunner/META-INF/MANIFEST.MF 2008-03-25 19:59:25 UTC (rev 712) @@ -5,7 +5,7 @@ Bundle-Version: 1.0.0 Bundle-ClassPath: . Bundle-Localization: plugin -Import-Package: org.cishell.framework, +Import-Package: org.cishell.framework;version="1.0.0", org.cishell.framework.algorithm;version="1.0.0", org.cishell.framework.data;version="1.0.0", org.osgi.framework;version="1.3.0", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-25 20:00:10
|
Revision: 711 http://cishell.svn.sourceforge.net/cishell/?rev=711&view=rev Author: bh2 Date: 2008-03-25 12:58:01 -0700 (Tue, 25 Mar 2008) Log Message: ----------- cleaned up manifest a bit Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF Modified: trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF 2008-03-25 19:55:46 UTC (rev 710) +++ trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF 2008-03-25 19:58:01 UTC (rev 711) @@ -4,14 +4,13 @@ Bundle-SymbolicName: org.cishell.reference.gui.datamanager;singleton:=true Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.gui.datamanager.Activator -Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime -Eclipse-LazyStart: true -Import-Package: org.cishell.app.service.datamanager, - org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.app.service.datamanager;version="1.0.0", + org.cishell.framework;version="1.0.0", + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.cishell.reference.gui.workspace, org.osgi.service.log;version="1.3.0" Export-Package: org.cishell.reference.gui.datamanager +Bundle-ActivationPolicy: lazy This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <bh...@us...> - 2008-03-25 19:40:25
|
Revision: 709 http://cishell.svn.sourceforge.net/cishell/?rev=709&view=rev Author: bh2 Date: 2008-03-25 12:38:29 -0700 (Tue, 25 Mar 2008) Log Message: ----------- made template algorithm's member variables private and tidied up the manifest Modified Paths: -------------- trunk/templates/org.cishell.templates.wizards/META-INF/MANIFEST.MF trunk/templates/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java Modified: trunk/templates/org.cishell.templates.wizards/META-INF/MANIFEST.MF =================================================================== --- trunk/templates/org.cishell.templates.wizards/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) +++ trunk/templates/org.cishell.templates.wizards/META-INF/MANIFEST.MF 2008-03-25 19:38:29 UTC (rev 709) @@ -2,9 +2,8 @@ Bundle-ManifestVersion: 2 Bundle-Name: CIShell Integration Wizards Bundle-SymbolicName: org.cishell.templates.wizards;singleton:=true -Bundle-Version: 0.9.5 +Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.templates.wizards.Activator -Bundle-Localization: plugin Require-Bundle: org.eclipse.ui;bundle-version="3.2.0", org.eclipse.ui.ide;bundle-version="3.2.0", org.eclipse.core.resources;bundle-version="3.2.0", @@ -17,5 +16,5 @@ org.eclipse.jdt.ui;bundle-version="3.2.0", org.eclipse.jdt.core;bundle-version="3.2.0", org.eclipse.jdt.launching;bundle-version="3.2.0" -Eclipse-LazyStart: true +Bundle-ActivationPolicy: lazy Import-Package: org.osgi.service.metatype;version="1.1.0" Modified: trunk/templates/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-25 19:32:53 UTC (rev 708) +++ trunk/templates/org.cishell.templates.wizards/templates_3.0/java_algorithm/java/$algClass$.java 2008-03-25 19:38:29 UTC (rev 709) @@ -8,9 +8,9 @@ import org.cishell.framework.data.Data; public class $algClass$ implements Algorithm { - Data[] data; - Dictionary parameters; - CIShellContext context; + private Data[] data; + private Dictionary parameters; + private CIShellContext context; public $algClass$(Data[] data, Dictionary parameters, CIShellContext context) { this.data = data; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-25 19:35:19
|
Revision: 708 http://cishell.svn.sourceforge.net/cishell/?rev=708&view=rev Author: bh2 Date: 2008-03-25 12:32:53 -0700 (Tue, 25 Mar 2008) Log Message: ----------- removed some unneeded bundle-localization items in manifests Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.menumanager/META-INF/MANIFEST.MF trunk/clients/gui/org.cishell.reference.gui.workspace/META-INF/MANIFEST.MF trunk/core/org.cishell.reference/META-INF/MANIFEST.MF trunk/core/org.cishell.reference.services/META-INF/MANIFEST.MF trunk/core/org.cishell.service.autostart/META-INF/MANIFEST.MF trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java trunk/libs/cern.colt/META-INF/MANIFEST.MF trunk/libs/edu.uci.ics.jung/META-INF/MANIFEST.MF trunk/libs/org.apache.commons.collections/META-INF/MANIFEST.MF trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF Modified: trunk/clients/gui/org.cishell.reference.gui.menumanager/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.menumanager/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/clients/gui/org.cishell.reference.gui.menumanager/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,7 +4,6 @@ Bundle-SymbolicName: org.cishell.reference.gui.menumanager;singleton:=true Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.gui.menumanager.Activator -Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime Eclipse-LazyStart: true Modified: trunk/clients/gui/org.cishell.reference.gui.workspace/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.workspace/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/clients/gui/org.cishell.reference.gui.workspace/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,7 +4,6 @@ Bundle-SymbolicName: org.cishell.reference.gui.workspace; singleton:=true Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.gui.workspace.Activator -Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.eclipse.update.ui Modified: trunk/core/org.cishell.reference/META-INF/MANIFEST.MF =================================================================== --- trunk/core/org.cishell.reference/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/core/org.cishell.reference/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -3,7 +3,6 @@ Bundle-Name: CIShell Reference Service Implementations Bundle-SymbolicName: org.cishell.reference Bundle-Version: 1.0.0 -Bundle-Localization: plugin Import-Package: org.cishell.app.service.datamanager;version="1.0.0", org.cishell.app.service.scheduler;version="1.0.0", org.cishell.framework;version="1.0.0", Modified: trunk/core/org.cishell.reference.services/META-INF/MANIFEST.MF =================================================================== --- trunk/core/org.cishell.reference.services/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/core/org.cishell.reference.services/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,7 +4,6 @@ Bundle-SymbolicName: org.cishell.reference.services Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.services.Activator -Bundle-Localization: plugin X-AutoStart: true Import-Package: org.cishell.app.service.datamanager;version="1.0.0", org.cishell.app.service.scheduler;version="1.0.0", Modified: trunk/core/org.cishell.service.autostart/META-INF/MANIFEST.MF =================================================================== --- trunk/core/org.cishell.service.autostart/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/core/org.cishell.service.autostart/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,5 +4,4 @@ Bundle-SymbolicName: org.cishell.service.autostart Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.service.autostart.Activator -Bundle-Localization: plugin Import-Package: org.osgi.framework;version="1.3.0" Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java 2008-03-25 19:32:53 UTC (rev 708) @@ -20,7 +20,6 @@ import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.Data; import org.osgi.service.log.LogService; -import org.osgi.service.metatype.MetaTypeProvider; /** * Modified: trunk/libs/cern.colt/META-INF/MANIFEST.MF =================================================================== --- trunk/libs/cern.colt/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/libs/cern.colt/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,5 +4,4 @@ Bundle-SymbolicName: cern.colt Bundle-Version: 1.2.0 Bundle-ClassPath: colt.jar -Bundle-Localization: plugin Export-Package: cern.clhep,cern.colt,cern.colt.bitvector,cern.colt.buffer,cern.colt.function,cern.colt.list,cern.colt.list.adapter,cern.colt.map,cern.colt.matrix,cern.colt.matrix.bench,cern.colt.matrix.doublealgo,cern.colt.matrix.impl,cern.colt.matrix.linalg,cern.colt.matrix.objectalgo,cern.jet.math,cern.jet.random,cern.jet.random.engine,cern.jet.random.sampling,cern.jet.stat,cern.jet.stat.quantile,corejava,hep.aida,hep.aida.bin,hep.aida.ref Modified: trunk/libs/edu.uci.ics.jung/META-INF/MANIFEST.MF =================================================================== --- trunk/libs/edu.uci.ics.jung/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/libs/edu.uci.ics.jung/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,7 +4,6 @@ Bundle-SymbolicName: edu.uci.ics.jung Bundle-Version: 1.7.4 Bundle-ClassPath: jung-1.7.4.jar -Bundle-Localization: plugin Export-Package: edu.uci.ics.jung.algorithms, edu.uci.ics.jung.algorithms.blockmodel, edu.uci.ics.jung.algorithms.cluster, Modified: trunk/libs/org.apache.commons.collections/META-INF/MANIFEST.MF =================================================================== --- trunk/libs/org.apache.commons.collections/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/libs/org.apache.commons.collections/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -4,5 +4,4 @@ Bundle-SymbolicName: org.apache.commons.collections Bundle-Version: 3.1.0 Bundle-ClassPath: commons-collections-3.1.jar -Bundle-Localization: plugin Export-Package: org.apache.commons.collections,org.apache.commons.collections.bag,org.apache.commons.collections.bidimap,org.apache.commons.collections.buffer,org.apache.commons.collections.collection,org.apache.commons.collections.comparators,org.apache.commons.collections.functors,org.apache.commons.collections.iterators,org.apache.commons.collections.keyvalue,org.apache.commons.collections.list,org.apache.commons.collections.map,org.apache.commons.collections.set Modified: trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF =================================================================== --- trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) +++ trunk/templates/org.cishell.templates/META-INF/MANIFEST.MF 2008-03-25 19:32:53 UTC (rev 708) @@ -3,7 +3,6 @@ Bundle-Name: CIShell Template Code Provider Bundle-SymbolicName: org.cishell.templates;singleton:=true Bundle-Version: 1.0.0 -Bundle-Localization: plugin X-AutoStart: true Import-Package: org.cishell.framework;version="1.0.0", org.cishell.framework.algorithm;version="1.0.0", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mwl...@us...> - 2008-03-25 19:21:25
|
Revision: 707 http://cishell.svn.sourceforge.net/cishell/?rev=707&view=rev Author: mwlinnem Date: 2008-03-25 12:18:32 -0700 (Tue, 25 Mar 2008) Log Message: ----------- Made CIShell 1.0 compatible. Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.persistence/META-INF/MANIFEST.MF trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoadFactory.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/FileSaver.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/Save.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveDataChooser.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileView.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileViewFactory.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/ViewDataChooser.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWith.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/ViewWithDataChooser.java Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/META-INF/MANIFEST.MF 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/META-INF/MANIFEST.MF 2008-03-25 19:18:32 UTC (rev 707) @@ -2,17 +2,17 @@ Bundle-ManifestVersion: 2 Bundle-Name: Persistence Plug-in Bundle-SymbolicName: org.cishell.reference.gui.persistence;singleton:=true -Bundle-Version: 0.7.0 +Bundle-Version: 1.0.0 Bundle-ClassPath: . Bundle-Localization: plugin Import-Package: org.cishell.app.service.datamanager, - org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, + org.cishell.framework;version="1.0.0", + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", org.cishell.reference.gui.common, org.cishell.reference.service.metatype, - org.cishell.service.conversion, - org.cishell.service.guibuilder, + org.cishell.service.conversion;version="1.0.0", + org.cishell.service.guibuilder;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/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoad.java 2008-03-25 19:18:32 UTC (rev 707) @@ -3,26 +3,24 @@ import java.io.File; import java.util.ArrayList; +import org.cishell.framework.CIShellContext; +import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; +import org.cishell.framework.algorithm.AlgorithmFactory; +import org.cishell.framework.data.BasicData; +import org.cishell.framework.data.Data; +import org.cishell.service.guibuilder.GUIBuilderService; +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.FileDialog; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PlatformUI; -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.FileDialog; -import org.eclipse.swt.widgets.Display; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.viewers.ISelection; - - import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import org.osgi.service.log.LogService; -import org.cishell.framework.CIShellContext; -import org.cishell.framework.algorithm.AlgorithmFactory; -import org.cishell.framework.algorithm.Algorithm; -import org.cishell.framework.data.Data; -import org.cishell.framework.data.BasicData; -import org.cishell.service.guibuilder.GUIBuilderService; - /* * @author Weixia(Bonnie) Huang (hu...@in...) */ @@ -48,7 +46,8 @@ } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { + try { // int counter = PlatformUI.getWorkbench().getWorkbenchWindowCount(); // System.out.println("counter is "+counter); // ?? why getActiveWorkbenchWindow() didn't work?? @@ -56,7 +55,7 @@ final IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows(); if (windows.length ==0){ - return null; + throw new AlgorithmExecutionException("Cannot obtain workbench window needed to open dialog."); } Display display = PlatformUI.getWorkbench().getDisplay(); @@ -76,10 +75,14 @@ } return returnDM; } - else { - return null; + else { + throw new AlgorithmExecutionException("No data could be loaded."); } - + } catch (AlgorithmExecutionException e1) { + throw e1; + } catch (Throwable e2) { + throw new AlgorithmExecutionException(e2); + } } public static String getFileExtension(File theFile) { @@ -209,7 +212,7 @@ }catch (Exception e){ - e.printStackTrace(); + throw new RuntimeException(e); } }//end run() Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoadFactory.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoadFactory.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/load/FileLoadFactory.java 2008-03-25 19:18:32 UTC (rev 707) @@ -23,13 +23,8 @@ protected void activate(ComponentContext ctxt) { bcontext = ctxt.getBundleContext(); } - protected void deactivate(ComponentContext ctxt) {} - + public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) { return new FileLoad(context, bcontext); } - public MetaTypeProvider createParameters(Data[] data) { - return null; - } - } \ No newline at end of file Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/FileSaver.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/FileSaver.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/FileSaver.java 2008-03-25 19:18:32 UTC (rev 707) @@ -13,6 +13,7 @@ import org.cishell.framework.algorithm.AlgorithmProperty; import org.cishell.framework.data.Data; import org.cishell.framework.data.DataProperty; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.cishell.service.guibuilder.GUIBuilderService; import org.eclipse.swt.SWT; @@ -107,7 +108,7 @@ dialog.setText("Choose File"); - String fileLabel = (String)data.getMetaData().get(DataProperty.LABEL); + String fileLabel = (String)data.getMetadata().get(DataProperty.LABEL); String suggestedFileName = getFileName(fileLabel); dialog.setFileName(suggestedFileName + "." + ext); @@ -128,9 +129,10 @@ if (ext != null && ext.length() != 0) if (!selectedFile.getPath().endsWith(ext) && !ext.equals("*")) selectedFile = new File(selectedFile.getPath()+'.'+ ext); - + try { Data newData = converter.convert(data); - + + copy((File)newData.getData(), selectedFile); if (selectedFile.isDirectory()) { @@ -140,7 +142,10 @@ } done = true; - + } catch (ConversionException e1) { + this.log.log(LogService.LOG_ERROR, "Error occurred while converting data to saved format.", e1); + return false; + } log.log(LogService.LOG_INFO, "Saved: " + selectedFile.getPath()); } else { done = true; Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/Save.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/Save.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/Save.java 2008-03-25 19:18:32 UTC (rev 707) @@ -6,6 +6,7 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.algorithm.AlgorithmProperty; import org.cishell.framework.data.Data; @@ -54,7 +55,8 @@ * * @return Null for this algorithm */ - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { + try { //This only checks the first Data in the array final Converter[] converters = conversionManager.findConverters(data[0], "file-ext:*"); @@ -105,7 +107,10 @@ } } return null; + } catch (Throwable e) { + throw new AlgorithmExecutionException(e); } + } private void guiRun(Runnable run) { if (Thread.currentThread() == Display.getDefault().getThread()) { Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveDataChooser.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveDataChooser.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveDataChooser.java 2008-03-25 19:18:32 UTC (rev 707) @@ -17,6 +17,7 @@ import org.cishell.framework.algorithm.AlgorithmProperty; import org.cishell.framework.data.Data; import org.cishell.reference.gui.common.AbstractDialog; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StyleRange; @@ -308,11 +309,15 @@ * of opening the FileSaver and saving the model. * @param selectedIndex The chosen converter */ - protected void selectionMade(int selectedIndex) { + protected void selectionMade(int selectedIndex){ + try { getShell().setVisible(false); final Converter converter = converterArray[selectedIndex]; final FileSaver saver = new FileSaver(getShell(), context); close(saver.save(converter, data)); + } catch (Exception e) { + throw new RuntimeException(e); + } } /** @@ -327,7 +332,7 @@ select.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { int index = converterList.getSelectionIndex(); - + if (index != -1) { selectionMade(index); } Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/save/SaveFactory.java 2008-03-25 19:18:32 UTC (rev 707) @@ -33,12 +33,6 @@ protected void activate(ComponentContext ctxt) { context = new LocalCIShellContext(ctxt.getBundleContext()); } - - /** - * Deactivate the plugin - * @param ctxt Current CIShell context - */ - protected void deactivate(ComponentContext ctxt) {} /** * Create a Save algorithm @@ -53,15 +47,6 @@ } /** - * Create parameters (this returns null only) - * data input data - * @return null; - */ - public MetaTypeProvider createParameters(Data[] data) { - return null; - } - - /** * Validate the SaveFactory can handle the incoming file type * @param data The data to save * @return empty string on success Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileView.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileView.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileView.java 2008-03-25 19:18:32 UTC (rev 707) @@ -9,7 +9,9 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.data.Data; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.cishell.service.conversion.DataConversionService; import org.cishell.service.guibuilder.GUIBuilderService; @@ -28,7 +30,6 @@ Dictionary parameters; CIShellContext context; DataConversionService conversionManager; - static GUIBuilderService guiBuilder; LogService logger; Program program; // Program programTwo; @@ -43,9 +44,8 @@ DataConversionService.class.getName()); logger = (LogService)context.getService(LogService.class.getName()); - guiBuilder = (GUIBuilderService)context.getService(GUIBuilderService.class.getName()); - - } + } + public File getTempFile(){ File tempFile; @@ -82,7 +82,8 @@ return tempFile; } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { + try { boolean lastSaveSuccessful = false; boolean isCSVFile = false;//TC181 String format; @@ -93,7 +94,7 @@ windows = PlatformUI.getWorkbench().getWorkbenchWindows(); if (windows.length == 0){ - return null; + throw new AlgorithmExecutionException("Cannot get workbench window."); } parentShell = windows[0].getShell(); display = PlatformUI.getWorkbench().getDisplay(); @@ -150,10 +151,9 @@ final Converter[] converters = conversionManager.findConverters(data[i], "file-ext:*"); if (converters.length < 1) { - guiBuilder.showError("No Converters", - "No valid converters for data type: " + - data[i].getData().getClass().getName(), - "Please install a plugin that will save the data type to a file"); + throw new AlgorithmExecutionException("No valid converters for data type: " + + data[i].getData().getClass().getName() + + ". Please install a plugin that will save the data type to a file"); } else if (converters.length == 1){ //If length=1, use the unique path to save it directly @@ -202,10 +202,10 @@ } */ if (program == null) { - guiBuilder.showError("No Text Viewer", + throw new AlgorithmExecutionException( "No valid text viewer for the .txt file. " + - "The file is located at: "+tempFile.getAbsolutePath(), - "Unable to open default text viewer. File is located at: "+ + "The file is located at: "+tempFile.getAbsolutePath() + + ". Unable to open default text viewer. File is located at: "+ tempFile.getAbsolutePath()); } else { @@ -220,10 +220,15 @@ } - return null; + return null; + } catch (ConversionException e1) { + throw new AlgorithmExecutionException("Error converting data to target view format.", e1); + } catch (Throwable e2){ + throw new AlgorithmExecutionException(e2); + } } - public static boolean copy(File in, File out) { + public static boolean copy(File in, File out) throws AlgorithmExecutionException{ try { FileInputStream fis = new FileInputStream(in); FileOutputStream fos = new FileOutputStream(out); @@ -238,9 +243,8 @@ return true; } catch (IOException ioe) { - guiBuilder.showError("Copy Error", "IOException during copy", ioe.getMessage()); - return false; - } + throw new AlgorithmExecutionException("IOException during copy", ioe); + } } final class DataViewer implements Runnable { Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileViewFactory.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileViewFactory.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/FileViewFactory.java 2008-03-25 19:18:32 UTC (rev 707) @@ -12,24 +12,8 @@ public class FileViewFactory 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) { + public Algorithm createAlgorithm(Data[] data, Dictionary parameters, CIShellContext context) { return new FileView(data, parameters, context); } - public MetaTypeProvider createParameters(Data[] data) { -// return provider; - return null; - } } \ No newline at end of file Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/ViewDataChooser.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/ViewDataChooser.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/view/ViewDataChooser.java 2008-03-25 19:18:32 UTC (rev 707) @@ -6,7 +6,6 @@ import org.cishell.framework.data.Data; import org.cishell.reference.gui.persistence.save.SaveDataChooser; import org.cishell.service.conversion.Converter; - import org.eclipse.swt.widgets.Shell; /* @@ -26,12 +25,16 @@ this.theData = data; } - protected void selectionMade(int selectedIndex) { + protected void selectionMade(int selectedIndex){ + try { getShell().setVisible(false); final Converter converter = converterArray[selectedIndex]; Data newData = converter.convert(theData); isSaved = FileView.copy((File)newData.getData(), tempFile); close(true); + } catch (Exception e) { + throw new RuntimeException(e); + } } public boolean isSaved(){ Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWith.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWith.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWith.java 2008-03-25 19:18:32 UTC (rev 707) @@ -9,7 +9,9 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.data.Data; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; import org.cishell.service.conversion.DataConversionService; import org.cishell.service.guibuilder.GUIBuilderService; @@ -66,7 +68,7 @@ return tempFile; } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { boolean lastSaveSuccessful = false; String format; @@ -104,16 +106,25 @@ else if (converters.length == 1){ //If length=1, use the unique path to save it directly //and bring the text editor. - Data newData = converters[0].convert(data[i]); + try { + Data newData = converters[0].convert(data[i]); copy((File)newData.getData(), tempFile); lastSaveSuccessful = true; + } catch (ConversionException e) { + this.logger.log(LogService.LOG_WARNING, "Error while converting to target save format. Will attempt to use other available converters."); + } } else { if (!parentShell.isDisposed()) { + try { DataViewer dataViewer = new DataViewer(parentShell, data[i], converters); display.syncExec(dataViewer); + lastSaveSuccessful = dataViewer.isSaved; tempFile = dataViewer.theFile; + } catch (Throwable e1) { + throw new AlgorithmExecutionException(e1); + } } } } Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/FileViewWithFactory.java 2008-03-25 19:18:32 UTC (rev 707) @@ -1,23 +1,20 @@ package org.cishell.reference.gui.persistence.viewwith; -import java.io.IOException; import java.util.Dictionary; import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; import org.cishell.framework.algorithm.AlgorithmFactory; +import org.cishell.framework.algorithm.ParameterMutator; import org.cishell.framework.data.Data; import org.cishell.reference.service.metatype.BasicAttributeDefinition; import org.cishell.reference.service.metatype.BasicMetaTypeProvider; import org.cishell.reference.service.metatype.BasicObjectClassDefinition; import org.eclipse.swt.program.Program; import org.eclipse.swt.widgets.Display; -import org.eclipse.ui.PlatformUI; import org.osgi.service.component.ComponentContext; import org.osgi.service.metatype.AttributeDefinition; -import org.osgi.service.metatype.MetaTypeInformation; import org.osgi.service.metatype.MetaTypeProvider; -import org.osgi.service.metatype.MetaTypeService; import org.osgi.service.metatype.ObjectClassDefinition; @@ -26,7 +23,7 @@ // It implements AlgorithmFactory and adds dropbox boxes... // You will need to do something similar, but much less complicated, here, I believe. -public class FileViewWithFactory implements AlgorithmFactory { +public class FileViewWithFactory implements AlgorithmFactory, ParameterMutator { Program programTxt; Program programDoc; Program programHtml; @@ -46,8 +43,9 @@ return new FileViewWith(data, parameters, context); } - public MetaTypeProvider createParameters(Data[] data) { - + public ObjectClassDefinition mutateParameters(Data[] data, + ObjectClassDefinition parameters) { + BasicObjectClassDefinition definition; definition = new BasicObjectClassDefinition("fileViewWithDefinition", "Application Viewer Type", "Please choose an application viewer to read this file.", null); @@ -118,7 +116,6 @@ AttributeDefinition ad = new BasicAttributeDefinition("viewWith", "View file as", "Type of viewer", AttributeDefinition.STRING /*string*/, 0, defValStringArray/*String[] defaultValue*/, null /*validator*/, myOptionLabels, myOptionValues); definition.addAttributeDefinition(ObjectClassDefinition.REQUIRED, ad); - MetaTypeProvider provider = new BasicMetaTypeProvider(definition); - return provider; - } + return definition; + } } \ No newline at end of file Modified: trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/ViewWithDataChooser.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/ViewWithDataChooser.java 2008-03-25 18:05:28 UTC (rev 706) +++ trunk/clients/gui/org.cishell.reference.gui.persistence/src/org/cishell/reference/gui/persistence/viewwith/ViewWithDataChooser.java 2008-03-25 19:18:32 UTC (rev 707) @@ -5,8 +5,8 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.data.Data; import org.cishell.reference.gui.persistence.save.SaveDataChooser; +import org.cishell.service.conversion.ConversionException; import org.cishell.service.conversion.Converter; - import org.eclipse.swt.widgets.Shell; /* @@ -26,12 +26,16 @@ this.theData = data; } - protected void selectionMade(int selectedIndex) { - getShell().setVisible(false); + protected void selectionMade(int selectedIndex){ + try { + getShell().setVisible(false); final Converter converter = converterArray[selectedIndex]; Data newData = converter.convert(theData); isSaved = FileViewWith.copy((File)newData.getData(), tempFile); close(true); + } catch (Exception e) { + throw new RuntimeException(e); + } } public boolean isSaved(){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-25 18:06:55
|
Revision: 706 http://cishell.svn.sourceforge.net/cishell/?rev=706&view=rev Author: bh2 Date: 2008-03-25 11:05:28 -0700 (Tue, 25 Mar 2008) Log Message: ----------- updated to be cishell 1.0 compliant Modified Paths: -------------- trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/META-INF/MANIFEST.MF trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTest.java trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTestFactory.java trunk/examples/org.cishell.tests.alg1/META-INF/MANIFEST.MF trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg1Factory.java trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg2Factory.java trunk/examples/org.cishell.tests.conversion1/META-INF/MANIFEST.MF trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgA.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgB.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2Integer.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2String.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/Integer2File.java trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/String2File.java trunk/examples/org.cishell.tests.guibuilder1/META-INF/MANIFEST.MF trunk/examples/org.cishell.tests.guibuilder1/src/org/cishell/tests/guibuilder1/GUIBuilderTester1AlgorithmFactory.java Modified: trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/META-INF/MANIFEST.MF =================================================================== --- trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/META-INF/MANIFEST.MF 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/META-INF/MANIFEST.MF 2008-03-25 18:05:28 UTC (rev 706) @@ -2,12 +2,11 @@ Bundle-ManifestVersion: 2 Bundle-Name: ProgressTrackableAlgorithm Bundle-SymbolicName: org.cishell.tests.ProgressTrackableAlgorithm -Bundle-Version: 0.3.0 +Bundle-Version: 1.0.0 Bundle-ClassPath: . -Bundle-Localization: plugin -Import-Package: org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.framework;version="1.0.0", + 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/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTest.java =================================================================== --- trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTest.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTest.java 2008-03-25 18:05:28 UTC (rev 706) @@ -4,12 +4,12 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.ProgressMonitor; import org.cishell.framework.algorithm.ProgressTrackable; import org.cishell.framework.data.Data; public class AlgorithmTest implements Algorithm, ProgressTrackable { -//public class AlgorithmTest implements Algorithm { public static final int TOTAL_WORK_UNITS = 100; Data[] data; @@ -21,45 +21,34 @@ this.data = data; this.parameters = parameters; this.context = context; + this.monitor = ProgressMonitor.NULL_MONITOR; } - public Data[] execute() { - if (monitor != null) { - monitor.start(ProgressMonitor.CANCELLABLE | - ProgressMonitor.PAUSEABLE | - ProgressMonitor.WORK_TRACKABLE, TOTAL_WORK_UNITS); - for (int i = 0; i < TOTAL_WORK_UNITS; ++i) { - if (monitor.isCanceled()) { - break; - } - else if (monitor.isPaused()) { - --i; - } - monitor.worked(i); - try { + public Data[] execute() throws AlgorithmExecutionException { + monitor.start(ProgressMonitor.CANCELLABLE | + ProgressMonitor.PAUSEABLE | + ProgressMonitor.WORK_TRACKABLE, TOTAL_WORK_UNITS); + + for (int i = 0; i < TOTAL_WORK_UNITS; ++i) { + if (monitor.isCanceled()) { + break; + } + else if (monitor.isPaused()) { + --i; + } + monitor.worked(i); + try { Thread.sleep(1000); } catch (InterruptedException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } - } - monitor.done(); - return null; - } - else { - for (int i = 0; i < TOTAL_WORK_UNITS; ++i) { - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - return null; - } + } + + monitor.done(); + return null; } public ProgressMonitor getProgressMonitor() { - // TODO Auto-generated method stub return this.monitor; } Modified: trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTestFactory.java =================================================================== --- trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTestFactory.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.ProgressTrackableAlgorithm/src/org/cishell/tests/ProgressTrackableAlgorithm/AlgorithmTestFactory.java 2008-03-25 18:05:28 UTC (rev 706) @@ -6,29 +6,10 @@ 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 AlgorithmTestFactory 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 AlgorithmTest(data, parameters, context); } - public MetaTypeProvider createParameters(Data[] data) { - return provider; - } } \ No newline at end of file Modified: trunk/examples/org.cishell.tests.alg1/META-INF/MANIFEST.MF =================================================================== --- trunk/examples/org.cishell.tests.alg1/META-INF/MANIFEST.MF 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.alg1/META-INF/MANIFEST.MF 2008-03-25 18:05:28 UTC (rev 706) @@ -2,13 +2,12 @@ Bundle-ManifestVersion: 2 Bundle-Name: Alg1 Plug-in Bundle-SymbolicName: org.cishell.tests.alg1 -Bundle-Version: 0.0.1 -Bundle-Localization: plugin +Bundle-Version: 1.0.0 Service-Component: OSGI-INF/component1.xml, OSGI-INF/component2.xml X-AutoStart: true -Import-Package: org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.framework;version="1.0.0", + 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/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg1Factory.java =================================================================== --- trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg1Factory.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg1Factory.java 2008-03-25 18:05:28 UTC (rev 706) @@ -6,25 +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 Alg1Factory implements AlgorithmFactory { - private MetaTypeProvider provider; - - protected void activate(ComponentContext ctxt) { - MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS"); - provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle()); - } - protected void deactivate(ComponentContext ctxt) { - provider = null; - } - public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, CIShellContext context) { return new Alg(context, parameters); } - public MetaTypeProvider createParameters(Data[] dm) { - return provider; - } } Modified: trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg2Factory.java =================================================================== --- trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg2Factory.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.alg1/src/org/cishell/tests/alg1/Alg2Factory.java 2008-03-25 18:05:28 UTC (rev 706) @@ -6,25 +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 Alg2Factory implements AlgorithmFactory { - private MetaTypeProvider provider; - - protected void activate(ComponentContext ctxt) { - MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS"); - provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle()); - } - protected void deactivate(ComponentContext ctxt) { - provider = null; - } - public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, CIShellContext context) { return new Alg(context, parameters); } - public MetaTypeProvider createParameters(Data[] dm) { - return provider; - } } Modified: trunk/examples/org.cishell.tests.conversion1/META-INF/MANIFEST.MF =================================================================== --- trunk/examples/org.cishell.tests.conversion1/META-INF/MANIFEST.MF 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/META-INF/MANIFEST.MF 2008-03-25 18:05:28 UTC (rev 706) @@ -2,13 +2,12 @@ Bundle-ManifestVersion: 2 Bundle-Name: CIShell Algorithms to test auto-conversion Bundle-SymbolicName: org.cishell.tests.conversion1 -Bundle-Version: 0.1.0 -Bundle-Localization: plugin +Bundle-Version: 1.0.0 Service-Component: OSGI-INF/componentA.xml, OSGI-INF/componentB.xml, OSGI-INF/componentC.xml, OSGI-INF/file2string.xml, OSGI-INF/string2file.xml, OSGI-INF/file2integer.xml, OSGI-INF/integer2file.xml X-AutoStart: true -Import-Package: org.cishell.framework, - org.cishell.framework.algorithm, - org.cishell.framework.data, +Import-Package: org.cishell.framework;version="1.0.0", + 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/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgA.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgA.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgA.java 2008-03-25 18:05:28 UTC (rev 706) @@ -30,24 +30,7 @@ * @author Bruce Herr */ public class AlgA implements AlgorithmFactory { - private MetaTypeProvider provider; - - protected void activate(ComponentContext ctxt) { - MetaTypeService mts = (MetaTypeService)ctxt.locateService("MTS"); - provider = mts.getMetaTypeInformation(ctxt.getBundleContext().getBundle()); - } - protected void deactivate(ComponentContext ctxt) { - provider = null; - } - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return provider; - } - - /** * @see org.cishell.framework.algorithm.AlgorithmFactory#createAlgorithm(org.cishell.framework.data.Data[], java.util.Dictionary, org.cishell.framework.CIShellContext) */ public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, @@ -66,7 +49,7 @@ String i = (String) parameters.get("org.cishell.tests.conversion1.AlgA.myInput"); Data[] dm = new Data[]{ new BasicData(i, String.class.getName()) }; - dm[0].getMetaData().put(DataProperty.LABEL, "My String: " + i); + dm[0].getMetadata().put(DataProperty.LABEL, "My String: " + i); return dm; } Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgB.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgB.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgB.java 2008-03-25 18:05:28 UTC (rev 706) @@ -29,15 +29,7 @@ * @author Bruce Herr */ public class AlgB implements AlgorithmFactory, DataValidator { - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } - - /** * @see org.cishell.framework.algorithm.AlgorithmFactory#createAlgorithm(org.cishell.framework.data.Data[], java.util.Dictionary, org.cishell.framework.CIShellContext) */ public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, @@ -65,7 +57,7 @@ Integer i = new Integer(dm[0].getData().toString()); Data[] dm1 = new Data[]{ new BasicData(i, Integer.class.getName()) }; - dm1[0].getMetaData().put(DataProperty.LABEL, "My Integer: " + i); + dm1[0].getMetadata().put(DataProperty.LABEL, "My Integer: " + i); //dm1[0].getProperties().put(DataProperty.PARENT, dm[0]); return dm1; Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/AlgC.java 2008-03-25 18:05:28 UTC (rev 706) @@ -27,15 +27,7 @@ * @author Bruce Herr */ public class AlgC implements AlgorithmFactory { - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } - - /** * @see org.cishell.framework.algorithm.AlgorithmFactory#createAlgorithm(org.cishell.framework.data.Data[], java.util.Dictionary, org.cishell.framework.CIShellContext) */ public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2Integer.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2Integer.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2Integer.java 2008-03-25 18:05:28 UTC (rev 706) @@ -21,11 +21,11 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.BasicData; import org.cishell.framework.data.Data; import org.cishell.framework.data.DataProperty; -import org.osgi.service.metatype.MetaTypeProvider; /** * @@ -41,13 +41,6 @@ return new File2IntegerAlgorithm(dm[0]); } - - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } private static class File2IntegerAlgorithm implements Algorithm { File file; @@ -55,10 +48,10 @@ public File2IntegerAlgorithm(Data dm) { file = (File) dm.getData(); - label = (String)dm.getMetaData().get(DataProperty.LABEL); + label = (String)dm.getMetadata().get(DataProperty.LABEL); } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { try { if (file.exists()) { BufferedReader reader = new BufferedReader(new FileReader(file)); @@ -71,15 +64,15 @@ } Data dm = new BasicData(new Integer(outString.trim()), Integer.class.getName()); - dm.getMetaData().put(DataProperty.LABEL, "Integer for "+label); + dm.getMetadata().put(DataProperty.LABEL, "Integer for "+label); return new Data[]{dm}; + } else { + throw new AlgorithmExecutionException("File does not exist!"); } } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } - - return null; } } } Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2String.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2String.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/File2String.java 2008-03-25 18:05:28 UTC (rev 706) @@ -21,11 +21,11 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.BasicData; import org.cishell.framework.data.Data; import org.cishell.framework.data.DataProperty; -import org.osgi.service.metatype.MetaTypeProvider; /** * @@ -41,13 +41,6 @@ return new File2StringAlgorithm(dm[0]); } - - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } private static class File2StringAlgorithm implements Algorithm { File file; @@ -55,10 +48,10 @@ public File2StringAlgorithm(Data dm) { file = (File) dm.getData(); - label = (String)dm.getMetaData().get(DataProperty.LABEL); + label = (String)dm.getMetadata().get(DataProperty.LABEL); } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { try { if (file.exists()) { BufferedReader reader = new BufferedReader(new FileReader(file)); @@ -71,15 +64,15 @@ } Data dm = new BasicData(outString, String.class.getName()); - dm.getMetaData().put(DataProperty.LABEL, "String for "+label); + dm.getMetadata().put(DataProperty.LABEL, "String for "+label); return new Data[]{dm}; + } else { + throw new AlgorithmExecutionException("File does not exist!"); } } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } - - return null; } } } Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/Integer2File.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/Integer2File.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/Integer2File.java 2008-03-25 18:05:28 UTC (rev 706) @@ -20,11 +20,11 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.BasicData; import org.cishell.framework.data.Data; import org.cishell.framework.data.DataProperty; -import org.osgi.service.metatype.MetaTypeProvider; /** * @@ -37,16 +37,8 @@ */ public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, CIShellContext context) { - return new Integer2FileAlgorithm(dm[0]); } - - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } private static class Integer2FileAlgorithm implements Algorithm { Integer i; @@ -54,10 +46,10 @@ public Integer2FileAlgorithm(Data dm) { i = (Integer)dm.getData(); - label = (String)dm.getMetaData().get(DataProperty.LABEL); + label = (String)dm.getMetadata().get(DataProperty.LABEL); } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { try { File file = File.createTempFile("String2File-", "txt"); FileWriter fw = new FileWriter(file); @@ -66,14 +58,12 @@ fw.close(); Data dm = new BasicData(file, "file:text/plain"); - dm.getMetaData().put(DataProperty.LABEL, "File of "+label); + dm.getMetadata().put(DataProperty.LABEL, "File of "+label); return new Data[]{dm}; } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } - - return null; } } } Modified: trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/String2File.java =================================================================== --- trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/String2File.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.conversion1/src/org/cishell/tests/conversion1/String2File.java 2008-03-25 18:05:28 UTC (rev 706) @@ -20,11 +20,11 @@ import org.cishell.framework.CIShellContext; import org.cishell.framework.algorithm.Algorithm; +import org.cishell.framework.algorithm.AlgorithmExecutionException; import org.cishell.framework.algorithm.AlgorithmFactory; import org.cishell.framework.data.BasicData; import org.cishell.framework.data.Data; import org.cishell.framework.data.DataProperty; -import org.osgi.service.metatype.MetaTypeProvider; /** * @@ -37,27 +37,19 @@ */ public Algorithm createAlgorithm(Data[] dm, Dictionary parameters, CIShellContext context) { - return new String2FileAlgorithm(dm[0]); } - /** - * @see org.cishell.framework.algorithm.AlgorithmFactory#createParameters(org.cishell.framework.data.Data[]) - */ - public MetaTypeProvider createParameters(Data[] dm) { - return null; - } - private static class String2FileAlgorithm implements Algorithm { String string; String label; public String2FileAlgorithm(Data dm) { string = (String)dm.getData(); - label = (String)dm.getMetaData().get(DataProperty.LABEL); + label = (String)dm.getMetadata().get(DataProperty.LABEL); } - public Data[] execute() { + public Data[] execute() throws AlgorithmExecutionException { try { File file = File.createTempFile("String2File-", "txt"); FileWriter fw = new FileWriter(file); @@ -66,14 +58,12 @@ fw.close(); Data dm = new BasicData(file, "file:text/plain"); - dm.getMetaData().put(DataProperty.LABEL, "File of "+label); + dm.getMetadata().put(DataProperty.LABEL, "File of "+label); return new Data[]{dm}; } catch (IOException e) { - e.printStackTrace(); + throw new AlgorithmExecutionException(e); } - - return null; } } } Modified: trunk/examples/org.cishell.tests.guibuilder1/META-INF/MANIFEST.MF =================================================================== --- trunk/examples/org.cishell.tests.guibuilder1/META-INF/MANIFEST.MF 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.guibuilder1/META-INF/MANIFEST.MF 2008-03-25 18:05:28 UTC (rev 706) @@ -2,13 +2,12 @@ Bundle-ManifestVersion: 2 Bundle-Name: GUIBuilder Tester Bundle-SymbolicName: org.cishell.tests.guibuilder1 -Bundle-Version: 0.1.0 +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.service.guibuilder, +Import-Package: org.cishell.framework;version="1.0.0", + org.cishell.framework.algorithm;version="1.0.0", + org.cishell.framework.data;version="1.0.0", + org.cishell.service.guibuilder;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/examples/org.cishell.tests.guibuilder1/src/org/cishell/tests/guibuilder1/GUIBuilderTester1AlgorithmFactory.java =================================================================== --- trunk/examples/org.cishell.tests.guibuilder1/src/org/cishell/tests/guibuilder1/GUIBuilderTester1AlgorithmFactory.java 2008-03-25 17:20:18 UTC (rev 705) +++ trunk/examples/org.cishell.tests.guibuilder1/src/org/cishell/tests/guibuilder1/GUIBuilderTester1AlgorithmFactory.java 2008-03-25 18:05:28 UTC (rev 706) @@ -6,29 +6,10 @@ 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 GUIBuilderTester1AlgorithmFactory 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 GUIBuilderTester1Algorithm(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. |
From: <hu...@us...> - 2008-03-25 17:21:08
|
Revision: 705 http://cishell.svn.sourceforge.net/cishell/?rev=705&view=rev Author: huangb Date: 2008-03-25 10:20:18 -0700 (Tue, 25 Mar 2008) Log Message: ----------- update bundle-version to 1.0.0 Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.brand.cishell/META-INF/MANIFEST.MF Modified: trunk/clients/gui/org.cishell.reference.gui.brand.cishell/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.brand.cishell/META-INF/MANIFEST.MF 2008-03-25 16:46:04 UTC (rev 704) +++ trunk/clients/gui/org.cishell.reference.gui.brand.cishell/META-INF/MANIFEST.MF 2008-03-25 17:20:18 UTC (rev 705) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: CIShell Branding Plug-in Bundle-SymbolicName: org.cishell.reference.gui.brand.cishell;singleton:=true -Bundle-Version: 0.4.0 +Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.gui.brand.cishell.Activator Bundle-Localization: plugin Require-Bundle: org.eclipse.core.runtime, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bh...@us...> - 2008-03-25 16:46:48
|
Revision: 704 http://cishell.svn.sourceforge.net/cishell/?rev=704&view=rev Author: bh2 Date: 2008-03-25 09:46:04 -0700 (Tue, 25 Mar 2008) Log Message: ----------- updated to 1.0 Modified Paths: -------------- trunk/deployment/org.cishell.development.feature/feature.xml trunk/deployment/org.cishell.environment.equinox.feature/feature.xml trunk/deployment/org.cishell.feature/feature.xml trunk/deployment/org.cishell.reference.feature/feature.xml trunk/deployment/org.cishell.reference.gui.brand.feature/feature.xml trunk/deployment/org.cishell.reference.gui.feature/feature.xml trunk/deployment/org.cishell.reference.releng/installer/build.properties trunk/deployment/org.cishell.reference.releng/releases/HEAD.properties Modified: trunk/deployment/org.cishell.development.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.development.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.development.feature" label="CIShell Algorithm Development Plug-In" - version="0.3.0"> + version="1.0.0"> <description url="http://cishell.org"> The CIShell Algorithm Development Pack Modified: trunk/deployment/org.cishell.environment.equinox.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.environment.equinox.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.environment.equinox.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.environment.equinox.feature" label="CIShell Equinox Execution Environment" - version="0.0.0"> + version="1.0.0"> <description url="http://cishell.org"> CIShell OSGi Environment (Eclipse Equinox) Modified: trunk/deployment/org.cishell.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.feature" label="CIShell Framework API Feature" - version="0.3.0"> + version="1.0.0"> <description url="http://cishell.org"> CIShell Framework API Modified: trunk/deployment/org.cishell.reference.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.reference.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.reference.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.reference.feature" label="CIShell Reference Bundles" - version="0.4.0"> + version="1.0.0"> <description url="http://cishell.org"> CIShell Reference Bundles Modified: trunk/deployment/org.cishell.reference.gui.brand.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.reference.gui.brand.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.reference.gui.brand.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.reference.gui.brand.feature" label="CIShell Branding Feature" - version="0.8.0"> + version="1.0.0"> <description url="http://cishell.org"> Branded CIShell Reference GUI Modified: trunk/deployment/org.cishell.reference.gui.feature/feature.xml =================================================================== --- trunk/deployment/org.cishell.reference.gui.feature/feature.xml 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.reference.gui.feature/feature.xml 2008-03-25 16:46:04 UTC (rev 704) @@ -2,7 +2,7 @@ <feature id="org.cishell.reference.gui.feature" label="CIShell Reference GUI" - version="0.4.0"> + version="1.0.0"> <description url="http://cishell.org"> CIShell Reference GUI Modified: trunk/deployment/org.cishell.reference.releng/installer/build.properties =================================================================== --- trunk/deployment/org.cishell.reference.releng/installer/build.properties 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.reference.releng/installer/build.properties 2008-03-25 16:46:04 UTC (rev 704) @@ -6,7 +6,7 @@ #These properties could be passed in by the releng stuff #but it would also double the size of each nightly dir. #So, I recommend not creating this until a release is made. -version=0.8.0 +version=1.0.0 version.full=0.8.0.200712180500NGT buildLabel = N-${version.full} finalResults=/projects/cishell/www/htdocs/nightly Modified: trunk/deployment/org.cishell.reference.releng/releases/HEAD.properties =================================================================== --- trunk/deployment/org.cishell.reference.releng/releases/HEAD.properties 2008-03-25 16:26:18 UTC (rev 703) +++ trunk/deployment/org.cishell.reference.releng/releases/HEAD.properties 2008-03-25 16:46:04 UTC (rev 704) @@ -1,5 +1,5 @@ #released software version -version=0.9.0 +version=1.0.0 #nightly build buildType=N This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hu...@us...> - 2008-03-25 16:27:00
|
Revision: 703 http://cishell.svn.sourceforge.net/cishell/?rev=703&view=rev Author: huangb Date: 2008-03-25 09:26:18 -0700 (Tue, 25 Mar 2008) Log Message: ----------- update bundle-version to 1.0.0 Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF Modified: trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF 2008-03-25 16:24:52 UTC (rev 702) +++ trunk/clients/gui/org.cishell.reference.gui.datamanager/META-INF/MANIFEST.MF 2008-03-25 16:26:18 UTC (rev 703) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: Data Manager GUI Plug-in Bundle-SymbolicName: org.cishell.reference.gui.datamanager;singleton:=true -Bundle-Version: 0.5.0 +Bundle-Version: 1.0.0 Bundle-Activator: org.cishell.reference.gui.datamanager.Activator Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |