- changed label of advanced media view (fixes #4590)
authorPatric Plitzner <p.plitzner@bgbm.org>
Fri, 16 Jan 2015 14:50:17 +0000 (14:50 +0000)
committerPatric Plitzner <p.plitzner@bgbm.org>
Fri, 16 Jan 2015 14:50:17 +0000 (14:50 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java

index d97c62333cf7472f5ff7820bf1803aa3f3336ada..a4aca0cdea6031c80fa91da4dda52329cd7096d7 100644 (file)
@@ -70,15 +70,10 @@ public class MediaDetailsSection extends AbstractCdmDetailSection<Media> {
     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()
              */