Revision 41852
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toolListeners/snapping/gui/SnapConfig.java | ||
---|---|---|
44 | 44 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
45 | 45 |
import org.gvsig.fmap.mapcontrol.MapControlManager; |
46 | 46 |
import org.gvsig.fmap.mapcontrol.tools.snapping.snappers.ISnapper; |
47 |
import org.gvsig.tools.ToolsLocator; |
|
48 |
import org.gvsig.tools.i18n.I18nManager; |
|
47 | 49 |
|
48 | 50 |
/** |
49 | 51 |
* @author fjp |
... | ... | |
243 | 245 |
*/ |
244 | 246 |
private JCheckBox getJChkBoxRefentActive() { |
245 | 247 |
if (jChkBoxRefentActive == null) { |
248 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
246 | 249 |
jChkBoxRefentActive = new JCheckBox(); |
247 |
jChkBoxRefentActive.setText("Referencia a Objetos Activada:");
|
|
250 |
jChkBoxRefentActive.setText(i18nManager.getTranslation("activate_reference_to_objects"));
|
|
248 | 251 |
jChkBoxRefentActive.setBounds(new java.awt.Rectangle(26,10,418,23)); |
249 | 252 |
} |
250 | 253 |
return jChkBoxRefentActive; |
... | ... | |
314 | 317 |
return getJChkBoxRefentActive().isSelected(); |
315 | 318 |
} |
316 | 319 |
|
317 |
|
|
318 |
public void selectSnappers() { |
|
320 |
|
|
321 |
public void selectSnappers() {
|
|
319 | 322 |
for (int i=0;i<mapControlManager.getSnapperCount();i++) { |
320 | 323 |
getTableModel().setValueAt(mapControlManager.getSnapperAt(i).isEnabled(),i,0); |
321 | 324 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/gui/preferences/EditionPreferencePage.java | ||
---|---|---|
58 | 58 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
59 | 59 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
60 | 60 |
import org.gvsig.fmap.mapcontrol.MapControlManager; |
61 |
import org.gvsig.tools.ToolsLocator; |
|
62 |
import org.gvsig.tools.i18n.I18nManager; |
|
61 | 63 |
import org.jfree.util.Log; |
62 | 64 |
import org.slf4j.Logger; |
63 | 65 |
import org.slf4j.LoggerFactory; |
... | ... | |
215 | 217 |
BorderLayout layout = new BorderLayout(); |
216 | 218 |
layout.setHgap(20); |
217 | 219 |
|
220 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
218 | 221 |
this.setLayout(layout); |
219 | 222 |
|
220 | 223 |
jLabelCache = new JLabel(); |
221 |
jLabelCache |
|
222 |
.setText(PluginServices.getText(this, "capas_edition_cache")); |
|
224 |
jLabelCache.setText(PluginServices.getText(this, "capas_edition_cache")); |
|
223 | 225 |
jLabelCache.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); |
224 | 226 |
jLabelCache.setPreferredSize(new java.awt.Dimension(500,20)); |
225 | 227 |
jLabelCache.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
226 | 228 |
jLabel1 = new JLabel(); |
227 |
jLabel1.setText("pixels");
|
|
229 |
jLabel1.setText(i18nManager.getTranslation("pixels"));
|
|
228 | 230 |
jLabel1.setBounds(new java.awt.Rectangle(195, 8, 207, 15)); |
229 | 231 |
jLabel1.setPreferredSize(new java.awt.Dimension(28, 20)); |
230 | 232 |
jLabel1.setName("jLabel1"); |
231 | 233 |
jLabel = new JLabel(); |
232 |
jLabel.setText("Snap Tolerance:");
|
|
234 |
jLabel.setText(i18nManager.getTranslation("snap_tolerance"));
|
|
233 | 235 |
jLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
234 | 236 |
jLabel.setName("jLabel"); |
235 | 237 |
jLabel.setBounds(new java.awt.Rectangle(15, 8, 122, 15)); |
Also available in: Unified diff