Revision 27937 branches/v2_0_0_prep/extensions/extGeoDB/src/com/iver/cit/gvsig/ExtDB_Spatial.java

View differences:

ExtDB_Spatial.java
42 42
 */
43 43
package com.iver.cit.gvsig;
44 44

  
45
import org.gvsig.fmap.dal.DALDbLibrary;
46
import org.gvsig.fmap.dal.store.jdbc.JDBCLibrary;
47
import org.gvsig.fmap.dal.store.postgresql.PostgreSQLLibrary;
48

  
45 49
import com.iver.andami.plugins.Extension;
50
import com.prodevelop.cit.gvsig.vectorialdb.wizard.WizardVectorialDB;
46 51

  
47 52

  
48 53
/**
......
53 58
 */
54 59
public class ExtDB_Spatial extends Extension {
55 60

  
56
    public void initialize() {
61
    private DALDbLibrary dbLibrary;
62
	private JDBCLibrary jdbcLibrary;
63
	private PostgreSQLLibrary posgresqlLibrary;
57 64

  
58
//        System.out.println("A?ado WizardVectorialDB.");
59
//    	FIXME
60
//        AddLayer.addWizard(WizardVectorialDB.class);
65
	public void initialize() {
66
    	dbLibrary = new DALDbLibrary();
67
		jdbcLibrary = new JDBCLibrary();
68
		posgresqlLibrary = new PostgreSQLLibrary();
61 69

  
70

  
71
		dbLibrary.initialize();
72
		jdbcLibrary.initialize();
73
		posgresqlLibrary.initialize();
74

  
75

  
62 76
    }
63 77

  
64 78
    public void execute(String actionCommand) {
......
76 90
    public boolean isVisible() {
77 91
        return false;
78 92
    }
93

  
94
	@Override
95
	public void postInitialize() {
96
		super.postInitialize();
97

  
98
		dbLibrary.postInitialize();
99
		jdbcLibrary.postInitialize();
100
		posgresqlLibrary.postInitialize();
101

  
102
    	AddLayer.addWizard(WizardVectorialDB.class);
103
	}
79 104
}

Also available in: Unified diff