viewer = new MapViewer(parent, SWT.DOUBLE_BUFFERED);
List<IGeoResource> resources = new ArrayList<IGeoResource>();
createResources(resources, monitor);
IProject activeProject = ApplicationGIS.getActiveProject();
CreateMapCommand command = new CreateMapCommand("NewMap",resources , activeProject);
activeProject.sendSync(command);
Map createdMap = (Map) command.getCreatedMap();
viewer.setMap(createdMap);
viewer.init(this);
// ---------------