setView((DrawingView)e.getSource());
	public void mouseDown(MouseEvent e, int x, int y) {		Figure pressedFigure = drawing().findFigureInside(x, y);		TextHolder textHolder = null;		if (pressedFigure != null) {			textHolder = pressedFigure.getTextHolder();		}		if ((textHolder != null) && (textHolder.acceptsTyping())) {			beginEdit(textHolder, pressedFigure);			return;		}		if (getTypingTarget() != null) {			endEdit();			if (getCreatedFigure() != null && getCreatedFigure().isEmpty()) {				drawing().remove(getAddedFigure());				// nothing to undo				setUndoActivity(null);			}			else {//				// use undo activity from paste command...//				setUndoActivity(createUndoActivity());////				// put created figure into a figure enumeration//				getUndoActivity().setAffectedFigures(new SingleFigureEnumerator(getAddedFigure()));			}			setTypingTarget(null);			setCreatedFigure(null);			setEditedFigure(null);			setAddedFigure(null);			editor().toolDone();		}		else {			super.mouseDown(e, x, y);		}	}