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