01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.ui.internal.ide.filesystem;
11:
12: import org.eclipse.ui.ide.fileSystem.FileSystemContributor;
13:
14: /**
15: * FileSystemContribution is the representation of the configuration element
16: * defined by
17: *
18: * @since 3.2
19: *
20: */
21: public class FileSystemConfiguration {
22:
23: String label;
24:
25: FileSystemContributor contributor;
26:
27: private String scheme;
28:
29: /**
30: * Create a new FileSystemConfiguration with the defined
31: * contributor and userLabel for the supplied scheme.
32: * @param name
33: * @param declaredContributor
34: * @param fileSystem
35: */
36: public FileSystemConfiguration(String name,
37: FileSystemContributor declaredContributor, String fileSystem) {
38: label = name;
39: contributor = declaredContributor;
40: scheme = fileSystem;
41: }
42:
43: /**
44: * Return the huuman readable label for the receiver.
45: * @return String
46: */
47: public String getLabel() {
48: return label;
49: }
50:
51: /**
52: * Return the contributor for the receiver.
53: * @return FileSystemContributor
54: */
55: public FileSystemContributor getContributor() {
56: return contributor;
57: }
58:
59: /**
60: * Return the filesystem scheme for the receiver.
61: * @return Returns the scheme.
62: */
63: public String getScheme() {
64: return scheme;
65: }
66:
67: }
|