Beispiel #1
0
 public void invoke(MindMapNode node) {
   super.invoke(node);
   String actionType = getResourceString("action");
   if (actionType.equals("encrypt")) {
     encrypt(node);
     getController().nodeRefresh(node);
     return;
   } else if (actionType.equals("toggleCryptState")) {
     toggleCryptState(node);
     getController().nodeRefresh(node);
     return;
   } else if (actionType.equals("encrypted_map")) {
     // new map
     newEncryptedMap();
     return;
   } else {
     throw new IllegalArgumentException("Unknown action type:" + actionType);
   }
 }
Beispiel #2
0
 public void invoke(MindMapNode node) {
   super.invoke(node);
   boolean foldState = Tools.xmlToBoolean(getResourceString("foldingState"));
   String foldingType = getResourceString("foldingType");
   String applyTo = getResourceString("applyTo");
   if ("root".equals(applyTo)) {
     node = getMindMapController().getRootNode();
   }
   if (foldingType.equals("All")) {
     if (foldState) {
       foldAll(node);
     } else {
       unfoldAll(node);
     }
   } else {
     if (foldState) {
       foldOneStage(node);
     } else {
       unfoldOneStage(node);
     }
   }
 }