currentPath = (currentPhase == null ? null : currentPhase.path());
List<ScriptID> scriptItems = ScriptEnumerator.getScripts(ctx,
currentPhase);
if (scriptItems != null && scriptItems.size() > 1) {
ScriptMenuBuilder b = new ScriptMenuBuilder(scriptItems);
addMenuItems(popupMenu, b.getMenuItems(), pos);
}
}