@Override public void activate(DrawingEditor editor) { super.activate(editor); if (x == 0) save(); if (x < 0) saveAs(); if (x > 0) serialize(); }