Revision 16 org.gvsig.oracle/trunk/org.gvsig.oracle/src/org/gvsig/oracle/extension/NewOracleTableExtension.java
NewOracleTableExtension.java | ||
---|---|---|
3 | 3 |
import javax.swing.ImageIcon; |
4 | 4 |
|
5 | 5 |
import org.apache.log4j.Logger; |
6 |
|
|
7 |
import org.gvsig.andami.IconThemeHelper; |
|
6 | 8 |
import org.gvsig.andami.PluginServices; |
7 | 9 |
import org.gvsig.andami.plugins.Extension; |
8 | 10 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
9 | 11 |
import org.gvsig.andami.ui.wizard.WizardAndami; |
10 | 12 |
import org.gvsig.app.project.documents.view.gui.IView; |
11 |
import org.gvsig.fmap.dal.DataStore; |
|
12 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
13 | 13 |
import org.gvsig.fmap.mapcontext.MapContext; |
14 | 14 |
import org.gvsig.oracle.gui.NewOracleTableWizard; |
15 | 15 |
import org.gvsig.oracle.gui.RepeatedChooseGeometryTypePanel; |
16 | 16 |
import org.gvsig.oracle.gui.RepeatedFieldDefinitionPanel; |
17 |
import org.gvsig.oracle.utils.OraEpsgTableLoader; |
|
18 | 17 |
|
19 | 18 |
/** |
20 | 19 |
* Extension to build a new oracle table |
... | ... | |
34 | 33 |
public void initialize() { |
35 | 34 |
// Validate if Oracle Jar is present |
36 | 35 |
ORACLE_JAR_PRESENT = isOracleJarPresent(); |
36 |
|
|
37 |
IconThemeHelper.registerIcon("oracle", "connection", this); |
|
38 |
IconThemeHelper.registerIcon("oracle", "new-oracle-image", this); |
|
39 |
IconThemeHelper.registerIcon("oracle", "oracle", this); |
|
37 | 40 |
} |
38 | 41 |
|
39 | 42 |
|
... | ... | |
46 | 49 |
public void execute(String actionCommand) { |
47 | 50 |
|
48 | 51 |
// NEW ORACLE TABLE |
49 |
if (actionCommand.compareToIgnoreCase("NEW_ORACLE_TABLE") == 0) {
|
|
52 |
if (actionCommand.compareToIgnoreCase("new-layer-oracle") == 0) {
|
|
50 | 53 |
|
51 | 54 |
IWindow w = PluginServices.getMDIManager().getActiveWindow(); |
52 | 55 |
if (w instanceof IView) { |
53 | 56 |
try { |
54 |
String _file = createResourceUrl( |
|
55 |
"images/new_geodb_table.png").getFile(); |
|
56 |
ImageIcon iicon = new ImageIcon(_file); |
|
57 |
ImageIcon iicon = |
|
58 |
IconThemeHelper.getImageIcon("new-oracle-image"); |
|
57 | 59 |
|
58 | 60 |
WizardAndami wizard = new WizardAndami(iicon); |
59 | 61 |
RepeatedChooseGeometryTypePanel panelChoose = new RepeatedChooseGeometryTypePanel( |
Also available in: Unified diff