Revision a4784593
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import org.eclipse.core.runtime.IProgressMonitor; |
23 | 23 |
import org.eclipse.core.runtime.NullProgressMonitor; |
24 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
|
25 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
24 | 26 |
import org.eclipse.e4.core.di.annotations.Optional; |
25 | 27 |
import org.eclipse.e4.core.services.events.IEventBroker; |
26 | 28 |
import org.eclipse.e4.ui.di.Focus; |
... | ... | |
90 | 92 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
91 | 93 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
92 | 94 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorQuery; |
95 |
import eu.etaxonomy.taxeditor.bulkeditor.NullTextEditor; |
|
93 | 96 |
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput; |
94 | 97 |
import eu.etaxonomy.taxeditor.bulkeditor.input.sortprovider.TitleCacheComparator; |
95 | 98 |
import eu.etaxonomy.taxeditor.editor.ITaxonEditor; |
... | ... | |
133 | 136 |
|
134 | 137 |
private ISelectionChangedListener selectionChangedListener; |
135 | 138 |
|
139 |
@Inject |
|
140 |
IEclipseContext context; |
|
141 |
|
|
136 | 142 |
@Inject |
137 | 143 |
private MPart thisPart; |
138 | 144 |
|
... | ... | |
298 | 304 |
EditConfigAttributes.CELL_EDITABLE_RULE, |
299 | 305 |
IEditableRule.ALWAYS_EDITABLE, |
300 | 306 |
DisplayMode.EDIT); |
307 |
//register editor |
|
308 |
NullTextEditor nullTextEditor = new NullTextEditor(); |
|
309 |
ContextInjectionFactory.inject(nullTextEditor, context); |
|
310 |
configRegistry.registerConfigAttribute( |
|
311 |
EditConfigAttributes.CELL_EDITOR, |
|
312 |
nullTextEditor, |
|
313 |
DisplayMode.EDIT); |
|
301 | 314 |
} |
302 | 315 |
}); |
303 | 316 |
|
Also available in: Unified diff
ref #7439 Add context menu to cell editor, disable editing