Class SelectPropDialog

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.jface.viewers.IDoubleClickListener, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.internal.SWTEventListener

    public class SelectPropDialog
    extends org.eclipse.swt.widgets.Dialog
    implements org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.swt.events.ModifyListener, org.eclipse.jface.viewers.IDoubleClickListener
    Dialog used to display Extends Name selection.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      SelectPropDialog​(org.eclipse.swt.widgets.Shell parent, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogImage, ModuleModel model, java.lang.Object root, org.eclipse.jface.viewers.ViewerFilter viewerFilter, java.lang.Class<?>[] possibleClasses, java.lang.String currentRef, int expandLevel)
      Create the dialog.
      SelectPropDialog​(org.eclipse.swt.widgets.Shell parent, java.lang.String dialogTitle, org.eclipse.swt.graphics.Image dialogImage, ModuleModel model, java.lang.Object root, org.eclipse.jface.viewers.ViewerFilter viewerFilter, java.lang.Class<?>[] possibleClasses, java.lang.String currentRef, int expandLevel, IExpandFilter expandFilter)
      Create the dialog.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voiddoubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
      Double-click.
      voidforNoReferenceSelectAndExpand​(java.lang.Object object, int expansionLevel)
      If no reference is defined, try selecting this object if possible instead, with another expansion level.
      voidmodifyText​(org.eclipse.swt.events.ModifyEvent e)
      Entry field modification.
      java.lang.Stringopen()
      Open the dialog.
      voidselectionChanged​(org.eclipse.jface.viewers.SelectionChangedEvent event)
      Selection changes.
      • 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

      • SelectPropDialog

        public SelectPropDialog​(org.eclipse.swt.widgets.Shell parent,
                                java.lang.String dialogTitle,
                                org.eclipse.swt.graphics.Image dialogImage,
                                ModuleModel model,
                                java.lang.Object root,
                                org.eclipse.jface.viewers.ViewerFilter viewerFilter,
                                java.lang.Class<?>[] possibleClasses,
                                java.lang.String currentRef,
                                int expandLevel)
        Create the dialog.
        Parameters:
        parent - The parent shell.
      • SelectPropDialog

        public SelectPropDialog​(org.eclipse.swt.widgets.Shell parent,
                                java.lang.String dialogTitle,
                                org.eclipse.swt.graphics.Image dialogImage,
                                ModuleModel model,
                                java.lang.Object root,
                                org.eclipse.jface.viewers.ViewerFilter viewerFilter,
                                java.lang.Class<?>[] possibleClasses,
                                java.lang.String currentRef,
                                int expandLevel,
                                IExpandFilter expandFilter)
        Create the dialog.
        Parameters:
        parent - The parent shell.
    • Method Detail

      • forNoReferenceSelectAndExpand

        public void forNoReferenceSelectAndExpand​(java.lang.Object object,
                                                  int expansionLevel)
        If no reference is defined, try selecting this object if possible instead, with another expansion level.
      • open

        public java.lang.String open()
        Open the dialog.
      • selectionChanged

        public void selectionChanged​(org.eclipse.jface.viewers.SelectionChangedEvent event)
        Selection changes.
        Specified by:
        selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener
        Parameters:
        event - The selection event.
      • modifyText

        public void modifyText​(org.eclipse.swt.events.ModifyEvent e)
        Entry field modification.
        Specified by:
        modifyText in interface org.eclipse.swt.events.ModifyListener
        Parameters:
        e - The modification event.
      • doubleClick

        public void doubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
        Double-click.
        Specified by:
        doubleClick in interface org.eclipse.jface.viewers.IDoubleClickListener