classpathhelper.eclipse.ui.preferences
Class PatternDialog
java.lang.Object
Dialog
classpathhelper.eclipse.ui.preferences.PatternDialog
- public class PatternDialog
- extends Dialog
Dialog for entering new pattern strings.
Usage
PatternDialog dialog = new PatternDialog(shell, title, textFieldDescription);
dialog.open();
String newText = dialog.getText();
- Since:
- 1.1
- Author:
- bharris
- See Also:
- Serialized Form
Constructor Summary |
PatternDialog(Shell parentShell,
java.lang.String dialogTitle,
java.lang.String theLabel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternDialog
public PatternDialog(Shell parentShell,
java.lang.String dialogTitle,
java.lang.String theLabel)
getText
public java.lang.String getText()
- Returns:
- The text that was entered or
null
if cancel was selected. - Since:
- 1.1
buttonPressed
protected void buttonPressed(int buttonId)
configureShell
protected void configureShell(Shell shell)
createDialogArea
protected Control createDialogArea(Composite parent)
createButtonsForButtonBar
protected void createButtonsForButtonBar(Composite parent)
getOkButton
protected Button getOkButton()
- Returns the ok button.
- Returns:
- the ok button