Search in sources :

Example 1 with SignatureHelpProvider

use of org.eclipse.che.ide.api.editor.signature.SignatureHelpProvider in project che by eclipse.

the class OrionEditorInit method uninstall.

public void uninstall() {
    Reconciler reconciler = configuration.getReconciler();
    if (reconciler != null) {
        reconciler.uninstall();
    }
    SignatureHelpProvider signatureHelpProvider = configuration.getSignatureHelpProvider();
    if (signatureHelpProvider != null) {
        signatureHelpProvider.uninstall();
    }
}
Also used : Reconciler(org.eclipse.che.ide.api.editor.reconciler.Reconciler) SignatureHelpProvider(org.eclipse.che.ide.api.editor.signature.SignatureHelpProvider)

Example 2 with SignatureHelpProvider

use of org.eclipse.che.ide.api.editor.signature.SignatureHelpProvider in project che by eclipse.

the class OrionEditorPresenter method showSignatureHelp.

private void showSignatureHelp() {
    //TODO XXX
    SignatureHelpProvider signatureHelpProvider = getConfiguration().getSignatureHelpProvider();
    if (document != null && signatureHelpProvider != null) {
        Promise<Optional<SignatureHelp>> promise = signatureHelpProvider.signatureHelp(document, getCursorOffset());
        PositionConverter.PixelCoordinates coordinates = getPositionConverter().offsetToPixel(getCursorOffset());
        signatureHelpView.showSignature(promise, coordinates.getX(), coordinates.getY() - editorWidget.getTextView().getLineHeight());
    }
}
Also used : Optional(com.google.common.base.Optional) SignatureHelpProvider(org.eclipse.che.ide.api.editor.signature.SignatureHelpProvider) PositionConverter(org.eclipse.che.ide.api.editor.position.PositionConverter)

Aggregations

SignatureHelpProvider (org.eclipse.che.ide.api.editor.signature.SignatureHelpProvider)2 Optional (com.google.common.base.Optional)1 PositionConverter (org.eclipse.che.ide.api.editor.position.PositionConverter)1 Reconciler (org.eclipse.che.ide.api.editor.reconciler.Reconciler)1