de.uni_paderborn.fujaba.coobra.actions
Class CheckoutAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.uni_paderborn.fujaba.coobra.actions.CheckoutAction
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
Direct Known Subclasses:
CheckoutVersionAction

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

Restore all changes from server

Version:
$Revision: 1.25 $
Author:
$Author: cschneid $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  boolean connectOnly
          true if no update should be called
(package private)  SelectServerRepositoryDialog dialog
          For choosing the server to checkout from
(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
CheckoutAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Perform the action
(package private)  void connect()
          perform connect (and update)
protected  de.tu_bs.coobra.LocalRepository createRepository()
           
 void progress(int percent)
          called when update/restore/store progress
 
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

dialog

SelectServerRepositoryDialog dialog
For choosing the server to checkout from


connectOnly

private boolean connectOnly
true if no update should be called


progress

ProgressDialog progress
dialog for displaying progress

Constructor Detail

CheckoutAction

public CheckoutAction()
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

connect

void connect()
perform connect (and update)


createRepository

protected de.tu_bs.coobra.LocalRepository createRepository()
Returns:
new LocalRepository()