01: /* This file is *not* under GPL or any other public license
02: * Copyright 2005 Ugo Taddei
03: */
04: package de.latlon.deejump.plugin.manager;
05:
06: import java.util.List;
07:
08: import com.vividsolutions.jump.workbench.plugin.PlugInContext;
09:
10: /* renamed into ExtensionModel, as JUMP tries to configure() all classes found, which end with "Extension"*/
11: public class ExtensionWrapper {
12:
13: private String name;
14: private String title;
15: private String author;
16: private String version;
17: private String jumpVersion;
18: private String category;
19: private String description;
20: private List resourcesList;
21:
22: private boolean installed = false;
23:
24: public ExtensionWrapper(String name, String title, String author,
25: String version, String jumpVersion, String category,
26: String description, List resourcesList) {
27: this .name = name;
28: this .title = title;
29: this .author = author;
30: this .version = version;
31: this .jumpVersion = jumpVersion;
32: this .category = category;
33: this .description = description;
34: this .resourcesList = resourcesList;
35: }
36:
37: public void configure(PlugInContext context) throws Exception {
38: //dummy
39: }
40:
41: public String getAuthor() {
42: return author;
43: }
44:
45: public String getCategory() {
46: return category;
47: }
48:
49: public String getDescription() {
50: return description;
51: }
52:
53: public String getJumpVersion() {
54: return jumpVersion;
55: }
56:
57: public String getName() {
58: return name;
59: }
60:
61: public List getResourceList() {
62: return resourcesList;
63: }
64:
65: public String getTitle() {
66: return title;
67: }
68:
69: public String getVersion() {
70: return version;
71: }
72:
73: public String toString() {
74: StringBuffer sb = new StringBuffer();
75: sb.append("CataloguedExtension { ").append(name).append(", ")
76: .append(title).append(", ").append(author).append(", ")
77: .append("version: ").append(version).append(", ")
78: .append("JUMP version: ").append(jumpVersion).append(
79: ", ").append("description: '").append(
80: description).append("', ").append(
81: "resources = ").append(resourcesList);
82: sb.append("}");
83:
84: return sb.toString();
85:
86: }
87:
88: public boolean isInstalled() {
89: return installed;
90: }
91:
92: public void setInstalled(boolean selected) {
93: this.installed = selected;
94: }
95:
96: }
|