|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
ca.sqlpower.wabit.swingui.action.OpenWorkspaceAction
public class OpenWorkspaceAction
This action will load in workspaces from a user selected file to a given context.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
OpenWorkspaceAction(WabitSwingSessionContext context)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
static void |
loadFiles(WabitSwingSessionContext context,
java.net.URI... importFiles)
Attempts to read the workspaces at the given URIs, adding them to the given context only after every workspace has been loaded successfully. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenWorkspaceAction(WabitSwingSessionContext context)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
public static void loadFiles(WabitSwingSessionContext context,
java.net.URI... importFiles)
The progress of the worker is made visible by use of a dialog with a progress bar and a reasonably fine-grained status message. While that dialog is visible, the session's frame is made unresponsive to mouse and keyboard input.
If any of the workspaces whose URIs were deemed valid could not be opened (probably due to IO errors or file corruption), a message to that effect will be displayed to the user. No sessions will be added to the context, even the ones that were loaded successfully before the IO error was encountered.
context - The context to open new workspaces intoimportFiles - The URIs to read workspace data from (Wabit XML format)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||