org.embl.ebi.escience.scuflui.actions
Class OpenWorkflowFromFileAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.embl.ebi.escience.scuflui.actions.OpenWorkflowFromFileAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ImportWorkflowFromFileAction, OpenWorkflowFromURLAction

public class OpenWorkflowFromFileAction
extends javax.swing.AbstractAction

Author:
David Withers, Stuart Owen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
OpenWorkflowFromFileAction(java.awt.Component parentComponent)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void openFromURL(java.net.URLConnection urlConnection)
          Open a workflow from the given URL.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenWorkflowFromFileAction

public OpenWorkflowFromFileAction(java.awt.Component parentComponent)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

openFromURL

public void openFromURL(java.net.URLConnection urlConnection)
Open a workflow from the given URL.

This will happen in a separate thread to avoid hanging the GUI. If the workflow can't be loaded, it will be attempted loaded in offline mode. If the workflow is a local file, WorkflowChanges.syncedWithFile will be set.

Parameters:
url - URL to workflow to load.