public void actionPerformed(ActionEvent e) {
        String[] ex=e.getActionCommand().split("/");
        if(ex[0].equals("showOthers")){
            otherBlocksMenu.show((Component)e.getSource(), 0, 0);
        }
        else if(ex[0].equals("add")){
            if(codeBased.isSelected())
                ((Flowchart)action.flow).addBlock(ex[1]);
            else
                ((Flowchart)action.flow).addNonCodeBlock(ex[1]);
        }
        else if(ex[0].equals("align"))
            ((Flowchart)action.flow).align(ex[1]);
        else if(ex[0].equals("delete")){
            if(ex[1].equals("all"))
                ((Flowchart)action.flow).deleteSelectedBlocks();}
        else if(ex[0].equals("connections"))
                ((Flowchart)action.flow).deleteConnections(ex[1]);
        else action.actionPerformed(e);
    }