use of eu.esdihumboldt.hale.ui.views.data.TransformedDataView in project hale by halestudio.
the class InstanceValidationReportDetailsPage method showSelectionInDataView.
/**
* Shows the current selection (if valid) in the transformed data view.
*/
private void showSelectionInDataView() {
InstanceSelection selection = getValidSelection();
if (selection != null) {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
// pin the property sheet if possible
IViewReference ref = page.findViewReference(IPageLayout.ID_PROP_SHEET);
if (ref != null) {
IViewPart part = ref.getView(true);
if (part instanceof PropertySheet)
((PropertySheet) part).setPinned(true);
}
// show transformed data view with selection if possible
try {
TransformedDataView transformedDataView = (TransformedDataView) page.showView(TransformedDataView.ID);
transformedDataView.showSelection(selection, reportImage);
} catch (PartInitException e) {
// if it's not there, we cannot do anything
}
}
}
Aggregations