@Override
	public void adjust() {
		boolean enable = false;
		Component comp = getFocusOwner();
		if (comp instanceof JTextComponent && comp.isEnabled()) {
			JTextComponent textComp = (JTextComponent) comp;
			enable = textComp.getSelectionEnd() - textComp.getSelectionStart() != textComp.getDocument().getLength();
		} else {
			SelectAllCapable selectable = getTarget(SelectAllCapable.class);
			if (selectable != null) {
				enable = selectable.canSelectAll();
			}
		}
		setEnabled(enable);
	}