Beispiel #1
0
  @Override
  public void activate(DrawingEditor editor) {
    super.activate(editor);

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