de.uni_paderborn.fujaba.app.action
Class ExportFilesAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.uni_paderborn.fujaba.app.action.ExportFilesAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ExportFilesAction
extends javax.swing.AbstractAction

Export the project to java sources.

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

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  boolean askIfFilesShouldBeDeleted
          No comment provided by developer, please add a comment to improve documentation.
private  int choice
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String expPath
          No comment provided by developer, please add a comment to improve documentation.
private  boolean foundJava
          No comment provided by developer, please add a comment to improve documentation.
private  FrameMain frameMain
          No comment provided by developer, please add a comment to improve documentation.
private static org.apache.log4j.Logger log
          log4j logging
static java.lang.String MESSAGE_CLASS_EXPORT
          No comment provided by developer, please add a comment to improve documentation.
private  boolean success
          Keeps the state of the ExportFilesAction for other actions
 
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
ExportFilesAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean clearExportDirectory(java.lang.String expPath, boolean askIfFilesShouldBeDeleted)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean deleteFileOrDirectory(java.io.File f, boolean includingParam)
          No comment provided by developer, please add a comment to improve documentation.
 boolean exportFiles(java.awt.event.ActionEvent e)
          Export files
 boolean exportFiles(boolean deleteExistingFiles, boolean askIfFilesShouldBeDeleted, FPackage pkg)
          No comment provided by developer, please add a comment to improve documentation.
 boolean isSuccessful()
          Returns the state of ExportFilesAction, true if the export was successful, else false
private  void showErrorMessageForException(java.lang.Exception ex)
          No comment provided by developer, please add a comment to improve documentation.
 
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

log

private static final transient org.apache.log4j.Logger log
log4j logging


success

private boolean success
Keeps the state of the ExportFilesAction for other actions


MESSAGE_CLASS_EXPORT

public static final java.lang.String MESSAGE_CLASS_EXPORT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

askIfFilesShouldBeDeleted

private transient boolean askIfFilesShouldBeDeleted
No comment provided by developer, please add a comment to improve documentation.


frameMain

private transient FrameMain frameMain
No comment provided by developer, please add a comment to improve documentation.


expPath

private transient java.lang.String expPath
No comment provided by developer, please add a comment to improve documentation.


foundJava

private transient boolean foundJava
No comment provided by developer, please add a comment to improve documentation.


choice

private transient int choice
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

ExportFilesAction

public ExportFilesAction()
Method Detail

isSuccessful

public boolean isSuccessful()
Returns the state of ExportFilesAction, true if the export was successful, else false

Returns:
The successful value

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
e - No description provided

exportFiles

public boolean exportFiles(java.awt.event.ActionEvent e)
Export files

Parameters:
e - Action event that caused the export
Returns:
true when successful

exportFiles

public boolean exportFiles(boolean deleteExistingFiles,
                           boolean askIfFilesShouldBeDeleted,
                           FPackage pkg)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
deleteExistingFiles - No description provided
askIfFilesShouldBeDeleted - No description provided
pkg - No description provided
Returns:
No description provided

showErrorMessageForException

private void showErrorMessageForException(java.lang.Exception ex)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
ex - No description provided

clearExportDirectory

private boolean clearExportDirectory(java.lang.String expPath,
                                     boolean askIfFilesShouldBeDeleted)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
expPath - No description provided
askIfFilesShouldBeDeleted - true if a dialog should be shown to ask whether to delete file s or not
Returns:
No description provided

deleteFileOrDirectory

private boolean deleteFileOrDirectory(java.io.File f,
                                      boolean includingParam)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
f - No description provided
includingParam - No description provided
Returns:
No description provided