Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ViewControls.java
ViewControls.java | ||
---|---|---|
49 | 49 |
import org.apache.log4j.Logger; |
50 | 50 |
|
51 | 51 |
import com.iver.andami.PluginServices; |
52 |
import com.iver.andami.messages.NotificationManager; |
|
53 | 52 |
import com.iver.andami.plugins.Extension; |
54 | 53 |
import com.iver.andami.preferences.IPreference; |
55 | 54 |
import com.iver.andami.preferences.IPreferenceExtension; |
56 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
57 | 55 |
import com.iver.cit.gvsig.fmap.MapContext; |
58 | 56 |
import com.iver.cit.gvsig.fmap.MapControl; |
59 | 57 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
97 | 95 |
logger.debug("Comand : " + s); |
98 | 96 |
|
99 | 97 |
if (s.equals("FULL") ) { |
100 |
try { |
|
101 |
// mapa.beginAtomicEvent(); |
|
102 |
mapa.getViewPort().setExtent(mapa.getLayers().getFullExtent()); |
|
103 |
vista.repaintMap(); |
|
104 |
((ProjectDocument)vista.getModel()).setModified(true); |
|
105 |
// mapa.endAtomicEvent(); |
|
106 |
} catch (DriverException e) { |
|
107 |
NotificationManager.addError("Error obteniendo el full extent", |
|
108 |
e); |
|
109 |
} |
|
98 |
// mapa.beginAtomicEvent(); |
|
99 |
mapa.getViewPort().setExtent(mapa.getLayers().getFullExtent()); |
|
100 |
vista.repaintMap(); |
|
101 |
((ProjectDocument)vista.getModel()).setModified(true); |
|
102 |
// mapa.endAtomicEvent(); |
|
110 | 103 |
} else if (s.equals("ENCUADRE") ) { |
111 | 104 |
FPanelExtentSelector l = new FPanelExtentSelector(); |
112 | 105 |
|
Also available in: Unified diff