Revision 2538
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ThemeControls.java | ||
---|---|---|
95 | 95 |
MapControl mapCtrl = vista.getMapControl(); |
96 | 96 |
logger.debug("Comand : " + s); |
97 | 97 |
|
98 |
if (s.compareTo("PROPERTIES") == 0) { |
|
99 |
vista.openThemeProperties(); |
|
100 |
} else if (s.compareTo("SHAPE_SELECTED") == 0) { |
|
98 |
if (s.compareTo("SHAPE_SELECTED") == 0) { |
|
101 | 99 |
createShape(mapa); |
102 | 100 |
} else if (s.compareTo("DXF_SELECTED") == 0) { |
103 | 101 |
createDxf(mapa); |
... | ... | |
254 | 252 |
} |
255 | 253 |
|
256 | 254 |
FLayer[] selected = f.getModel().getMapContext().getLayers().getActives(); |
257 |
if (selected.length > 0 && selected[0] instanceof FLyrVect){
|
|
255 |
if (selected.length == 1 && selected[0] instanceof FLyrVect){
|
|
258 | 256 |
return true; |
259 | 257 |
} |
260 | 258 |
return false; |
Also available in: Unified diff