-
Notifications
You must be signed in to change notification settings - Fork 18
/
AssetItem.java
57 lines (44 loc) · 1.2 KB
/
AssetItem.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
/*******************************************************************************
* 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;
public class AssetItem {
private File file;
private AssetType assetType;
public AssetItem(File file, AssetType assetType) {
this.file = file;
this.assetType = assetType;
}
public File getFile() {
return file;
}
public AssetType getAssetType() {
return assetType;
}
/**
* Convenient method to get the name.
*
* @return {String}
*/
public String getName() {
return file.getName();
}
/**
* Convenient method to get the description.
*
* @return {String}
*/
public String getDescription() {
return assetType.getDescription();
}
}