Revision e41cdd18
Added by Lutz Suhrbier almost 13 years ago
eu.etaxonomy.taxeditor.printpublisher/src/main/java/eu/etaxonomy/taxeditor/printpublisher/wizard/AbstractPublishWizard.java | ||
---|---|---|
11 | 11 |
import org.eclipse.jface.viewers.IStructuredSelection; |
12 | 12 |
import org.eclipse.jface.wizard.IWizardPage; |
13 | 13 |
import org.eclipse.jface.wizard.Wizard; |
14 |
import org.eclipse.swt.widgets.Display; |
|
15 | 14 |
import org.eclipse.ui.IExportWizard; |
16 | 15 |
import org.eclipse.ui.IWorkbench; |
17 | 16 |
|
... | ... | |
23 | 22 |
import eu.etaxonomy.taxeditor.printpublisher.PrintUtil; |
24 | 23 |
import eu.etaxonomy.taxeditor.printpublisher.internal.PrintpublisherPlugin; |
25 | 24 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
25 |
import eu.etaxonomy.taxeditor.store.singlesource.widget.DisplayProxy; |
|
26 | 26 |
|
27 | 27 |
/** |
28 | 28 |
* <p>AbstractPublishWizard class.</p> |
... | ... | |
95 | 95 |
}finally{ |
96 | 96 |
monitor.done(); |
97 | 97 |
if(conversation != null) conversation.close(); |
98 |
Display.getDefault().asyncExec(new Runnable() { |
|
98 |
DisplayProxy.getDefault().asyncExec(new Runnable() {
|
|
99 | 99 |
@Override |
100 | 100 |
public void run() { |
101 |
MessageDialog.openInformation(Display.getDefault().getActiveShell(), "Print Publisher", "Your document was created."); |
|
101 |
MessageDialog.openInformation(DisplayProxy.getDefault().getActiveShell(), "Print Publisher", "Your document was created.");
|
|
102 | 102 |
} |
103 | 103 |
}); |
104 | 104 |
} |
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