de.uni_paderborn.fujaba.coobra.actions
Class RestoreAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.uni_paderborn.fujaba.coobra.actions.RestoreAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, de.tu_bs.coobra.LocalRepository.ProgressCallback, java.io.Serializable

public class RestoreAction
extends javax.swing.AbstractAction
implements de.tu_bs.coobra.LocalRepository.ProgressCallback

Restore all changes from file

Version:
$Revision: 1.22 $
Author:
$Author: lowende $
See Also:
Serialized Form

Nested Class Summary
private  class RestoreAction.WorkThread
          No comment provided by developer, please add a comment to improve documentation.
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
(package private)  javax.swing.JFileChooser chooser
          For choosing the filename to restore to
(package private)  ProgressDialog progress
          dialog for displaying progress
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RestoreAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Perform the action
 void progress(int percent)
          called when update/restore/store progress
(package private)  void restore(java.lang.String filename)
          restore a repository from file
 void restoreWithProgressDialog(java.lang.String filename)
          restore CoObRA repository while diaplying a progress dialog
 
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
 

Field Detail

progress

ProgressDialog progress
dialog for displaying progress


chooser

javax.swing.JFileChooser chooser
For choosing the filename to restore to

Constructor Detail

RestoreAction

public RestoreAction()
Method Detail

progress

public void progress(int percent)
called when update/restore/store progress

Specified by:
progress in interface de.tu_bs.coobra.LocalRepository.ProgressCallback
Parameters:
percent - progress percentage

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Perform the action

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
event - the ActionEvent for performing the action

restoreWithProgressDialog

public void restoreWithProgressDialog(java.lang.String filename)
restore CoObRA repository while diaplying a progress dialog

Parameters:
filename - where to load from

restore

void restore(java.lang.String filename)
restore a repository from file

Parameters:
filename - where to load from