net.refractions.udig.issues
Interface IIssuesPreferencePage


public interface IIssuesPreferencePage

The Preference Page for configuring what issues list is used.

Since:
1.1.0
Author:
Jesse

Method Summary
 void runWithProgress(boolean mayBlock, IRunnableWithProgress runnable)
          Runs a runnable in a non-UI thread if mayBlock is true.
 void setErrorMessage(java.lang.String newMessage)
          Sets or clears the error message for this page.
 void setMessage(java.lang.String newMessage)
          Sets or clears the message for this page.
 void setMessage(java.lang.String newMessage, int newType)
          Sets the message for this page with an indication of what type of message it is.
 

Method Detail

runWithProgress

void runWithProgress(boolean mayBlock,
                     IRunnableWithProgress runnable)
                     throws java.lang.reflect.InvocationTargetException,
                            java.lang.InterruptedException
Runs a runnable in a non-UI thread if mayBlock is true. Otherwise simply runs the runnable.

Parameters:
mayBlock - true if it is possible for the Runnable to block, for example a network call is made.
runnable - the runnable to execute.
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException

setErrorMessage

void setErrorMessage(java.lang.String newMessage)
Sets or clears the error message for this page.

Parameters:
newMessage - the message, or null to clear the error message

setMessage

void setMessage(java.lang.String newMessage)
Sets or clears the message for this page.

This is a shortcut for setMessage(newMesasge, NONE)

Parameters:
newMessage - the message, or null to clear the message

setMessage

void setMessage(java.lang.String newMessage,
                int newType)
Sets the message for this page with an indication of what type of message it is.

The valid message types are one of NONE, INFORMATION,WARNING, or ERROR.

Note that for backward compatibility, a message of type ERROR is different than an error message (set using setErrorMessage). An error message overrides the current message until the error message is cleared. This method replaces the current message and does not affect the error message.

Parameters:
newMessage - the message, or null to clear the message
newType - the message type
Since:
2.0