Revision c2ce61f1
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorE4.java | ||
---|---|---|
28 | 28 |
import org.eclipse.core.commands.operations.UndoContext; |
29 | 29 |
import org.eclipse.core.runtime.IAdaptable; |
30 | 30 |
import org.eclipse.core.runtime.IProgressMonitor; |
31 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
|
32 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
31 | 33 |
import org.eclipse.e4.core.di.annotations.Optional; |
32 | 34 |
import org.eclipse.e4.ui.di.Focus; |
33 | 35 |
import org.eclipse.e4.ui.di.UIEventTopic; |
... | ... | |
153 | 155 |
} |
154 | 156 |
|
155 | 157 |
@PostConstruct |
156 |
private void create(Composite parent, EMenuService menuService){ |
|
158 |
private void create(Composite parent, EMenuService menuService, IEclipseContext context){
|
|
157 | 159 |
FillLayout layout = new FillLayout(); |
158 | 160 |
layout.marginHeight = 0; |
159 | 161 |
layout.marginWidth = 0; |
... | ... | |
188 | 190 |
//add drag'n'drop support |
189 | 191 |
Transfer[] transfers = new Transfer[] {LocalSelectionTransfer.getTransfer()}; |
190 | 192 |
viewer.addDragSupport(dndOperations, transfers, new TreeNodeDragListenerE4(viewer)); |
191 |
viewer.addDropSupport(dndOperations, transfers, new TreeNodeDropAdapterE4(this)); |
|
193 |
TreeNodeDropAdapterE4 dropAdapter = new TreeNodeDropAdapterE4(this); |
|
194 |
ContextInjectionFactory.inject(dropAdapter, context); |
|
195 |
viewer.addDropSupport(dndOperations, transfers, dropAdapter); |
|
192 | 196 |
|
193 | 197 |
updateSyncButton(); |
194 | 198 |
|
Also available in: Unified diff
Close name editor for moved taxon nodes