KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > sourcelookup > containers > FolderSourceContainer


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

11 package org.eclipse.debug.core.sourcelookup.containers;
12
13 import org.eclipse.core.resources.IContainer;
14 import org.eclipse.debug.core.DebugPlugin;
15 import org.eclipse.debug.core.sourcelookup.ISourceContainerType;
16
17 /**
18  * A folder in the workspace.
19  * <p>
20  * Clients may instantiate this class. This class is not intended to
21  * be subclassed.
22  * </p>
23  * @since 3.0
24  */

25 public class FolderSourceContainer extends ContainerSourceContainer {
26
27     /**
28      * Unique identifier for the folder source container type
29      * (value <code>org.eclipse.debug.core.containerType.folder</code>).
30      */

31     public static final String JavaDoc TYPE_ID = DebugPlugin.getUniqueIdentifier() + ".containerType.folder"; //$NON-NLS-1$
32

33
34     /**
35      * Constructs a source container on the given folder.
36      *
37      * @param folder the folder to search for source in
38      * @param subfolders whether to search nested folders
39      */

40     public FolderSourceContainer(IContainer folder, boolean subfolders) {
41         super(folder, subfolders);
42     }
43     
44     /* (non-Javadoc)
45      * @see org.eclipse.debug.core.sourcelookup.ISourceContainer#getType()
46      */

47     public ISourceContainerType getType() {
48         return getSourceContainerType(TYPE_ID);
49     }
50     
51 }
52
Popular Tags