quick edit to this code:
This is my working code:'
File file = new File(fileLocation);
FileManager fileManager = FileManager.getInstance();
try {
// This is where I need assistance opening the T1
files <See additional comments below>
currentDataflow = fileManager.openDataflow(new T2FlowFileType(), file);
System.out.println("File Opened");
} catch (OpenException e) {
e.printStackTrace();
}
// Code to manipulate the file goes here!~
On Mon, Mar 7, 2011 at 10:19 AM, John Alexander <
[email protected]> wrote:
> Greetings,
>
> I have successfully loaded a T2FlowFile within my Java source code but I am
> unable to open a T1 file.
>
> Here is all of my source code along with dependencies I am using to open a
> T2Flow file. I am assuming it will be very simple to open a Scufl file but
> I am having trouble finding the right API calls.
>
> *Dependencies:*
>
> <dependency>
> <groupId>net.sf.taverna.t2.ui-impl</groupId>
> <artifactId>file-impl</artifactId>
> <version>1.2</version>
> </dependency>
> <dependency>
> <groupId>net.sf.taverna.t2.ui-impl</groupId>
> <artifactId>edits-impl</artifactId>
> <version>1.2</version>
> </dependency>
>
> *Source:*
>
> public void openWorkflow(String fileLocation){
>
> File file = new File(fileLocation);
> FileManager fileManager = FileManager.getInstance();
> try {
>
> // This is where I need assistance opening the T1
> files <See additional comments below>
>
>
> currentDataflow = fileManager.openDataflow(new ScuflFileType(), file);
> System.out.println("File Opened");
> } catch (OpenException e) {
> e.printStackTrace();
> }
>
> // Code to manipulate the file goes here!~
> }
>
>
> Additional Comments:
>
> I am fairly sure I can open the SCufl File with ScuflFileType however in
> the API ScuflFileType is in:
>
> *net.sf.taverna.t2.workbench.file.translator *
>
> which is a package that does not exist in my current build. an I dont know
> how to acquire it.
>
>
> Thank you for the help in advance!
>
> - John
>
>
>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/