@Override
	public void adjust() {
		boolean enable = false;
		Component comp = getFocusOwner();
		if (comp instanceof JTextComponent) {
			JTextComponent textComp = (JTextComponent) comp;
			enable = textComp.getSelectionStart() != textComp.getSelectionEnd();
		} else {
			Copyable copyable = getTarget(Copyable.class);
			if (copyable != null) {
				enable = copyable.canCopySelection();
			}
		}
		setEnabled(enable);
	}