org.topbraid.core
Interface IStatusUIHandler


public interface IStatusUIHandler

Handles status UI operations

Author:
Gokhan H. Soydan

Method Summary
 void asyncExec(java.lang.Runnable r)
          Runs a runnable asynchronously in the UI.
 boolean canAsyncExec()
           
 java.lang.String getInputFromDialog(java.lang.Object shell, java.lang.String dialogTitle, java.lang.String message)
          Gets a string input from an Input Dialog
 java.lang.String getProductName()
           
 java.lang.String getProductVersion()
           
 int openMessageBox(java.lang.Object shell, java.lang.String dialogTitle, java.lang.String message)
          Displays a message box in a dialog specified by the implementation
 int openMessageInformationDialog(java.lang.Object shell, java.lang.String dialogTitle, java.lang.String message, java.lang.String[] buttonLabels)
          Displays an information message in a dialog specified by the implementation
 void showUserError(java.lang.String message)
          Displays error in a dialog specified by the implementation.
 

Method Detail

canAsyncExec

boolean canAsyncExec()
Returns:
whether asynchronous execution is available in this class

showUserError

void showUserError(java.lang.String message)
Displays error in a dialog specified by the implementation.

Parameters:
message -

openMessageInformationDialog

int openMessageInformationDialog(java.lang.Object shell,
                                 java.lang.String dialogTitle,
                                 java.lang.String message,
                                 java.lang.String[] buttonLabels)
Displays an information message in a dialog specified by the implementation

Parameters:
shell -
dialogTitle -
message -
buttonLabels -
Returns:
the index of the clicked button label

openMessageBox

int openMessageBox(java.lang.Object shell,
                   java.lang.String dialogTitle,
                   java.lang.String message)
Displays a message box in a dialog specified by the implementation

Parameters:
shell -
dialogTitle -
message -

getInputFromDialog

java.lang.String getInputFromDialog(java.lang.Object shell,
                                    java.lang.String dialogTitle,
                                    java.lang.String message)
Gets a string input from an Input Dialog

Parameters:
shell -
dialogTitle -
message -
Returns:
input from the dialog

getProductName

java.lang.String getProductName()
Returns:
name of the product

getProductVersion

java.lang.String getProductVersion()
Returns:
version of the product

asyncExec

void asyncExec(java.lang.Runnable r)
Runs a runnable asynchronously in the UI.

Parameters:
r -