use of org.eclipse.jdt.ls.core.internal.JavaClientConnection 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.JavaClientConnection in project eclipse.jdt.ls by eclipse.
the class WorkspaceEventHandlerTest method setup.
@Before
public void setup() throws Exception {
sharedASTProvider = CoreASTProvider.getInstance();
sharedASTProvider.disposeAST();
javaClient = new JavaClientConnection(client);
lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, false);
handler = new WorkspaceDiagnosticsHandler(javaClient, projectsManager, preferenceManager.getClientPreferences());
handler.addResourceChangeListener();
}
use of org.eclipse.jdt.ls.core.internal.JavaClientConnection in project eclipse.jdt.ls by eclipse.
the class NonProjectFixTest method setup.
@Before
public void setup() throws Exception {
mockPreferences();
javaClient = new JavaClientConnection(client);
JavaLanguageServerPlugin.getNonProjectDiagnosticsState().setGlobalErrorLevel(true);
}
use of org.eclipse.jdt.ls.core.internal.JavaClientConnection in project eclipse.jdt.ls by eclipse.
the class DocumentLifeCycleHandlerTest method setup.
@Before
public void setup() throws Exception {
mockPreferences();
sharedASTProvider = CoreASTProvider.getInstance();
sharedASTProvider.disposeAST();
// sharedASTProvider.clearASTCreationCount();
javaClient = new JavaClientConnection(client);
lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, false);
JavaLanguageServerPlugin.getNonProjectDiagnosticsState().setGlobalErrorLevel(true);
}
use of org.eclipse.jdt.ls.core.internal.JavaClientConnection in project eclipse.jdt.ls by eclipse.
the class CompletionHandlerTest method setUp.
@Before
public void setUp() {
mockLSP3Client();
CoreASTProvider sharedASTProvider = CoreASTProvider.getInstance();
sharedASTProvider.disposeAST();
// sharedASTProvider.clearASTCreationCount();
javaClient = new JavaClientConnection(client);
lifeCycleHandler = new DocumentLifeCycleHandler(javaClient, preferenceManager, projectsManager, true);
}
Aggregations