Revision b5fcddad
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/handler/OpenChecklistEditorHandlerE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2014 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
1 | 9 |
package eu.etaxonomy.taxeditor.editor.view.checklist.e4.handler; |
2 | 10 |
|
3 | 11 |
import java.util.List; |
4 | 12 |
|
5 |
import javax.inject.Inject; |
|
6 | 13 |
import javax.inject.Named; |
7 | 14 |
|
8 | 15 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
9 |
import org.eclipse.e4.core.services.log.Logger; |
|
10 | 16 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
11 | 17 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
12 | 18 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
20 | 26 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
21 | 27 |
import eu.etaxonomy.taxeditor.editor.AppModelId; |
22 | 28 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
23 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
|
24 | 29 |
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenSetBaseHandler; |
25 | 30 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
26 | 31 |
import eu.etaxonomy.taxeditor.security.RequiredPermissions; |
... | ... | |
40 | 45 |
EditorUtil.openDistributionEditor(entities, modelService, partService, application); |
41 | 46 |
} |
42 | 47 |
|
43 |
|
|
44 |
|
|
45 |
/** |
|
46 |
* {@inheritDoc} |
|
47 |
*/ |
|
48 | 48 |
@CanExecute |
49 | 49 |
@Override |
50 | 50 |
public boolean canExecute(MHandledMenuItem menuItem, |
... | ... | |
82 | 82 |
return result; |
83 | 83 |
} |
84 | 84 |
|
85 |
|
|
86 |
|
|
87 | 85 |
@Override |
88 | 86 |
protected boolean canExecute(Object entity) { |
89 | 87 |
// TODO Auto-generated method stub |
90 | 88 |
return true; |
91 | 89 |
} |
92 |
|
|
93 |
|
|
94 |
} |
|
90 |
} |
Also available in: Unified diff
cleanup