Class 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 
      ConstructorDescription
      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 TypeMethodDescription
      voiddoubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
      Double-click.
      ModuleModel[]open()
      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

      • 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 interface org.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 interface org.eclipse.jface.viewers.IDoubleClickListener