if (!resultPathways.isEmpty())
{
ArrayList<String> selectedItems = new ArrayList<String>();
ItemSelectionDialog dialog = new ItemSelectionDialog(main.getShell(),
500,
"Pathway Selection Dialog",
"Select pathways to retrieve",
resultPathways, selectedItems,
true, true, null);
dialog.setMinValidSelect(1);
dialog.open();
List<String> idList = new ArrayList<String>();
if (!dialog.isCancelled())
{
for (String item : selectedItems)
{
idList.add(pathToID.get(item));
}