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
public class InsertTextVSDialog extends org.eclipse.swt.widgets.Dialog implements IValidationMessage
Dialog box to insert or edit a VirtualSpace tag of a KString.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorDescriptionInsertTextVSDialog
(org.eclipse.swt.widgets.Shell parent, EditorVirtualSpace virtualSpace, String[] dialogData) Create the dialog.Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
Constructor Details
InsertTextVSDialog
public InsertTextVSDialog(org.eclipse.swt.widgets.Shell parent, EditorVirtualSpace virtualSpace, String[] dialogData) Create the dialog.- Parameters:
parent
- The parent shell.virtualSpace
- The virtualSpace.dialogData
- Dialog data [1], where [0]='textIDReference'.
Method Details
open
public int open()Open the dialog.- Returns:
- the gradient.
setMessage
Set 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
, orIMessageProvider.ERROR
.Note that for backward compatibility, a message of type
ERROR
is different than an error message (set usingsetErrorMessage
). 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:
setMessage
in interfaceIValidationMessage
- Parameters:
newMessage
- The message, ornull
to clear the message.newType
- The message type.
onValidate
public void onValidate(boolean isValid) Call to inform validity of all validators.- Specified by:
onValidate
in interfaceIValidationMessage
- Parameters:
isValid
- true if valid, false otherwise.