Class SelectPropDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.prop.editor.dialog.SelectPropDialog
All Implemented Interfaces:
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
    Constructor
    Description
    SelectPropDialog(org.eclipse.swt.widgets.Shell parent, String dialogTitle, org.eclipse.swt.graphics.Image dialogImage, ModuleModel model, Object root, org.eclipse.jface.viewers.ViewerFilter viewerFilter, Class<?>[] possibleClasses, String currentRef, int expandLevel)
    Create the dialog.
    SelectPropDialog(org.eclipse.swt.widgets.Shell parent, String dialogTitle, org.eclipse.swt.graphics.Image dialogImage, ModuleModel model, Object root, org.eclipse.jface.viewers.ViewerFilter viewerFilter, Class<?>[] possibleClasses, String currentRef, int expandLevel, IExpandFilter expandFilter)
    Create the dialog.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
    Double-click.
    void
    forNoReferenceSelectAndExpand(Object object, int expansionLevel)
    If no reference is defined, try selecting this object if possible instead, with another expansion level.
    void
    modifyText(org.eclipse.swt.events.ModifyEvent e)
    Entry field modification.
    Open the dialog.
    void
    selectionChanged(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 Details

    • SelectPropDialog

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

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

    • forNoReferenceSelectAndExpand

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

      public 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