Revision 604e7242
Added by Andreas Müller over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/e4/MediaViewPartE4.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.editor.view.media.e4; |
11 | 10 |
|
12 | 11 |
import javax.annotation.PostConstruct; |
... | ... | |
40 | 39 |
import eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4; |
41 | 40 |
|
42 | 41 |
/** |
43 |
* |
|
44 | 42 |
* @author pplitzner |
45 | 43 |
* @since Aug 14, 2017 |
46 |
* |
|
47 | 44 |
*/ |
48 |
public class MediaViewPartE4 extends AbstractCdmEditorPart |
|
45 |
public class MediaViewPartE4 extends AbstractCdmEditorPart<TreeViewer>
|
|
49 | 46 |
implements IPartContentHasDetails, IPartContentHasSupplementalData { |
50 | 47 |
|
51 | 48 |
@PostConstruct |
... | ... | |
71 | 68 |
|
72 | 69 |
//create context menu |
73 | 70 |
menuService.registerContextMenu(viewer.getControl(), "eu.etaxonomy.taxeditor.editor.popupmenu.mediaview"); |
74 |
|
|
75 | 71 |
} |
76 | 72 |
|
77 | 73 |
@Override |
... | ... | |
120 | 116 |
return; |
121 | 117 |
} |
122 | 118 |
|
123 |
/** {@inheritDoc} */ |
|
124 | 119 |
@Override |
125 | 120 |
public void changed(Object object) { |
126 | 121 |
((AbstractTreeViewer) viewer).expandToLevel(2); |
... | ... | |
136 | 131 |
protected String getViewName() { |
137 | 132 |
return Messages.MediaViewPart_MEDIA; |
138 | 133 |
} |
139 |
|
|
140 |
|
|
141 |
|
|
142 |
} |
|
134 |
} |
Also available in: Unified diff
add viewer generics to AbstractCdmEditorPart, remove deprecated ViewerSorter and some other cleanup