public class OpenMapsRegistration {
public OpenMapsRegistration(ModeController modeController) {
final OpenMapsNodeHook nodeHook = new OpenMapsNodeHook();
if (modeController.getModeName() == "MindMap") {
modeController.addAction(new InsertOpenMapsAction(nodeHook));
modeController.addAction(new RemoveOpenMapsAction(nodeHook));
modeController.addAction(new ViewOpenMapsAction(nodeHook));
}
}