@Override
	public void actionPerformed(ActionEvent e) {
		OutlinerDocument doc = (OutlinerDocument) Outliner.documents.getMostRecentDocumentTouched();
		OutlinerCellRendererImpl textArea = doc.panel.layout.getUIComponent(doc.tree.getEditingNode());
		
		if (textArea == null) {
			return;
		}
		
		Node node = textArea.node;
		JoeTree tree = node.getTree();
		OutlineLayoutManager layout = tree.getDocument().panel.layout;
		
		if (doc.tree.getComponentFocus() == OutlineLayoutManager.TEXT) {
			CopyAction.copyText(textArea, tree, layout);
		} else if (doc.tree.getComponentFocus() == OutlineLayoutManager.ICON) {
			CopyAction.copy(tree, layout);
		}
	}