return;
}
try {
// configure resource locator to take absolute path
MapLoader mapLoader = new MapLoader() {
@Deprecated
protected ResourceLocator configLocator() {
ResourceLocator locator = new ResourceLocator();
locator.setSkipAbsolutePath(false);
locator.setSkipClasspath(true);
locator.setSkipCurrentDirectory(true);
locator.setSkipHomeDirectory(true);
return locator;
}
};
DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
DataChannelDescriptor domain = (DataChannelDescriptor)getProjectController().getProject().getRootNode();
if (newMap.getName() != null) {
newMap.setName(NamedObjectFactory.createName(
DataMap.class,