### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.performance Index: src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java,v retrieving revision 1.48 diff -u -r1.48 FullSourceWorkspaceModelTests.java --- src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 27 Oct 2009 13:05:53 -0000 1.48 +++ src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceModelTests.java 2 Dec 2010 09:09:33 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -89,12 +89,13 @@ } static { -// TESTS_NAMES = new String[] { + TESTS_NAMES = new String[] { // "testPerfNameLookupFindKnownSecondaryType", // "testPerfNameLookupFindUnknownType", // "testPerfReconcile", // "testPerfSearchAllTypeNamesAndReconcile", -// }; + "testOpenProjects", + }; // TESTS_PREFIX = "testPerfReconcile"; } @@ -129,6 +130,7 @@ IProject bigProject = workspaceRoot.getProject(BIG_PROJECT_NAME); if (bigProject.exists()) { ENV.addProject(bigProject); + bigProject.open(null); } else { ENV.addProject(BIG_PROJECT_NAME); } @@ -246,10 +248,11 @@ // Print statistics if (TESTS_COUNT == 0) { - System.out.println("-------------------------------------"); - System.out.println("Model performance test statistics:"); +// System.out.println("-------------------------------------"); +// System.out.println("Model performance test statistics:"); // NumberFormat intFormat = NumberFormat.getIntegerInstance(); - System.out.println("-------------------------------------\n"); +// System.out.println("-------------------------------------\n"); +// ResourcesPlugin.getWorkspace().save(true/*full save*/, null/*no progress*/); } super.tearDown(); } @@ -1283,6 +1286,94 @@ } } +// https://bugs.eclipse.org/bugs/show_bug.cgi?id=323514 +public void testReopenSingleProject() throws CoreException { + tagAsSummary("Reopen a single project in a workspace", false); // do NOT put in fingerprint + + // First close all Eclipse projects + long startTime = 0; + if (PRINT) { + System.out.print("Close all Eclipse projects..."); + startTime = System.currentTimeMillis(); + } + int length=ALL_PROJECTS.length; + for (int j=0; j