Project

General

Profile

« Previous | Next » 

Revision 3de91ced

Added by Cherian Mathew over 9 years ago

Fix for ticket #4519

CdmDataSourceRepository : added a new method to create default h2 data source
eu.etaxonomy.taxeditor.cdmlib : updated build paths to output test classes in test-classes dir and moved resources package to avoid conflict
ApplicationWorkbenchWindowAdvisor : added call to the new method (above) to create a default H2 db

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchWindowAdvisor.java
7 7
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
8 8
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
9 9

  
10
import eu.etaxonomy.taxeditor.datasource.CdmDataSourceRepository;
10 11
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
11 12
import eu.etaxonomy.taxeditor.store.CdmStore;
12 13
import eu.etaxonomy.taxeditor.ui.dialog.LoginDialog;
......
48 49
		configurer.setShowPerspectiveBar(true);
49 50
		configurer.setTitle("EDIT Taxonomic Editor " + ApplicationUtil.getVersion());
50 51
		configurer.setShowProgressIndicator(true);
52

  
53
		CdmDataSourceRepository.createDefaultH2DataSource();
51 54
	}
52 55

  
53 56
	/**
......
57 60
    public void postWindowOpen() {
58 61
		PreferencesUtil.checkNomenclaturalCode();
59 62

  
63

  
64

  
60 65
		if(PreferencesUtil.shouldConnectAtStartUp()) {
61 66
            CdmStore.connect();
62 67
        }

Also available in: Unified diff