Search in sources :

Example 1 with DocumentLifeCycleHandler

use of org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler in project eclipse.jdt.ls by eclipse.

the class DiagnosticsCommandTest method setup.

@Before
public void setup() throws Exception {
    mockPreferences();
    javaClient = new JavaClientConnection(client);
    lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, false);
    mockJDTLanguageServer();
    originalGlobalErrorLevel = JavaLanguageServerPlugin.getNonProjectDiagnosticsState().getGlobalErrorLevel();
    JavaLanguageServerPlugin.getNonProjectDiagnosticsState().setGlobalErrorLevel(ErrorLevel.SYNTAX_ERROR);
}
Also used : DocumentLifeCycleHandler(org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler) JavaClientConnection(org.eclipse.jdt.ls.core.internal.JavaClientConnection) Before(org.junit.Before)

Example 2 with DocumentLifeCycleHandler

use of org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler in project eclipse.jdt.ls by eclipse.

the class MavenClasspathTest method setup.

@Before
public void setup() throws Exception {
    sharedASTProvider = CoreASTProvider.getInstance();
    sharedASTProvider.disposeAST();
    // sharedASTProvider.clearASTCreationCount();
    javaClient = new JavaClientConnection(client);
    lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, false);
}
Also used : DocumentLifeCycleHandler(org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler) JavaClientConnection(org.eclipse.jdt.ls.core.internal.JavaClientConnection) Before(org.junit.Before)

Example 3 with DocumentLifeCycleHandler

use of org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler in project eclipse.jdt.ls by eclipse.

the class InvisibleProjectPreferenceChangeListenerTest method setup.

@Before
public void setup() throws Exception {
    javaClient = new JavaClientConnection(client);
    lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, false);
    mockJDTLanguageServer();
}
Also used : DocumentLifeCycleHandler(org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler) JavaClientConnection(org.eclipse.jdt.ls.core.internal.JavaClientConnection) Before(org.junit.Before)

Aggregations

JavaClientConnection (org.eclipse.jdt.ls.core.internal.JavaClientConnection)3 DocumentLifeCycleHandler (org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler)3 Before (org.junit.Before)3