Search in sources :

Example 6 with LanguageServerWorkingCopyOwner

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

the class CodeActionHandlerTest method setup.

@Override
@Before
public void setup() throws Exception {
    importProjects("eclipse/hello");
    project = WorkspaceHelper.getProject("hello");
    wcOwner = new LanguageServerWorkingCopyOwner(connection);
    server = new JDTLanguageServer(projectsManager, this.preferenceManager);
}
Also used : LanguageServerWorkingCopyOwner(org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner) Before(org.junit.Before)

Example 7 with LanguageServerWorkingCopyOwner

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

the class GenerateAccessorsActionTest method setUp.

@Before
public void setUp() throws Exception {
    fJavaProject = newEmptyProject();
    fRoot = fJavaProject.findPackageFragmentRoot(fJavaProject.getPath().append("src"));
    assertNotNull(fRoot);
    fPackageP = fRoot.createPackageFragment("p", true, null);
    wcOwner = new LanguageServerWorkingCopyOwner(connection);
    server = new JDTLanguageServer(projectsManager, this.preferenceManager);
}
Also used : LanguageServerWorkingCopyOwner(org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner) Before(org.junit.Before)

Example 8 with LanguageServerWorkingCopyOwner

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

the class GenerateConstructorsActionTest method setUp.

@Before
public void setUp() throws Exception {
    fJavaProject = newEmptyProject();
    fRoot = fJavaProject.findPackageFragmentRoot(fJavaProject.getPath().append("src"));
    assertNotNull(fRoot);
    fPackageP = fRoot.createPackageFragment("p", true, null);
    wcOwner = new LanguageServerWorkingCopyOwner(connection);
    server = new JDTLanguageServer(projectsManager, this.preferenceManager);
}
Also used : LanguageServerWorkingCopyOwner(org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner) Before(org.junit.Before)

Example 9 with LanguageServerWorkingCopyOwner

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

the class OverrideMethodsActionTest method setUp.

@Before
public void setUp() throws Exception {
    fJavaProject = newEmptyProject();
    fRoot = fJavaProject.findPackageFragmentRoot(fJavaProject.getPath().append("src"));
    assertNotNull(fRoot);
    fPackageP = fRoot.createPackageFragment("p", true, null);
    wcOwner = new LanguageServerWorkingCopyOwner(connection);
    server = new JDTLanguageServer(projectsManager, this.preferenceManager);
}
Also used : LanguageServerWorkingCopyOwner(org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner) Before(org.junit.Before)

Example 10 with LanguageServerWorkingCopyOwner

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

the class HashCodeEqualsActionTest method setUp.

@Before
public void setUp() throws Exception {
    fJavaProject = newEmptyProject();
    fRoot = fJavaProject.findPackageFragmentRoot(fJavaProject.getPath().append("src"));
    assertNotNull(fRoot);
    fPackageP = fRoot.createPackageFragment("p", true, null);
    wcOwner = new LanguageServerWorkingCopyOwner(connection);
    server = new JDTLanguageServer(projectsManager, this.preferenceManager);
}
Also used : LanguageServerWorkingCopyOwner(org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner) Before(org.junit.Before)

Aggregations

LanguageServerWorkingCopyOwner (org.eclipse.jdt.ls.core.internal.LanguageServerWorkingCopyOwner)10 Before (org.junit.Before)9 IJavaProject (org.eclipse.jdt.core.IJavaProject)1 IPackageFragmentRoot (org.eclipse.jdt.core.IPackageFragmentRoot)1