Revision b5b429af
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/DeleteHandlerE4.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
19 | 19 |
import org.eclipse.e4.core.di.annotations.Execute; |
20 |
import org.eclipse.e4.ui.di.UISynchronize; |
|
20 | 21 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
21 | 22 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
22 | 23 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
60 | 61 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, |
61 | 62 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
62 | 63 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
63 |
MHandledMenuItem menuItem) { |
|
64 |
MHandledMenuItem menuItem, UISynchronize sync) {
|
|
64 | 65 |
|
65 | 66 |
TaxonNavigatorE4 taxonNavigator = (TaxonNavigatorE4) activePart.getObject(); |
66 | 67 |
|
... | ... | |
146 | 147 |
taxonNavigator, |
147 | 148 |
taxonNavigator); |
148 | 149 |
|
149 |
AbstractUtility.executeOperation(operation); |
|
150 |
AbstractUtility.executeOperation(operation, sync);
|
|
150 | 151 |
|
151 | 152 |
//} |
152 | 153 |
} |
... | ... | |
171 | 172 |
taxonNavigator, |
172 | 173 |
taxonNavigator); |
173 | 174 |
|
174 |
AbstractUtility.executeOperation(operation); |
|
175 |
AbstractUtility.executeOperation(operation, sync);
|
|
175 | 176 |
|
176 | 177 |
} |
177 | 178 |
}catch (Exception e){ |
Also available in: Unified diff
ref #6925 Inject context into operations to allow sync/async execution