@Override public void activate(DrawingEditor editor) { super.activate(editor); if (x == 0) save(); if (x < 0) saveAs(); if (x > 0) serialize(); }
@Override public void mouseEntered(MouseEvent evt) { // This is questionable programming -- TODO fix it later super.deactivate(editor); fireToolDone(); }