|
RSE Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Our validators need to support querying max length, for generic rename dialogs. They also need to support getting the message not only as a string, which isValid returns, but also as a SystemMessage, which getSystemMessage() does if isValid returns non-null.
| Method Summary | |
int |
getMaximumNameLength()
Return the max length for this name, or -1 if no max |
SystemMessage |
getSystemMessage()
If isValid returns non-null and you desire a full bodied SystemMessage versus a string, call this method after isValid to get the full bodied SystemMessage. |
SystemMessage |
validate(String text)
For convenience, this is a shortcut to calling:
if (isValid(text) ! |
| Methods inherited from interface org.eclipse.jface.dialogs.IInputValidator |
isValid |
| Methods inherited from interface org.eclipse.jface.viewers.ICellEditorValidator |
isValid |
| Method Detail |
public int getMaximumNameLength()
public SystemMessage getSystemMessage()
Will be null if isValid returned null.
public SystemMessage validate(String text)
if (isValid(text) != null)
msg = getSystemMessage();
|
RSE Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||