currentDirectory = rootDirectory;
}
IConfig<?> configModel = null;
switch (type) {
case SCAN_1D:
IConfig<?> tmp = new Config1DImpl();
tmp.setScanAddOn(new ScanAddOnImp());
tmp.getScanAddOn().setDisplay(new DisplayImpl());
((IConfig1D) tmp).setDimensionX(new Dimension1DImpl());
// Creates one range for a new 1D config.
IRange1D range1DToAdd = new Range1DImpl();
range1DToAdd.setDimension(((IConfig1D) tmp).getDimensionX());