Package com.iizigo.prop.editor.dialog
Class InsertTextVSDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.prop.editor.dialog.InsertTextVSDialog
- All Implemented Interfaces:
- IValidationMessage
Dialog box to insert or edit a VirtualSpace tag of a KString.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- InsertTextVSDialog- (Shell parent, EditorVirtualSpace virtualSpace, String[] dialogData) Create the dialog.
- Method SummaryModifier and TypeMethodDescription- void- onValidate- (boolean isValid) Call to inform validity of all validators.- int- open()Open the dialog.- void- setMessage- (String newMessage, int newType) Set the message for this page with an indication of what type of message it is.
- Constructor Details- InsertTextVSDialogCreate the dialog.- Parameters:
- parent- The parent shell.
- virtualSpace- The virtualSpace.
- dialogData- Dialog data [1], where [0]='textIDReference'.
 
 
- Method Details- openpublic int open()Open the dialog.- Returns:
- the gradient.
 
- setMessageSet the message for this page with an indication of what type of message it is.- The valid message types are one of - IMessageProvider.NONE,- IMessageProvider.INFORMATION,- IMessageProvider.WARNING, or- IMessageProvider.ERROR.- Note that for backward compatibility, a message of type - ERRORis 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.- Specified by:
- setMessagein interface- IValidationMessage
- Parameters:
- newMessage- The message, or- nullto clear the message.
- newType- The message type.
 
- onValidatepublic void onValidate- (boolean isValid) Call to inform validity of all validators.- Specified by:
- onValidatein interface- IValidationMessage
- Parameters:
- isValid- true if valid, false otherwise.