Revision d7389118
Added by Lutz Suhrbier almost 13 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/ConceptContainer.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.editor.name.container; |
11 | 11 |
|
12 |
import javax.naming.OperationNotSupportedException; |
|
13 |
|
|
12 | 14 |
import org.eclipse.swt.graphics.Font; |
13 | 15 |
|
14 | 16 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
... | ... | |
39 | 41 |
// I can't remember what is was used for in the first place |
40 | 42 |
|
41 | 43 |
this.relationshipType = relationshipType; |
42 |
showRelationshipType(); |
|
44 |
try { |
|
45 |
showRelationshipType(); |
|
46 |
} catch (OperationNotSupportedException e) { |
|
47 |
} |
|
43 | 48 |
} |
44 | 49 |
|
45 | 50 |
/* (non-Javadoc) |
... | ... | |
52 | 57 |
setIsDraggable(true); |
53 | 58 |
setFont(getViewerFont()); |
54 | 59 |
|
55 |
showSec(); |
|
60 |
try { |
|
61 |
showSec(); |
|
62 |
} catch (OperationNotSupportedException e) { |
|
63 |
} |
|
56 | 64 |
|
57 | 65 |
initTextViewer(); |
58 | 66 |
} |
... | ... | |
62 | 70 |
setIcon(CONCEPT_ICON); |
63 | 71 |
} |
64 | 72 |
|
65 |
private void showRelationshipType() { |
|
73 |
private void showRelationshipType() throws OperationNotSupportedException {
|
|
66 | 74 |
setNonEditableInfo(relationshipType.getLabel(), true); |
67 | 75 |
} |
68 | 76 |
|
69 |
private void showSec() { |
|
77 |
private void showSec() throws OperationNotSupportedException {
|
|
70 | 78 |
if (getTaxonBase() == null) { |
71 | 79 |
return; |
72 | 80 |
} |
... | ... | |
129 | 137 |
super.showAnnotations(); |
130 | 138 |
} |
131 | 139 |
|
132 |
/** {@inheritDoc} */ |
|
140 |
/** {@inheritDoc} |
|
141 |
* @throws OperationNotSupportedException */ |
|
133 | 142 |
@Override |
134 | 143 |
protected void updateNonEditableInfo() { |
135 |
showSec(); |
|
136 |
showRelationshipType(); |
|
144 |
try { |
|
145 |
showSec(); |
|
146 |
showRelationshipType(); |
|
147 |
} catch (OperationNotSupportedException e) { |
|
148 |
} |
|
137 | 149 |
} |
138 | 150 |
|
139 | 151 |
/* (non-Javadoc) |
Also available in: Unified diff
NameViewer und LineWrapSupport durch NameViewerFacade und LineWrapSupport Facade ausgetauscht.
Typanpassungen in den Methoden des AbstractGroupContainers vorgenommen.
Momentan offenbar Probleme wenn über Menu showDetails aufgerufen wird, gibt NullPointerException mit org.eclipse.ui.PartInitException: Could not create view: eu.etaxonomy.taxeditor.editor.forms.detailsView.
Allerdings gibt es die view definition nicht, nur eine command def ?