Package com.iizigo.prop.editor.dialog
Class SelectPropDialog
- java.lang.Object
- org.eclipse.swt.widgets.Dialog
- com.iizigo.prop.editor.dialog.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 Constructor Description 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 Type Method Description void
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Double-click.void
forNoReferenceSelectAndExpand(java.lang.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.java.lang.String
open()
Open the dialog.void
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Selection changes.
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 interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.jface.viewers.IDoubleClickListener