Revision e3895566
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ImageElement.java | ||
---|---|---|
78 | 78 |
@Override |
79 | 79 |
public void run() { |
80 | 80 |
try{ |
81 |
EPartService partService = getFormFactory().getContext().get(EPartService.class); |
|
82 |
DetailsPartE4 detailsView = AbstractUtility.getDetailsView(partService); |
|
83 |
if(detailsView!=null){ |
|
84 |
AbstractCdmDataViewerE4 viewer = (AbstractCdmDataViewerE4) detailsView.getViewer(); |
|
85 |
if(viewer!=null){ |
|
86 |
viewer.reflow(); |
|
81 |
if (getFormFactory() != null && getFormFactory().getContext() != null){ |
|
82 |
EPartService partService = getFormFactory().getContext().get(EPartService.class); |
|
83 |
DetailsPartE4 detailsView = AbstractUtility.getDetailsView(partService); |
|
84 |
if(detailsView!=null){ |
|
85 |
AbstractCdmDataViewerE4 viewer = (AbstractCdmDataViewerE4) detailsView.getViewer(); |
|
86 |
if(viewer!=null){ |
|
87 |
viewer.reflow(); |
|
88 |
} |
|
87 | 89 |
} |
88 |
} |
|
89 | 90 |
|
90 |
MPart mPartSupplemental = partService.findPart("eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4"); |
|
91 |
if(mPartSupplemental!=null){ |
|
92 |
SupplementalDataPartE4 supplementalPart = (SupplementalDataPartE4)mPartSupplemental.getObject(); |
|
93 |
if(supplementalPart!=null){ |
|
94 |
AbstractCdmDataViewerE4 viewer = (AbstractCdmDataViewerE4) (supplementalPart).getViewer(); |
|
95 |
if(viewer!=null){ |
|
96 |
viewer.refresh(); |
|
91 |
MPart mPartSupplemental = partService.findPart("eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4"); |
|
92 |
if(mPartSupplemental!=null){ |
|
93 |
SupplementalDataPartE4 supplementalPart = (SupplementalDataPartE4)mPartSupplemental.getObject(); |
|
94 |
if(supplementalPart!=null){ |
|
95 |
AbstractCdmDataViewerE4 viewer = (AbstractCdmDataViewerE4) (supplementalPart).getViewer(); |
|
96 |
if(viewer!=null){ |
|
97 |
viewer.refresh(); |
|
98 |
} |
|
97 | 99 |
} |
98 | 100 |
} |
99 | 101 |
} |
Also available in: Unified diff
ref #9065: derivedUnit wizard should contain media section but without loading the image