return null;
}
public void copyStyle(final URL source, final MapModel targetMap, boolean undoable) {
final MapModel styleMapContainer = new MapModel();
final IExtension oldStyleModel = targetMap.getRootNode().removeExtension(MapStyleModel.class);
UrlManager.getController().loadCatchExceptions(source, styleMapContainer);
onCreate(styleMapContainer);
moveStyle(styleMapContainer, targetMap, true);
LogicalStyleController.getController().refreshMap(targetMap);
if(! undoable){
return;
}
final IExtension newStyleModel = targetMap.getRootNode().getExtension(MapStyleModel.class);
IActor actor = new IActor() {
public void undo() {
targetMap.getRootNode().putExtension(oldStyleModel);
}