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.2.1 $
Author:
$Author: zuendorf $
See Also:
Serialized Form

Field Summary
 
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
 void restore(java.lang.String filename)
          restore a repository from file for internal use only
 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
 

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

public void restore(java.lang.String filename)
restore a repository from file for internal use only

Parameters:
filename - where to load from