@Override
	public void adjust() {
		boolean enable = false;
		Component comp = getFocusOwner();
		if (comp instanceof JTextComponent && comp.isEnabled()) {
			JTextComponent textComp = (JTextComponent) comp;
			if (textComp.isEditable()) {
				try {
					enable = comp.getToolkit().getSystemClipboard().isDataFlavorAvailable(DataFlavor.stringFlavor);
				} catch (Exception exception) {
					// Ignore.
				}
			}
		} else {
			Pastable pastable = getTarget(Pastable.class);
			if (pastable != null) {
				enable = pastable.canPasteSelection();
			}
		}
		setEnabled(enable);
	}