protected void copySelectedComponent() {
		super.copySelectedComponent();
		if (selectedComponent instanceof RectangularObstacle) {
			pasteBuffer = ((RectangularObstacle) selectedComponent).clone();
		} else if (selectedComponent instanceof Atom) {
			pasteBuffer = selectedComponent;
		} else if (selectedComponent instanceof Molecule) {
			restoreMolecule = false;
			pasteBuffer = selectedComponent;
		}
		Action a = getActionMap().get(PASTE);
		if (!a.isEnabled() && pasteBuffer != null)
			a.setEnabled(true);
	}