01: package org.jvnet.substance.themepack;
02:
03: import java.util.HashSet;
04: import java.util.Set;
05:
06: import org.jvnet.substance.plugin.SubstanceThemePlugin;
07: import org.jvnet.substance.theme.SubstanceTheme;
08: import org.jvnet.substance.theme.ThemeInfo;
09: import org.jvnet.substance.themepack.theme.ExtraBelizeTheme;
10: import org.jvnet.substance.themepack.theme.ExtraBloodyMoonTheme;
11: import org.jvnet.substance.themepack.theme.ExtraBlueYonderTheme;
12: import org.jvnet.substance.themepack.theme.ExtraBrickWallTheme;
13: import org.jvnet.substance.themepack.theme.ExtraBrownVelvetTheme;
14: import org.jvnet.substance.themepack.theme.ExtraCobaltSteelTheme;
15: import org.jvnet.substance.themepack.theme.ExtraDesertMarsTheme;
16: import org.jvnet.substance.themepack.theme.ExtraEarthFrescoTheme;
17: import org.jvnet.substance.themepack.theme.ExtraEmeraldGrassTheme;
18: import org.jvnet.substance.themepack.theme.ExtraFauveMauveTheme;
19: import org.jvnet.substance.themepack.theme.ExtraGooseberryJungleTheme;
20: import org.jvnet.substance.themepack.theme.ExtraGreenPearlTheme;
21: import org.jvnet.substance.themepack.theme.ExtraMahoganyTheme;
22: import org.jvnet.substance.themepack.theme.ExtraOrchidAlloyTheme;
23: import org.jvnet.substance.themepack.theme.ExtraPeachTheme;
24: import org.jvnet.substance.themepack.theme.ExtraPlacidPinkTheme;
25: import org.jvnet.substance.themepack.theme.ExtraSkyHighTheme;
26: import org.jvnet.substance.themepack.theme.ExtraSpringLeafTheme;
27: import org.jvnet.substance.themepack.theme.ExtraTurquoiseLakeTheme;
28: import org.jvnet.substance.themepack.theme.ExtraWildPineTheme;
29: import org.jvnet.substance.themepack.theme.ExtraYellowMarineTheme;
30:
31: public class ThemePlugin implements SubstanceThemePlugin {
32:
33: private static ThemeInfo create(SubstanceTheme theme,
34: boolean isDefault) {
35: ThemeInfo result = new ThemeInfo(theme.getDisplayName(), theme
36: .getClass().getName(), theme.getKind());
37: result.setDefault(isDefault);
38: return result;
39: }
40:
41: public Set<ThemeInfo> getThemes() {
42: Set<ThemeInfo> result = new HashSet<ThemeInfo>();
43: result.add(create(new ExtraMahoganyTheme(), false));
44: result.add(create(new ExtraBrownVelvetTheme(), false));
45: result.add(create(new ExtraPeachTheme(), false));
46: result.add(create(new ExtraTurquoiseLakeTheme(), false));
47: result.add(create(new ExtraEmeraldGrassTheme(), false));
48: result.add(create(new ExtraBelizeTheme(), false));
49: result.add(create(new ExtraBloodyMoonTheme(), false));
50: result.add(create(new ExtraBlueYonderTheme(), false));
51: result.add(create(new ExtraBrickWallTheme(), false));
52: result.add(create(new ExtraCobaltSteelTheme(), false));
53: result.add(create(new ExtraDesertMarsTheme(), false));
54: result.add(create(new ExtraEarthFrescoTheme(), false));
55: result.add(create(new ExtraFauveMauveTheme(), false));
56: result.add(create(new ExtraGooseberryJungleTheme(), false));
57: result.add(create(new ExtraGreenPearlTheme(), false));
58: result.add(create(new ExtraOrchidAlloyTheme(), false));
59: result.add(create(new ExtraPlacidPinkTheme(), false));
60: result.add(create(new ExtraSkyHighTheme(), false));
61: result.add(create(new ExtraSpringLeafTheme(), false));
62: result.add(create(new ExtraWildPineTheme(), false));
63: result.add(create(new ExtraYellowMarineTheme(), false));
64: return result;
65: }
66:
67: public String getDefaultThemeClassName() {
68: return null;
69: }
70: }
|