}
}
private void connectNewNexusFile(String nexusFile) {
if (nexusFile != null && nexusFile.contains(";")) {
NetCDFKey key = new NetCDFKey();
String[] nexusInfo = nexusFile.split(";");
String filePath = nexusInfo[0];
String dataPath = nexusInfo[1];
Component tab = tabbedPane.getSelectedComponent();
if (tab.equals(chartViewer)) {
key.registerSpectrumData(filePath, dataPath);
}
else if (tab.equals(imageViewer)) {
key.registerImageData(filePath, dataPath);
}
connectToSelectedPane(key);
}
}