Ich habe meinen eigenen Editor implementiert und eine Code-Vervollständigungsfunktion hinzugefügt. Mein Inhalt Assistent wird in der Quelle-Viewer-Konfiguration wie folgt registriert:Wie Sie das Dokumentations-Popup von content assist in Eclipse RCP implementieren
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
if (assistant == null) {
assistant = new ContentAssistant();
assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
assistant.setContentAssistProcessor(getMyAssistProcessor(),
MyPartitionScanner.DESIRED_PARTITION_FOR_MY_ASSISTANCE);
assistant.enableAutoActivation(true);
assistant.setAutoActivationDelay(500);
assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
}
return assistant;
}
Wenn ich Ctrl +SPACE innerhalb der gewünschten Partition drücken, die Fertigstellung Pop-up angezeigt wird, und wie erwartet funktioniert.
Und hier ist meine Frage .. Wie implementiere/registriere ich ein Dokumentations-Popup, das neben dem Fertigstellungs-Popup erscheint? (Zum Beispiel in Java-Editor)