use of alma.acs.commandcenter.meta.GuiMaciSupervisor in project ACS by ACS-Community.
the class DeploymentTree method getMaciSupervisor.
protected GuiMaciSupervisor getMaciSupervisor(String managerLoc) throws OrbInitException {
GuiMaciSupervisor mrf = ctrl.giveMaciSupervisor(managerLoc);
mrf.setConnectsAutomatically(false);
return mrf;
}
use of alma.acs.commandcenter.meta.GuiMaciSupervisor in project ACS by ACS-Community.
the class DeploymentTree method removeManager.
public boolean removeManager(String managerLoc, boolean dismissManager) {
DefaultMutableTreeNode managerNode = getManagerNode(managerLoc);
if (managerNode == null) {
return false;
}
GuiMaciSupervisor ms = maciSupervisor(managerNode);
// make the MaciSupervisor forget its manager connection
if (dismissManager) {
ms.dismissManager();
}
for (ModelConverter mc : modelConverters) {
if (maciSupervisor(mc.managerNode()) == ms) {
mc.sourceModel.removeTreeModelListener(mc);
modelConverters.remove(mc);
break;
}
}
removeNode(managerNode);
return true;
}
Aggregations