public class TaskGraphFileHandler extends java.lang.Object implements SelectionManager
Constructor and Description |
---|
TaskGraphFileHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
backgroundOpenTaskgraph(java.io.File file)
Load a taskgraph from a file
|
static void |
exportTaskgraph()
Show the export file dialog and export the current selected task graph using the selected
FileImportExportDecorator.exportWorkflow method. |
java.lang.Object |
getSelectionHandler() |
static void |
importTaskgraph()
Show the import file dialog and import the workflow/task graph using the selected
FileImportExportDecorator.importWorkflow method. |
void |
importTools(ToolTable tooltable)
Show the import fie dialog and import the tools from the selected file using the selected
FileImportExportDecorator.importTools method. |
static void |
open()
Open a group from file/network/toolbox or view a group on a MainTriana.
|
static void |
openForDisplayOnly()
Utility method for opening a non-functioning taskgraph for display purposes only
|
static TaskGraph |
openTaskgraph(java.io.File file,
boolean updateRecent) |
static boolean |
saveTaskGraph(TaskGraph taskgraph,
ToolTable tools,
boolean saveas)
rudimentary at the moment just pops up a dialog, no checking to see if this is an existing group that has been
modified
|
static boolean |
saveTaskGraphAs(Tool task,
java.lang.String file,
ToolTable tools,
boolean updateRecent)
Save a taskgraph/group to a file.
|
static boolean |
saveTaskGraphAsFile(TaskGraph taskgraph,
ToolTable tools)
rudimentary at the moment just pops up a dialog, no checking to see if this is an existing group that has been
modified
|
public java.lang.Object getSelectionHandler()
getSelectionHandler
in interface SelectionManager
public static boolean saveTaskGraphAs(Tool task, java.lang.String file, ToolTable tools, boolean updateRecent)
task
- The Triana Tool object we want to savefile
- the file to save totools
- The tooltable (can be null)updateRecent
- if true then the file is added to the recent items listpublic static void backgroundOpenTaskgraph(java.io.File file)
file
- the file to load frompublic static void open()
public static TaskGraph openTaskgraph(java.io.File file, boolean updateRecent)
public static void importTaskgraph()
FileImportExportDecorator.importWorkflow
method.public static void exportTaskgraph()
FileImportExportDecorator.exportWorkflow
method.public void importTools(ToolTable tooltable)
FileImportExportDecorator.importTools
method. The imported tools are saved to the user selected
toolbox in Triana format.tooltable
- public static boolean saveTaskGraph(TaskGraph taskgraph, ToolTable tools, boolean saveas)
public static boolean saveTaskGraphAsFile(TaskGraph taskgraph, ToolTable tools)
public static void openForDisplayOnly()