KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > localstore > TestingSupport


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.localstore;
12
13 import org.eclipse.core.runtime.IPath;
14
15 /**
16  * Provides special internal access to the workspace resource implementation.
17  * This class is to be used for testing purposes only.
18  *
19  * @since 2.1
20  */

21 public class TestingSupport {
22     /*
23      * Class cannot be instantiated.
24      */

25     private TestingSupport() {
26         // not allowed
27
}
28
29     /**
30      * Call HistoryStore.accept().
31      */

32     public static void accept(HistoryStore store, IPath path, IHistoryStoreVisitor visitor, boolean partialMatch) {
33         store.accept(path, visitor, partialMatch);
34     }
35     
36     /**
37      * Call HistoryStore.removeGarbage().
38      * @since 3.0
39      */

40     public static void removeGarbage(HistoryStore store) {
41         store.removeGarbage();
42     }
43 }
Popular Tags