Revision 43147 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/MapContext.java
MapContext.java | ||
---|---|---|
31 | 31 |
import java.util.ArrayList; |
32 | 32 |
import java.util.Iterator; |
33 | 33 |
import java.util.List; |
34 |
import org.apache.commons.lang3.ArrayUtils; |
|
34 | 35 |
|
35 | 36 |
import org.cresques.cts.ICoordTrans; |
36 | 37 |
import org.cresques.cts.IProjection; |
... | ... | |
1839 | 1840 |
return false; |
1840 | 1841 |
} |
1841 | 1842 |
|
1843 |
public boolean hasActiveLayers() { |
|
1844 |
FLayer[] layers = this.getLayers().getActives(); |
|
1845 |
return !ArrayUtils.isEmpty(layers); |
|
1846 |
} |
|
1847 |
|
|
1848 |
public boolean hasLayers() { |
|
1849 |
return !this.getLayers().isEmpty(); |
|
1850 |
} |
|
1851 |
|
|
1842 | 1852 |
private boolean hasVectorLayers(FLayers layers) { |
1843 | 1853 |
for (int i = 0; i < layers.getLayersCount(); i++) { |
1844 | 1854 |
FLayer lyr = layers.getLayer(i); |
Also available in: Unified diff