Revision 24495 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/accelerators/ForceCursorAccelerator.java
ForceCursorAccelerator.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
import java.awt.KeyEventDispatcher; |
44 | 44 |
import java.awt.event.KeyEvent; |
45 |
import java.util.prefs.Preferences; |
|
45 | 46 |
|
46 | 47 |
import com.iver.andami.PluginServices; |
47 | 48 |
import com.iver.andami.ui.mdiManager.IWindow; |
48 | 49 |
import com.iver.cit.gvsig.CADExtension; |
49 | 50 |
import com.iver.cit.gvsig.gui.cad.CADToolAdapter; |
51 |
import com.iver.cit.gvsig.gui.preferences.GridPage; |
|
50 | 52 |
|
51 | 53 |
/** |
52 | 54 |
* @author fjp |
... | ... | |
66 | 68 |
toolAdap.setAdjustGrid(!toolAdap.getGrid().isAdjustGrid()); |
67 | 69 |
|
68 | 70 |
System.err.println("Ponemos ForceCursor a " + toolAdap.getGrid().isAdjustGrid()); |
69 |
|
|
71 |
Preferences prefs=GridPage.prefs; |
|
72 |
prefs.putBoolean("grid.adjustgrid",toolAdap.getGrid().isAdjustGrid()); |
|
70 | 73 |
return false; |
71 | 74 |
} |
72 | 75 |
|
Also available in: Unified diff