Revision 34114 branches/v2_0_0_prep/extensions/extGeoDB/src/org/gvsig/geodb/ExtDB_Spatial.java
ExtDB_Spatial.java | ||
---|---|---|
42 | 42 |
*/ |
43 | 43 |
package org.gvsig.geodb; |
44 | 44 |
|
45 |
import org.gvsig.about.AboutManager; |
|
46 |
import org.gvsig.about.AboutParticipant; |
|
45 | 47 |
import org.gvsig.andami.plugins.Extension; |
46 | 48 |
import org.gvsig.app.ApplicationLocator; |
49 |
import org.gvsig.app.ApplicationManager; |
|
47 | 50 |
import org.gvsig.app.extension.AddLayer; |
48 | 51 |
import org.gvsig.geodb.vectorialdb.wizard.WizardDB; |
49 | 52 |
import org.gvsig.geodb.vectorialdb.wizard.WizardVectorialDB; |
... | ... | |
58 | 61 |
*/ |
59 | 62 |
public class ExtDB_Spatial extends Extension { |
60 | 63 |
|
61 |
// private DALDbLibrary dbLibrary; |
|
62 |
// private DBStoreLibrary dbStoreLibrary; |
|
63 |
// private JDBCLibrary jdbcLibrary; |
|
64 |
// private PostgreSQLLibrary posgresqlLibrary; |
|
65 |
// private MySQLLibrary mysqlLibrary; |
|
66 |
|
|
67 | 64 |
public void initialize() { |
68 |
// dbLibrary = new DALDbLibrary(); |
|
69 |
// dbStoreLibrary = new DBStoreLibrary(); |
|
70 |
// jdbcLibrary = new JDBCLibrary(); |
|
71 |
// posgresqlLibrary = new PostgreSQLLibrary(); |
|
72 |
// mysqlLibrary = new MySQLLibrary(); |
|
73 |
// |
|
74 |
// |
|
75 |
// dbLibrary.initialize(); |
|
76 |
// dbStoreLibrary.initialize(); |
|
77 |
// jdbcLibrary.initialize(); |
|
78 |
// posgresqlLibrary.initialize(); |
|
79 |
// mysqlLibrary.initialize(); |
|
80 |
|
|
81 |
|
|
65 |
//do nothing |
|
82 | 66 |
} |
83 | 67 |
|
84 | 68 |
public void execute(String actionCommand) { |
69 |
//do nothing |
|
85 | 70 |
} |
86 | 71 |
|
87 | 72 |
public boolean isEnabled() { |
... | ... | |
100 | 85 |
@Override |
101 | 86 |
public void postInitialize() { |
102 | 87 |
super.postInitialize(); |
88 |
addAboutInfo(); |
|
103 | 89 |
|
104 |
// dbLibrary.postInitialize(); |
|
105 |
// dbStoreLibrary.postInitialize(); |
|
106 |
// jdbcLibrary.postInitialize(); |
|
107 |
// posgresqlLibrary.postInitialize(); |
|
108 |
// mysqlLibrary.postInitialize(); |
|
109 |
|
|
110 | 90 |
ApplicationLocator.getManager().registerAddTableWizard("DB", |
111 | 91 |
"DB Tables", WizardDB.class); |
112 | 92 |
AddLayer.addWizard(WizardVectorialDB.class); |
113 | 93 |
} |
94 |
|
|
95 |
private void addAboutInfo() { |
|
96 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
97 |
|
|
98 |
AboutManager about = application.getAbout(); |
|
99 |
about.addDeveloper("PRODEVELOP", getClass().getClassLoader() |
|
100 |
.getResource("prodevelop.html"), 2); |
|
101 |
|
|
102 |
AboutParticipant participant = about.getDeveloper("PRODEVELOP"); |
|
103 |
participant.addContribution( |
|
104 |
"GeoDB", |
|
105 |
"Soporte para pool de conexiones con BBDD", |
|
106 |
2006,1,1, |
|
107 |
2007,12,31 |
|
108 |
); |
|
109 |
} |
|
110 |
|
|
114 | 111 |
} |
Also available in: Unified diff