mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
+6
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user