Revision 843eefc4
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/SetMarkerFlagHandlerE4.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
26 | 26 |
import eu.etaxonomy.cdm.model.common.MarkerType; |
27 | 27 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorUtil; |
28 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4;
|
|
28 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor; |
|
29 | 29 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.command.DynamicMarkerTypeEditingMenuE4; |
30 | 30 |
import eu.etaxonomy.taxeditor.bulkeditor.operation.SetMarkerFlagOperation; |
31 | 31 |
import eu.etaxonomy.taxeditor.event.EventUtility; |
... | ... | |
45 | 45 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
46 | 46 |
MHandledMenuItem menuItem, UISynchronize sync) { |
47 | 47 |
|
48 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
48 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
49 | 49 |
MarkerType markerType = (MarkerType) menuItem.getTransientData().get(DynamicMarkerTypeEditingMenuE4.COMMAND_PARAMETER_MARKER_TYPE); |
50 | 50 |
boolean markerState = (boolean) menuItem.getTransientData().get(DynamicMarkerTypeEditingMenuE4.COMMAND_PARAMETER_MARKER_STATE); |
51 | 51 |
|
... | ... | |
66 | 66 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
67 | 67 |
MHandledMenuItem menuItem){ |
68 | 68 |
boolean canExecute = false; |
69 |
IStructuredSelection selection = ((BulkEditorE4)activePart.getObject()).getSelection();
|
|
69 |
IStructuredSelection selection = ((BulkEditor)activePart.getObject()).getSelection(); |
|
70 | 70 |
canExecute = !selection.isEmpty(); |
71 | 71 |
Iterator iterator = selection.iterator(); |
72 | 72 |
for(selection.iterator();iterator.hasNext();){ |
Also available in: Unified diff
ref #9448: remove E4 from file names - bulkeditor package