if (dataModelEditDialog == null) {
String currentDataModel = selectedDataModelViewer.getText();
if (selectedDataModelViewer.getErrorText().equals(selectedDataModelViewer.getText())) {
currentDataModel = null;
}
dataModelEditDialog = new DataModelEditDialog(CometeUtils.getWindowForComponent(this),
"Change current datamodel", true, datamodels, currentDataModel);
dataModelEditDialog.setHeaderText("You can select here the datamodel you want to use.");
dataModelEditDialog.setHeaderIcon(iconsManager.getIcon("DataRecorder.dialog.tool"));
dataModelEditDialog.addWindowListener(new WindowAdapter() {
@Override