Revision be02f4f9
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorE4.java | ||
---|---|---|
33 | 33 |
import org.eclipse.e4.ui.di.Focus; |
34 | 34 |
import org.eclipse.e4.ui.di.UIEventTopic; |
35 | 35 |
import org.eclipse.e4.ui.di.UISynchronize; |
36 |
import org.eclipse.e4.ui.model.application.MApplication; |
|
36 | 37 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
37 | 38 |
import org.eclipse.e4.ui.services.EMenuService; |
39 |
import org.eclipse.e4.ui.workbench.modeling.EModelService; |
|
40 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
|
38 | 41 |
import org.eclipse.e4.ui.workbench.modeling.ESelectionService; |
39 | 42 |
import org.eclipse.jface.util.LocalSelectionTransfer; |
40 | 43 |
import org.eclipse.jface.viewers.ISelection; |
... | ... | |
124 | 127 |
@Inject |
125 | 128 |
private MPart thisPart; |
126 | 129 |
|
130 |
@Inject |
|
131 |
private MApplication application; |
|
132 |
|
|
133 |
@Inject |
|
134 |
private EModelService modelService; |
|
135 |
|
|
136 |
@Inject |
|
137 |
private EPartService partService; |
|
138 |
|
|
127 | 139 |
private boolean linkWithTaxon = false; |
128 | 140 |
|
129 | 141 |
@Inject |
... | ... | |
150 | 162 |
if(selection instanceof IStructuredSelection){ |
151 | 163 |
Object firstElement = ((IStructuredSelection) selection).getFirstElement(); |
152 | 164 |
if(firstElement instanceof ICdmBase){ |
153 |
NavigationUtil.openEditor((ICdmBase) firstElement, viewer.getControl().getShell()); |
|
165 |
NavigationUtil.openEditor((ICdmBase) firstElement, viewer.getControl().getShell(), modelService, partService, application);
|
|
154 | 166 |
} |
155 | 167 |
} |
156 | 168 |
}); |
Also available in: Unified diff
ref #6595, 6568 Open taxon name editor in editor area