Search in sources :

Example 6 with DocumentHandle

use of org.eclipse.che.ide.api.editor.document.DocumentHandle in project che by eclipse.

the class OrionEditorInit method init.

/**
     * Initialize the text editor.
     *
     * @param document to initialise with
     */
public void init(Document document) {
    DocumentHandle documentHandle = document.getDocumentHandle();
    configurePartitioner(documentHandle);
    configureReconciler(documentHandle);
    configureAnnotationModel(documentHandle);
    configureCodeAssist(documentHandle);
    configureChangeInterceptors(documentHandle);
    configureFormatter(textEditor);
    configureSignatureHelp(textEditor);
    addQuickAssistKeyBinding();
}
Also used : DocumentHandle(org.eclipse.che.ide.api.editor.document.DocumentHandle)

Aggregations

DocumentHandle (org.eclipse.che.ide.api.editor.document.DocumentHandle)6 Document (org.eclipse.che.ide.api.editor.document.Document)2 TextPosition (org.eclipse.che.ide.api.editor.text.TextPosition)2 Test (org.junit.Test)2 HandlerRegistration (com.google.web.bindery.event.shared.HandlerRegistration)1 RangeDTO (org.eclipse.che.api.languageserver.shared.lsapi.RangeDTO)1 Position (org.eclipse.che.ide.api.editor.text.Position)1 File (org.eclipse.che.ide.api.resources.File)1 VirtualFile (org.eclipse.che.ide.api.resources.VirtualFile)1 Matchers.anyString (org.mockito.Matchers.anyString)1