de.cau.cs.kieler.sim.kiem.config.ui
Class ExecutionFileMissingDialog

java.lang.Object
  extended by de.cau.cs.kieler.sim.kiem.config.ui.ExecutionFileMissingDialog

public class ExecutionFileMissingDialog
extends Object

The dialog for showing that the execution file is missing and dealing with it.

Rating proposed yellow
(2010-01-27)

Field Summary
static String CANCEL
          The text for the cancel button.
static String DELETE
          The text for the delete button.
static String NEW_LOCATION
          The text for the new location button.
 
Constructor Summary
ExecutionFileMissingDialog(Shell parentShellParam, ScheduleData scheduleParam)
          Creates a new ExecutionFileMissingDialog.
 
Method Summary
 String enterNewLocation(boolean tryToOpen)
          Open a file chooser so the user can select the file.
 String open()
          Open the dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETE

public static final String DELETE
The text for the delete button.

See Also:
Constant Field Values

CANCEL

public static final String CANCEL
The text for the cancel button.

See Also:
Constant Field Values

NEW_LOCATION

public static final String NEW_LOCATION
The text for the new location button.

See Also:
Constant Field Values
Constructor Detail

ExecutionFileMissingDialog

public ExecutionFileMissingDialog(Shell parentShellParam,
                                  ScheduleData scheduleParam)
Creates a new ExecutionFileMissingDialog.

Parameters:
parentShellParam - the parent shell
scheduleParam - the faulty schedule
Method Detail

open

public String open()
Open the dialog.

Returns:
the choice of the user

enterNewLocation

public String enterNewLocation(boolean tryToOpen)
Open a file chooser so the user can select the file.

Parameters:
tryToOpen - true if the an openFile() attempt should be made
Returns:
the choice of the user