Revision 44533 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/ExtDB_Spatial.java
ExtDB_Spatial.java | ||
---|---|---|
22 | 22 |
*/ |
23 | 23 |
package org.gvsig.geodb; |
24 | 24 |
|
25 |
import org.gvsig.about.AboutManager; |
|
26 |
import org.gvsig.about.AboutParticipant; |
|
27 | 25 |
import org.gvsig.andami.IconThemeHelper; |
28 | 26 |
import org.gvsig.andami.PluginsLocator; |
29 | 27 |
import org.gvsig.andami.PluginsManager; |
... | ... | |
33 | 31 |
import org.gvsig.app.extension.AddLayer; |
34 | 32 |
import org.gvsig.fmap.dal.DALLocator; |
35 | 33 |
import org.gvsig.fmap.dal.DataManager; |
36 |
import org.gvsig.geodb.vectorialdb.wizard.WizardDB; |
|
37 |
import org.gvsig.geodb.vectorialdb.wizard.WizardVectorialDB; |
|
38 | 34 |
import org.gvsig.tools.dynobject.DynObject; |
39 | 35 |
import org.gvsig.fmap.dal.DataServerExplorerPool; |
40 | 36 |
|
... | ... | |
46 | 42 |
*/ |
47 | 43 |
public class ExtDB_Spatial extends Extension { |
48 | 44 |
|
45 |
@Override |
|
49 | 46 |
public void initialize() { |
50 | 47 |
IconThemeHelper.registerIcon("geodb", "geodb-connection-add", this); |
51 | 48 |
IconThemeHelper.registerIcon("geodb", "geodb-advanced-properties", this); |
... | ... | |
62 | 59 |
|
63 | 60 |
} |
64 | 61 |
|
62 |
@Override |
|
65 | 63 |
public void execute(String actionCommand) { |
66 | 64 |
//do nothing |
67 | 65 |
} |
68 | 66 |
|
67 |
@Override |
|
69 | 68 |
public boolean isEnabled() { |
70 | 69 |
return isVisible(); |
71 |
|
|
72 |
// return true; |
|
73 | 70 |
} |
74 | 71 |
|
72 |
@Override |
|
75 | 73 |
public boolean isVisible() { |
76 | 74 |
return false; |
77 | 75 |
} |
... | ... | |
79 | 77 |
@Override |
80 | 78 |
public void postInitialize() { |
81 | 79 |
super.postInitialize(); |
82 |
addAboutInfo(); |
|
83 | 80 |
|
84 |
ApplicationLocator.getManager().registerAddTableWizard("DB", |
|
85 |
"DB Tables", WizardDB.class); |
|
86 |
AddLayer.addWizard(WizardVectorialDB.class); |
|
87 |
} |
|
81 |
// ApplicationLocator.getManager().registerAddTableWizard("DB","DB Tables", WizardDB.class); |
|
82 |
// AddLayer.addWizard(WizardVectorialDB.class); |
|
88 | 83 |
|
89 |
private void addAboutInfo() {
|
|
90 |
ApplicationManager application = ApplicationLocator.getManager();
|
|
84 |
ApplicationLocator.getManager().registerAddTableWizard("DB","DB Tables", WizardDBTabular.class);
|
|
85 |
AddLayer.addWizard(WizardDBVectorial.class);
|
|
91 | 86 |
|
92 |
// AboutManager about = application.getAbout(); |
|
93 |
// about.addDeveloper("PRODEVELOP", getClass().getClassLoader() |
|
94 |
// .getResource("about/prodevelop.html"), 2); |
|
95 |
// |
|
96 |
// AboutParticipant participant = about.getDeveloper("PRODEVELOP"); |
|
97 |
// participant.addContribution( |
|
98 |
// "GeoDB", |
|
99 |
// "Soporte para pool de conexiones con BBDD", |
|
100 |
// 2006, 1, 1, |
|
101 |
// 2007, 12, 31 |
|
102 |
// ); |
|
103 | 87 |
} |
104 | 88 |
|
105 | 89 |
} |
Also available in: Unified diff