Search in sources :

Example 1 with GuiMaciSupervisor

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;
}
Also used : GuiMaciSupervisor(alma.acs.commandcenter.meta.GuiMaciSupervisor)

Example 2 with GuiMaciSupervisor

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;
}
Also used : DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) GuiMaciSupervisor(alma.acs.commandcenter.meta.GuiMaciSupervisor)

Aggregations

GuiMaciSupervisor (alma.acs.commandcenter.meta.GuiMaciSupervisor)2 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1