Revision 612e9a7a
Added by Patrick Plitzner over 9 years ago
- changed label of advanced media view (fixes #4590)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/MediaDetailsSection.java | ||
---|---|---|
70 | 70 |
protected Control createToolbar() { |
71 | 71 |
ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT); |
72 | 72 |
|
73 |
final String label; |
|
74 |
if(element_media.isAdvancedMediaView()){ |
|
75 |
label = "Use simple media view"; |
|
76 |
} |
|
77 |
else{ |
|
78 |
label = "Use advanced media view"; |
|
79 |
} |
|
80 |
|
|
81 |
Action addAction = new Action("Use advanced media view", IAction.AS_PUSH_BUTTON) { |
|
73 |
//FIXME: duplicate code (see #4598) |
|
74 |
final String label = "Change View Type"; |
|
75 |
|
|
76 |
Action addAction = new Action(label, IAction.AS_PUSH_BUTTON) { |
|
82 | 77 |
/* (non-Javadoc) |
83 | 78 |
* @see org.eclipse.jface.action.Action#run() |
84 | 79 |
*/ |
Also available in: Unified diff