From 612e9a7a6e9ea0f0f1e0b2b6b44d9522e62ceac1 Mon Sep 17 00:00:00 2001
From: Patric Plitzner
Date: Fri, 16 Jan 2015 14:50:17 +0000
Subject: [PATCH] - changed label of advanced media view (fixes #4590)
---
.../ui/section/description/MediaDetailsSection.java | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java
index d97c62333..a4aca0cde 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java
@@ -70,15 +70,10 @@ public class MediaDetailsSection extends AbstractCdmDetailSection {
protected Control createToolbar() {
ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
- final String label;
- if(element_media.isAdvancedMediaView()){
- label = "Use simple media view";
- }
- else{
- label = "Use advanced media view";
- }
-
- Action addAction = new Action("Use advanced media view", IAction.AS_PUSH_BUTTON) {
+ //FIXME: duplicate code (see #4598)
+ final String label = "Change View Type";
+
+ Action addAction = new Action(label, IAction.AS_PUSH_BUTTON) {
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#run()
*/
--
2.34.1