public void loadCSVFile(String fileName) {
// load also the test data CSV file
int testDataTabIndex = getTestDataTabIndex();
if (testDataTabIndex != -1) {
TestDataEditor currentTestDataEditor = this.getTestDataPane(testDataTabIndex);
if (currentTestDataEditor != null) {
if (currentTestDataEditor.getCurrentCSVFile().equals(fileName)) {
return;
}
}
}
TestDataEditor dataEditor = new TestDataEditor();
dataEditor.loadCSVFile(fileName);
editorTabbedPane.addTab("TestData", null, dataEditor, fileName);
dataEditor.addPropertyChangeListener("isModified", new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getNewValue().equals(true)) {
String currentTitle = editorTabbedPane.getTitleAt(editorTabbedPane.getSelectedIndex());
if (!currentTitle.contains("*")) {