private void doCopy(){
		if (textArea == null || StringUtils.isEmpty(textArea.getText()))
			return;
		String text = textArea.getText();
		if (newLineAsRNBtn.getSelection()) {
			text = text.replace("\n", "\\n").replace("\r", "\\r")
					.replace("\r\n", "\\r\\n");
		}
		StringSelection stringSelection = new StringSelection(text);
		Clipboard clipboard = Toolkit.getDefaultToolkit()
				.getSystemClipboard();
		clipboard.setContents(stringSelection, null);
		updateLinkStr(true);
	}