Revision 843eefc4
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/group/authority/e4/handler/EditCdmAuthoritiesHandlerE4.java | ||
---|---|---|
21 | 21 |
import org.eclipse.jface.viewers.IStructuredSelection; |
22 | 22 |
|
23 | 23 |
import eu.etaxonomy.cdm.model.permission.Group; |
24 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4;
|
|
24 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor; |
|
25 | 25 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
26 | 26 |
import eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditorInput; |
27 | 27 |
import eu.etaxonomy.taxeditor.editor.group.authority.e4.CdmAuthorityEditorE4; |
... | ... | |
40 | 40 |
@Execute |
41 | 41 |
public void execute(EPartService partService, EModelService modelService, MApplication application, |
42 | 42 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
43 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
43 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
44 | 44 |
Group group = (Group) editor.getSelection().getFirstElement(); |
45 | 45 |
try { |
46 | 46 |
EditorUtil.openRightsEditor(CdmAuthorityEditorInput.NewInstance(group.getUuid()), modelService, partService, application); |
... | ... | |
53 | 53 |
public boolean execute(MHandledMenuItem menuItem, |
54 | 54 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart){ |
55 | 55 |
boolean canExecute = false; |
56 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
56 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
57 | 57 |
IStructuredSelection selection = editor.getSelection(); |
58 | 58 |
canExecute = |
59 | 59 |
selection.size()==1 |
Also available in: Unified diff
ref #9448: remove E4 from file names - bulkeditor package