for (int i = 0; i < positions.length; i++) {
CellPosition cellPosition = positions[i];
String cellName = cellPosition.name();
JMenuItem del_menuItem = new JMenuItem(cellName);
Action deleteSampleAction = new DeleteSampleAction(cellPosition, treePath);
actionManager.addAction(deleteSampleAction);
del_menuItem.setAction(deleteSampleAction);
deleteMenu.add(del_menuItem);
}
popupMenu.add(deleteMenu);