view().addFigureSelectionListener(this);
view().removeFigureSelectionListener(this);
	public void execute() {		hasSelectionChanged = false;		// listen for selection change events during executing the wrapped command		view().addFigureSelectionListener(this);		getWrappedCommand().execute();		Undoable undoableCommand = getWrappedCommand().getUndoActivity();		if ((undoableCommand != null) && (undoableCommand.isUndoable())) {			getDrawingEditor().getUndoManager().pushUndo(undoableCommand);			getDrawingEditor().getUndoManager().clearRedos();		}				// initiate manual update of undo/redo menu states if it has not		// been done automatically during executing the wrapped command		if (!hasSelectionChanged || (getDrawingEditor().getUndoManager().getUndoSize() == 1)) {			getDrawingEditor().figureSelectionChanged(view());		}		// remove so not all commands are listeners that have to be notified		// all the time		view().addFigureSelectionListener(this);	}