Package com.iizigo.prop.editor.dialog
Class SelectProjectDialog
- java.lang.Object
- org.eclipse.swt.widgets.Dialog
- com.iizigo.prop.editor.dialog.SelectProjectDialog
- All Implemented Interfaces:
org.eclipse.jface.viewers.IDoubleClickListener
,org.eclipse.jface.viewers.ISelectionChangedListener
public class SelectProjectDialog extends org.eclipse.swt.widgets.Dialog implements org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.IDoubleClickListener
Dialog used to display and select Module project(s).- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description SelectProjectDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String prompt, boolean isMulti)
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.ModuleModel[]
open()
Open the dialog.void
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Selection changes.
Constructor Detail
SelectProjectDialog
public SelectProjectDialog(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String prompt, boolean isMulti)
Create the dialog.- Parameters:
parent
- The parent shell.title
- Title of dialog.prompt
- Text prompt in dialog above tree, null for none.
Method Detail
open
public ModuleModel[] open()
Open the dialog.- Returns:
- The array of projects, or null for none.
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.
doubleClick
public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Double-click.- Specified by:
doubleClick
in interfaceorg.eclipse.jface.viewers.IDoubleClickListener