KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > ide > filesystem > FileSystemConfiguration


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui.internal.ide.filesystem;
13
14 import org.eclipse.ui.ide.fileSystem.FileSystemContributor;
15
16 /**
17  * FileSystemContribution is the representation of the configuration element
18  * defined by
19  *
20  * @since 3.2
21  *
22  */

23 public class FileSystemConfiguration {
24
25     String JavaDoc label;
26
27     FileSystemContributor contributor;
28
29     private String JavaDoc scheme;
30
31
32     /**
33      * Create a new FileSystemConfiguration with the defined
34      * contributor and userLabel for the supplied scheme.
35      * @param name
36      * @param declaredContributor
37      * @param fileSystem
38      */

39     public FileSystemConfiguration(String JavaDoc name, FileSystemContributor declaredContributor, String JavaDoc fileSystem) {
40         label = name;
41         contributor = declaredContributor;
42         scheme = fileSystem;
43     }
44
45     /**
46      * Return the huuman readable label for the receiver.
47      * @return String
48      */

49     public String JavaDoc getLabel() {
50         return label;
51     }
52
53     /**
54      * Return the contributor for the receiver.
55      * @return FileSystemContributor
56      */

57     public FileSystemContributor getContributor() {
58         return contributor;
59     }
60
61     /**
62      * Return the filesystem scheme for the receiver.
63      * @return Returns the scheme.
64      */

65     public String JavaDoc getScheme() {
66         return scheme;
67     }
68
69 }
70
Popular Tags