if (action.equals(Constantes.QUIT)) {
Main.analyseFrame.exit();
} else if (action.equals(Constantes.ABOUT)) {
Main.aboutWindow.setVisible(true);
} else if (action.equals(Constantes.UNDO)) {
UndoInterface u;
try {
u = (UndoInterface) p;
u.undo();
} catch (ClassCastException exp) {
System.err.println(exp);
}
} else if (action.equals(Constantes.REDO)) {
UndoInterface u;
try {
u = (UndoInterface) p;
u.redo();
} catch (ClassCastException exp) {
System.err.println(exp);
}
} else if (action.equals(Constantes.CUT)) {
ClipboardInterface c;