|
11 | 11 | import org.eclipse.cdt.core.model.CoreModel;
|
12 | 12 | import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
13 | 13 | import org.eclipse.cdt.core.settings.model.ICProjectDescription;
|
14 |
| -import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin; |
15 | 14 | import org.eclipse.core.resources.IFile;
|
16 | 15 | import org.eclipse.core.resources.IProject;
|
17 |
| -import org.eclipse.core.resources.IProjectDescription; |
18 |
| -import org.eclipse.core.resources.IWorkspace; |
19 |
| -import org.eclipse.core.resources.IWorkspaceDescription; |
20 |
| -import org.eclipse.core.resources.IWorkspaceRoot; |
21 | 16 | import org.eclipse.core.resources.IncrementalProjectBuilder;
|
22 |
| -import org.eclipse.core.resources.ResourcesPlugin; |
23 | 17 | import org.eclipse.core.runtime.CoreException;
|
24 | 18 | import org.eclipse.core.runtime.IPath;
|
25 | 19 | import org.eclipse.core.runtime.NullProgressMonitor;
|
@@ -160,7 +154,7 @@ public void issue687() throws Exception {
|
160 | 154 | }
|
161 | 155 |
|
162 | 156 | @Test
|
163 |
| - public void createCPPProject() throws Exception { |
| 157 | + public void create_CPP_based_Sloeber_Project() throws Exception { |
164 | 158 | BoardDescription unoBoardid = Arduino.uno().getBoardDescriptor();
|
165 | 159 |
|
166 | 160 | IProject theTestProject = null;
|
@@ -420,56 +414,8 @@ public void closeProjectRemovesPropertiesSloeber() throws Exception {
|
420 | 414 | }
|
421 | 415 | }
|
422 | 416 |
|
423 |
| - @Test |
424 |
| - public void closeProjectRemovesProperties() throws Exception { |
425 |
| - String DummyData = "a object"; |
426 |
| - String projectName = "closeProjectRemovesProperties"; |
427 |
| - QualifiedName qualifiedName = new QualifiedName("io.sloebertest", projectName); |
428 |
| - IWorkspace workspace = ResourcesPlugin.getWorkspace(); |
429 |
| - IWorkspaceRoot root = workspace.getRoot(); |
430 |
| - final IProject project = root.getProject("closeProjectRemovesProperties"); |
431 |
| - project.create(null); |
432 |
| - project.open(null); |
433 |
| - project.setSessionProperty(qualifiedName, DummyData); |
434 |
| - project.close(null); |
435 |
| - project.open(null); |
436 |
| - Object projData = project.getSessionProperty(qualifiedName); |
437 |
| - if (projData != null) { |
438 |
| - fail("non persistent projectdescription properties behave persistent during project close open"); |
439 |
| - } |
440 |
| - } |
441 |
| - |
442 |
| - @Test |
443 |
| - public void closeCDTProjectRemovesProperties() throws Exception { |
444 |
| - String DummyData = "a object"; |
445 |
| - String projectName = "closeCDTProjectRemovesProperties"; |
446 |
| - QualifiedName qualifiedName = new QualifiedName("io.sloebertest", projectName); |
447 |
| - |
448 |
| - // disable autobuild |
449 |
| - IWorkspace workspace = ResourcesPlugin.getWorkspace(); |
450 |
| - IWorkspaceDescription workspaceDesc = workspace.getDescription(); |
451 |
| - workspaceDesc.setAutoBuilding(false); |
452 |
| - workspace.setDescription(workspaceDesc); |
453 |
| - |
454 |
| - IWorkspaceRoot root = workspace.getRoot(); |
455 |
| - final IProject project = root.getProject(projectName); |
456 | 417 |
|
457 |
| - // create a eclipse project |
458 |
| - IProjectDescription description = workspace.newProjectDescription(projectName); |
459 | 418 |
|
460 |
| - // make the eclipse project a cdt project |
461 |
| - CCorePlugin.getDefault().createCProject(description, project, new NullProgressMonitor(), |
462 |
| - ManagedBuilderCorePlugin.MANAGED_MAKE_PROJECT_ID); |
463 |
| - |
464 |
| - project.open(null); |
465 |
| - project.setSessionProperty(qualifiedName, DummyData); |
466 |
| - project.close(null); |
467 |
| - project.open(null); |
468 |
| - Object projData = project.getSessionProperty(qualifiedName); |
469 |
| - if (projData != null) { |
470 |
| - fail("non persistent projectdescription properties behave persistent during project close open"); |
471 |
| - } |
472 |
| - } |
473 | 419 |
|
474 | 420 | /**
|
475 | 421 | * open and close a project should keep the compileDescription and
|
|
0 commit comments