blob: 39c19f2aee20b3a8bd94fb05a8beb7d359e1066f (
plain) (
blame)
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
|
/*****************************************************************************
* Copyright (c) 2012 CEA LIST.
*
* 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:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.css.theme;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.swt.graphics.Image;
public class Theme {
private String label;
private Image icon;
private final String id;
private final List<URL> styleSheets;
public Theme(String id) {
this.id = id;
this.styleSheets = new LinkedList<URL>();
}
public String getLabel() {
return label == null || "".equals(label) ? id : label;
}
public void setLabel(String label) {
this.label = label;
}
public Image getIcon() {
return icon;
}
public void setIcon(Image icon) {
this.icon = icon;
}
public String getId() {
return id;
}
public void addStyleSheet(URL url) {
styleSheets.add(url);
}
public List<URL> getStyleSheets() {
return styleSheets;
}
}
|