Closed chqu1012 closed 7 years ago
To add new proposals to specified group, used this:
ElementListSelectionDialog dialog = new ElementListSelectionDialog(shlSpriteCreator, new LabelProvider()); dialog.setMultipleSelection(false); dialog.setIgnoreCase(true); dialog.setAllowDuplicates(true); dialog.setMessage("Select an AI"); dialog.setTitle("What AI to use?"); dialog.setElements(new String[]{"HELLO","GOODBYE"}); if (dialog.open() == Window.OK) { aiControllerLocation = (String) dialog.getFirstResult(); }
Create new proposals by editor