Revision e41cdd18
Added by Lutz Suhrbier almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import org.eclipse.core.runtime.IProgressMonitor; |
17 | 17 |
import org.eclipse.core.runtime.jobs.Job; |
18 |
import org.eclipse.swt.widgets.Display; |
|
19 | 18 |
import org.springframework.core.io.ClassPathResource; |
20 | 19 |
import org.springframework.core.io.Resource; |
21 | 20 |
import org.springframework.security.authentication.ProviderManager; |
... | ... | |
33 | 32 |
import eu.etaxonomy.taxeditor.io.ImportManager; |
34 | 33 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
35 | 34 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
35 |
import eu.etaxonomy.taxeditor.store.singlesource.widget.DisplayProxy; |
|
36 | 36 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
37 | 37 |
|
38 | 38 |
/** |
... | ... | |
136 | 136 |
final Resource applicationContextBean) { |
137 | 137 |
StoreUtil.info("Connecting to datasource: " + datasource); |
138 | 138 |
|
139 |
job = new CdmStoreConnector(Display.getDefault(), datasource, |
|
139 |
job = new CdmStoreConnector(DisplayProxy.getDefault(), datasource,
|
|
140 | 140 |
dbSchemaValidation, applicationContextBean); |
141 | 141 |
job.setUser(true); |
142 | 142 |
job.setPriority(Job.BUILD); |
... | ... | |
155 | 155 |
* a {@link org.eclipse.core.runtime.IProgressMonitor} object. |
156 | 156 |
*/ |
157 | 157 |
public static void close(final IProgressMonitor monitor) { |
158 |
Display.getDefault().asyncExec(new Runnable() { |
|
158 |
DisplayProxy.getDefault().asyncExec(new Runnable() {
|
|
159 | 159 |
/* |
160 | 160 |
* (non-Javadoc) |
161 | 161 |
* |
Also available in: Unified diff
Replaced any Display.getDefault() & Display,getCurrent() by DisplayProxy.getDefault() which is implemented in fragment store.rcp or store.rap respectively