Class NewMethodDialog

  • All Implemented Interfaces:
    java.util.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

      Constructors 
      ConstructorDescription
      NewMethodDialog​(org.eclipse.swt.widgets.Shell parent, JavaClass javaClass, java.lang.String method, AnnotationType annotation)
      Create the dialog.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidmodifyText​(org.eclipse.swt.events.ModifyEvent e)
      Changes in new name.
      java.lang.Stringopen()
      Open the dialog.
      • Methods inherited from class org.eclipse.swt.widgets.Dialog

        checkSubclass, getParent, getStyle, getText, setText
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewMethodDialog

        public NewMethodDialog​(org.eclipse.swt.widgets.Shell parent,
                               JavaClass javaClass,
                               java.lang.String method,
                               AnnotationType annotation)
        Create the dialog.
    • Method Detail

      • open

        public java.lang.String 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 interface org.eclipse.swt.events.ModifyListener
        Parameters:
        e -