insensa.commands
Class DeleteProjectCommand

java.lang.Object
  extended by insensa.commands.AbstractModelCommand
      extended by insensa.commands.DeleteProjectCommand
All Implemented Interfaces:
ModelCommand

public class DeleteProjectCommand
extends AbstractModelCommand


Field Summary
private  int fileCount
           
private  java.lang.String folderName
           
private  float progress
           
private  float stepsize
           
 
Fields inherited from class insensa.commands.AbstractModelCommand
problem, workerStatus
 
Constructor Summary
DeleteProjectCommand()
           
 
Method Summary
private  void countFiles(java.lang.String folderName)
           
private  void deleteProject(java.lang.String folderName)
           
 void execute()
           
 void setFolderName(java.lang.String folderName)
           
 
Methods inherited from class insensa.commands.AbstractModelCommand
check, createDependendCommands, getProblem, getWorkerStatus, retry, setWorkerStatus, throwErrorMessage, throwProblem, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

folderName

private java.lang.String folderName

fileCount

private int fileCount

stepsize

private float stepsize

progress

private float progress
Constructor Detail

DeleteProjectCommand

public DeleteProjectCommand()
Method Detail

countFiles

private void countFiles(java.lang.String folderName)
                 throws java.io.IOException
Parameters:
folderName -
Throws:
java.io.IOException

deleteProject

private void deleteProject(java.lang.String folderName)
                    throws java.io.IOException
Parameters:
folderName -
Throws:
java.io.IOException

execute

public void execute()
             throws java.io.IOException
Throws:
java.io.IOException
See Also:
ModelCommand.execute()

setFolderName

public void setFolderName(java.lang.String folderName)
Parameters:
folderName -