de.uni_paderborn.fujaba.coobra.actions
Class CheckoutAction
java.lang.Object
javax.swing.AbstractAction
de.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 classes inherited from class javax.swing.AbstractAction |
|
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 |
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 |
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
CheckoutAction
public CheckoutAction()
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()