net.refractions.udig.project.ui
Class ProjectUtil

java.lang.Object
  extended by net.refractions.udig.project.ui.ProjectUtil

public class ProjectUtil
extends java.lang.Object

Starting place to add various helper methods to deal with project model.

Author:
Vitalus

Constructor Summary
ProjectUtil()
           
 
Method Summary
static java.util.List<IGeoResource> cleanDuplicateGeoResources(java.util.Collection<IGeoResource> geoResources, IMap map)
          Checks the list of IGeoResources from the resources list whether there are already layers in map from these georesources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectUtil

public ProjectUtil()
Method Detail

cleanDuplicateGeoResources

public static java.util.List<IGeoResource> cleanDuplicateGeoResources(java.util.Collection<IGeoResource> geoResources,
                                                                      IMap map)
Checks the list of IGeoResources from the resources list whether there are already layers in map from these georesources.

This utility method is used during adding new layers to the map to avoid diplicating the layers from the same georesource.

Parameters:
map -
geoResources -
Returns:
Returns cleaned list of georesources that do not have layers in specified map.