Package com.puppetlabs.geppetto.ui.dialog

Examples of com.puppetlabs.geppetto.ui.dialog.ModuleListSelectionDialog


      Module[] choices = getModuleChoices(askKeywordDialog.getValue());
      if(choices.length == 0)
        return;

      ModuleListSelectionDialog dialog = new ModuleListSelectionDialog(getShell());
      dialog.setMultipleSelection(false);
      dialog.setElements(choices);

      if(module != null) {
        dialog.setInitialElementSelections(Collections.singletonList(module));
      }

      if(dialog.open() == Window.OK) {
        setModule((Module) dialog.getFirstResult());
      }
    }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.ui.dialog.ModuleListSelectionDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.