Revision ca0e8f6d
Added by Patrick Plitzner almost 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/handler/ToggleLinkWithTaxonSelectionHandler.java | ||
---|---|---|
8 | 8 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
9 | 9 |
import org.eclipse.e4.ui.services.IServiceConstants; |
10 | 10 |
|
11 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
|
11 | 12 |
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView; |
12 | 13 |
|
13 | 14 |
public class ToggleLinkWithTaxonSelectionHandler { |
... | ... | |
22 | 23 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART) MPart part, MHandledMenuItem item){ |
23 | 24 |
DerivateView derivateView = (DerivateView) part.getObject(); |
24 | 25 |
if(derivateView.isListenToSelectionChange()){ |
25 |
item.setLabel("Unlink from taxon selection");
|
|
26 |
item.setLabel(Messages.ToggleLinkWithTaxonSelectionHandler_UNLINK);
|
|
26 | 27 |
} |
27 | 28 |
else{ |
28 |
item.setLabel("Link with taxon selection");
|
|
29 |
item.setLabel(Messages.ToggleLinkWithTaxonSelectionHandler_LINK);
|
|
29 | 30 |
} |
30 | 31 |
return true; |
31 | 32 |
} |
Also available in: Unified diff
fix ref #6743 missing l10n for specimen editor context menu