protected Dataset getCompleteData(IMonitor mon) throws Exception { IHierarchicalDataFile file = null; try { if (mon != null) mon.worked(1); file = HierarchicalDataFactory.getReader(path); final hdf.object.Dataset set = (hdf.object.Dataset) file.getData(fullPath); if (set.getStartDims() == null) set.getMetadata(); /** * The diamond slicing can leave the dataset in memory, and the selection. Therefore if they * were slicing in the DExplore view before going here, the full selection is broken, there is * a sub slice selected. * * <p>TODO Get Peter to fix this some time. */ loader.resetDims(set); final Object val = set.read(); return H5Utils.getSet(val, set); } finally { if (file != null) file.close(); } }