classpathhelper.eclipse.ui.preferences
Class PatternDialog

java.lang.Object
  extended byDialog
      extended byclasspathhelper.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)
           
 
Method Summary
protected  void buttonPressed(int buttonId)
           
protected  void configureShell(Shell shell)
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
protected  Button getOkButton()
          Returns the ok button.
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternDialog

public PatternDialog(Shell parentShell,
                     java.lang.String dialogTitle,
                     java.lang.String theLabel)
Method Detail

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