Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaViewPart.java | ||
---|---|---|
34 | 34 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
35 | 35 |
|
36 | 36 |
/** |
37 |
* <p>MediaViewPart class.</p> |
|
38 |
* |
|
37 | 39 |
* @author n.hoffmann |
38 | 40 |
* @created Jun 15, 2010 |
39 | 41 |
* @version 1.0 |
40 | 42 |
*/ |
41 | 43 |
public class MediaViewPart extends AbstractCdmEditorViewPart implements IPartContentHasDetails, IPartContentHasSupplementalData { |
42 | 44 |
|
45 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.medi"{trunked}</code> */ |
|
43 | 46 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.media"; |
44 | 47 |
|
45 | 48 |
private TreeViewer viewer; |
... | ... | |
48 | 51 |
* (non-Javadoc) |
49 | 52 |
* @see eu.etaxonomy.taxeditor.model.AbstractCdmViewPart#createViewer(org.eclipse.swt.widgets.Composite) |
50 | 53 |
*/ |
54 |
/** {@inheritDoc} */ |
|
51 | 55 |
@Override |
52 | 56 |
public void createViewer(Composite parent) { |
53 | 57 |
|
... | ... | |
74 | 78 |
/* (non-Javadoc) |
75 | 79 |
* @see eu.etaxonomy.taxeditor.model.AbstractCdmViewPart#getInitialSelection() |
76 | 80 |
*/ |
81 |
/** {@inheritDoc} */ |
|
77 | 82 |
@Override |
78 | 83 |
protected ISelection getInitialSelection() { |
79 | 84 |
if(getEditor() != null){ |
... | ... | |
83 | 88 |
return super.getInitialSelection(); |
84 | 89 |
} |
85 | 90 |
|
91 |
/** {@inheritDoc} */ |
|
86 | 92 |
public void selectionChanged(IWorkbenchPart part, ISelection selection) { |
87 | 93 |
if(EditorUtil.getActiveEditor() == null){ |
88 | 94 |
showEmptyPage(); |
... | ... | |
99 | 105 |
} |
100 | 106 |
} |
101 | 107 |
|
108 |
/** {@inheritDoc} */ |
|
102 | 109 |
@Override |
103 | 110 |
public void changed(Object object) { |
104 | 111 |
viewer.refresh(); |
105 | 112 |
super.changed(object); |
106 | 113 |
} |
107 | 114 |
|
115 |
/** {@inheritDoc} */ |
|
108 | 116 |
@Override |
109 | 117 |
public Viewer getViewer() { |
110 | 118 |
return viewer; |
111 | 119 |
} |
112 | 120 |
|
121 |
/** |
|
122 |
* <p>onComplete</p> |
|
123 |
* |
|
124 |
* @return a boolean. |
|
125 |
*/ |
|
113 | 126 |
public boolean onComplete() { |
114 | 127 |
return true; |
115 | 128 |
} |
Also available in: Unified diff
performed javacscript:fix and worked on documentation