Package com.iizigo.prop.editor.dialog
Class NewMethodDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.prop.editor.dialog.NewMethodDialog
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.ModifyListener
,org.eclipse.swt.internal.SWTEventListener
public class NewMethodDialog extends org.eclipse.swt.widgets.Dialog implements org.eclipse.swt.events.ModifyListener
New method name dialog box, checking name validity and that method name is not already taken.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorDescriptionNewMethodDialog
(org.eclipse.swt.widgets.Shell parent, JavaClass javaClass, String method, AnnotationType annotation) Create the dialog.Method Summary
Modifier and TypeMethodDescriptionvoid
modifyText
(org.eclipse.swt.events.ModifyEvent e) Changes in new name.open()
Open the dialog.Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
Constructor Details
NewMethodDialog
public NewMethodDialog(org.eclipse.swt.widgets.Shell parent, JavaClass javaClass, String method, AnnotationType annotation) Create the dialog.
Method Details
open
Open the dialog.- Returns:
- The method name, or null for cancel.
modifyText
public void modifyText(org.eclipse.swt.events.ModifyEvent e) Changes in new name.- Specified by:
modifyText
in interfaceorg.eclipse.swt.events.ModifyListener
- Parameters:
e
-