Revision 43215 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/impl/DefaultMapContextManager.java
DefaultMapContextManager.java | ||
---|---|---|
37 | 37 |
import java.util.Iterator; |
38 | 38 |
import java.util.List; |
39 | 39 |
import java.util.Map; |
40 |
import org.apache.commons.lang3.StringUtils; |
|
40 | 41 |
|
41 | 42 |
import org.cresques.cts.IProjection; |
42 | 43 |
import org.gvsig.fmap.crs.CRSFactory; |
... | ... | |
718 | 719 |
notifyObservers(REGISTER_ICON_LAYER, storeName, iconName); |
719 | 720 |
} |
720 | 721 |
|
722 |
@Override |
|
721 | 723 |
public String getIconLayer(DataStore store) { |
722 |
String name = (String) iconLayers.get(store.getProviderName().trim().toLowerCase()); |
|
723 |
if (name == null) { |
|
724 |
return "layer-icon"; |
|
725 |
} |
|
724 |
String name = null; |
|
725 |
try { |
|
726 |
name = (String) iconLayers.get(store.getProviderName().trim().toLowerCase()); |
|
727 |
} catch(Throwable th) { |
|
728 |
// Do nothing |
|
729 |
} |
|
730 |
if( StringUtils.isEmpty(name) ) { |
|
731 |
name = "layer-icon"; |
|
732 |
} |
|
726 | 733 |
return name; |
727 | 734 |
} |
728 | 735 |
|
Also available in: Unified diff