use of org.eclipse.che.ide.api.editor.codeassist.HasCompletionInformation in project che by eclipse.
the class QuickDocumentationAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
EditorPartPresenter activeEditor = editorAgent.getActiveEditor();
if (activeEditor == null) {
return;
}
if (activeEditor instanceof TextEditor && activeEditor instanceof HasCompletionInformation) {
if (((TextEditor) activeEditor).getEditorWidget().isCompletionProposalsShowing()) {
((HasCompletionInformation) activeEditor).showCompletionInformation();
return;
}
}
quickDocumentation.showDocumentation();
}
Aggregations