BrightSide Workbench Full Report + Source Code
org.turro.wd.tree.DelTask Class Reference
Inheritance diagram for org.turro.wd.tree.DelTask:
Collaboration diagram for org.turro.wd.tree.DelTask:

Public Member Functions

 DelTask (TreeView treeView, String caption)
 
- Public Member Functions inherited from org.turro.wd.tree.DefaultTask
 DefaultTask (TreeView treeView, String caption)
 
String execute () throws TaskExecutionException
 

Protected Member Functions

String done ()
 
String failed ()
 
void process (TreeDirectory dir) throws ParseException
 
void process (TreeWorkFile file) throws ParseException
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.wd.tree.DefaultTask
TreeView treeView
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file DelTask.java.

Constructor & Destructor Documentation

◆ DelTask()

org.turro.wd.tree.DelTask.DelTask ( TreeView  treeView,
String  caption 
)

Definition at line 29 of file DelTask.java.

Member Function Documentation

◆ done()

String org.turro.wd.tree.DelTask.done ( )
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 34 of file DelTask.java.

34  {
35  return "Done deletion!";
36  }

◆ failed()

String org.turro.wd.tree.DelTask.failed ( )
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 39 of file DelTask.java.

39  {
40  return "Failed!";
41  }

◆ process() [1/2]

void org.turro.wd.tree.DelTask.process ( TreeDirectory  dir) throws ParseException
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 44 of file DelTask.java.

44  {
45  dir.getDirectory().getSystemFile().delete();
46  }

◆ process() [2/2]

void org.turro.wd.tree.DelTask.process ( TreeWorkFile  file) throws ParseException
protected

Reimplemented from org.turro.wd.tree.DefaultTask.

Definition at line 49 of file DelTask.java.

49  {
50  if(file.getWorkFile().getFile() != null) {
51  file.getWorkFile().getFile().delete();
52  }
53  }

The documentation for this class was generated from the following file: