Revision 972ecc88
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/handler/EditDataSourceHandler.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
18 | 18 |
import eu.etaxonomy.cdm.config.ICdmSource; |
19 | 19 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
20 | 20 |
import eu.etaxonomy.taxeditor.datasource.wizard.CdmDataSourceWizard; |
21 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
22 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
|
23 | 21 |
import eu.etaxonomy.taxeditor.view.datasource.CdmMetaDataAwareDataSourceContainer; |
24 | 22 |
|
25 | 23 |
/** |
... | ... | |
47 | 45 |
int result = dialog.open(); |
48 | 46 |
|
49 | 47 |
if(result == IStatus.OK){ |
50 |
CdmDataSourceViewPart view = (CdmDataSourceViewPart) StoreUtil.getView(CdmDataSourceViewPart.ID, false); |
|
51 |
if(view != null){ |
|
52 |
container.getMetaDataFromDataSource(); |
|
53 |
view.getViewer().update(new CdmMetaDataAwareDataSourceContainer[]{container}, null); |
|
54 |
|
|
55 |
}
|
|
48 |
// CdmDataSourceViewPart view = (CdmDataSourceViewPart) StoreUtil.getView(CdmDataSourceViewPart.ID, false);
|
|
49 |
// if(view != null){
|
|
50 |
// container.getMetaDataFromDataSource();
|
|
51 |
// view.getViewer().update(new CdmMetaDataAwareDataSourceContainer[]{container}, null);
|
|
52 |
// |
|
53 |
// }
|
|
56 | 54 |
} |
57 | 55 |
} |
58 | 56 |
|
Also available in: Unified diff
ref #6913 Remove org.eclipse.ui dependency from AbstractUtility