-
Notifications
You must be signed in to change notification settings - Fork 18
/
AssetType.java
76 lines (62 loc) · 1.79 KB
/
AssetType.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*******************************************************************************
* Copyright (c) 2020 Christoph Läubrich.
*
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christoph Läubrich - initial API and implementation
* Philip Wenig - initial API and implementation
*******************************************************************************/
package org.eclipse.chemclipse.rcp.app.assets;
import java.io.File;
import org.eclipse.chemclipse.logging.support.Settings;
public enum AssetType {
CONFIGURATION("Configuration", ".cfg", Settings.getSystemConfigDirectory(), "Service Configuration File"), //
METHOD("Process Method", ".ocm", Settings.getSystemMethodDirectory(), "Process Method File"), //
PLUGIN("Plugin", ".jar", Settings.getSystemPluginDirectory(), "Plugin Extension");
private String label;
private String extension;
private File directory;
private String description;
private AssetType(String label, String extension, File directory, String description) {
this.label = label;
this.extension = extension;
this.directory = directory;
this.description = description;
}
/**
* Returns the label.
*
* @return {String}
*/
public String getLabel() {
return label;
}
/**
* Returns the file extension.
*
* @return {String}
*/
public String getExtension() {
return extension;
}
/**
* Return the installation directory.
*
* @return {File}
*/
public File getDirectory() {
return directory;
}
/**
* Returns the description.
*
* @return {String}
*/
public String getDescription() {
return description;
}
}