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);
}
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);
}
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();
}
Aggregations