IDEA-66737 Copy text from quick doc popup doesn't work

'Copy quick doc' action is available only when quick doc is open. Reason: not to clash with standard editor's 'copy action'
This commit is contained in:
Denis Zhdanov
2011-03-29 17:52:05 +04:00
parent faa54f2d7a
commit 02d71b0230
@@ -43,4 +43,10 @@ public class CopyQuickDocAction extends AnAction implements DumbAware, HintManag
CopyPasteManager.getInstance().setContents(new StringSelection(selected));
}
@Override
public void update(AnActionEvent e) {
String selected = e.getData(DocumentationManager.SELECTED_QUICK_DOC_TEXT);
e.getPresentation().setEnabled(selected != null && !selected.isEmpty());
}
}