java.lang.Objectucot.ModuleProperties
ucot.ui.DummyUI
public class DummyUI
DummyUI which does absolutely nothing but helps avoiding null values in UI variables. Errors and warnings do get logged.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ERROR_TITLE
|
static java.lang.String |
DEFAULT_WARNING_TITLE
|
private java.util.logging.Logger |
logger
|
Fields inherited from class ucot.ModuleProperties |
---|
properties, propertiesURL |
Constructor Summary | |
---|---|
DummyUI()
|
Method Summary | |
---|---|
void |
analyzeModelLoaded()
Method for signaling the user interface that the analyze model has been (successfully) loaded. |
void |
exportDone()
Method for signaling the user interface that the analyze model has been (successfully) exported. |
ProgressBarInterface |
getProgressBar()
Method for getting a new progressbar for showing the current progress status to the user and halting all other usage of the model editor. |
void |
printError(java.lang.String errorMessage)
|
void |
printError(java.lang.String errorMessage,
java.lang.String errorTitle)
Prints an error message to the screen. |
void |
printWarning(java.lang.String warningMessage)
|
void |
printWarning(java.lang.String warningMessage,
java.lang.String warningTitle)
Prints a warning to the screen. |
void |
setControlInterface(ControlInterface a)
Set a new control interface for the user interface to use. |
void |
useCaseAdded(int foundEntities,
int addedEntities)
Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model. |
void |
useCasesLoaded()
Method for signaling user interface that use cases have been (successfully) loaded from file. |
Methods inherited from class ucot.ModuleProperties |
---|
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ucot.ModulePropertyInterface |
---|
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties |
Field Detail |
---|
public static final java.lang.String DEFAULT_ERROR_TITLE
public static final java.lang.String DEFAULT_WARNING_TITLE
private java.util.logging.Logger logger
Constructor Detail |
---|
public DummyUI()
Method Detail |
---|
public void exportDone()
UIInterface
Method for signaling the user interface that the analyze model has been (successfully) exported.
exportDone
in interface UIInterface
public void analyzeModelLoaded()
UIInterface
Method for signaling the user interface that the analyze model has been (successfully) loaded.
analyzeModelLoaded
in interface UIInterface
public void useCasesLoaded()
UIInterface
Method for signaling user interface that use cases have been (successfully) loaded from file.
useCasesLoaded
in interface UIInterface
public void useCaseAdded(int foundEntities, int addedEntities)
UIInterface
Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model.
useCaseAdded
in interface UIInterface
foundEntities
- How many entities the parser found.addedEntities
- How many entities were added.public void setControlInterface(ControlInterface a)
UIInterface
Set a new control interface for the user interface to use.
setControlInterface
in interface UIInterface
a
- ControlInterface
to the UCOT core.public void printError(java.lang.String errorMessage, java.lang.String errorTitle)
UIInterface
Prints an error message to the screen.
printError
in interface UIInterface
errorMessage
- Description of the error.errorTitle
- Title of the dialog.public void printError(java.lang.String errorMessage)
printError
in interface UIInterface
public void printWarning(java.lang.String warningMessage, java.lang.String warningTitle)
UIInterface
Prints a warning to the screen.
printWarning
in interface UIInterface
warningMessage
- Description of the warning.warningTitle
- Title of the dialog.public void printWarning(java.lang.String warningMessage)
printWarning
in interface UIInterface
public ProgressBarInterface getProgressBar()
UIInterface
Method for getting a new progressbar for showing the current progress status to the user and halting all other usage of the model editor.
getProgressBar
in interface UIInterface