Revision 596 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/MapProperties.java
MapProperties.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.project; |
2 | 2 |
|
3 | 3 |
|
4 |
import javax.swing.JCheckBox; |
|
4 | 5 |
import javax.swing.JPanel; |
5 | 6 |
|
7 |
import com.iver.andami.PluginServices; |
|
8 |
import com.iver.andami.Utilities; |
|
9 |
import com.iver.andami.messages.NotificationManager; |
|
10 |
import com.iver.andami.ui.mdiManager.View; |
|
11 |
import com.iver.andami.ui.mdiManager.ViewInfo; |
|
6 | 12 |
import com.iver.cit.gvsig.project.castor.ProjectMap; |
7 |
import com.iver.mdiApp.App; |
|
8 |
import com.iver.mdiApp.Utilities; |
|
9 |
import com.iver.mdiApp.ui.MDIManager.View; |
|
10 |
import com.iver.mdiApp.ui.MDIManager.ViewInfo; |
|
11 |
|
|
12 |
|
|
13 |
import javax.swing.JCheckBox; |
|
14 | 13 |
/** |
15 | 14 |
* Dialogo con la informaci?n de los mapas |
16 | 15 |
* |
... | ... | |
123 | 122 |
private javax.swing.JLabel getJLabel() { |
124 | 123 |
if (jLabel == null) { |
125 | 124 |
jLabel = new javax.swing.JLabel(); |
126 |
jLabel.setText(Utilities.getMessage(this, "nombre") + ":");
|
|
125 |
jLabel.setText(PluginServices.getText(this, "nombre") + ":");
|
|
127 | 126 |
jLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
128 | 127 |
} |
129 | 128 |
|
... | ... | |
152 | 151 |
private javax.swing.JLabel getJLabel1() { |
153 | 152 |
if (jLabel1 == null) { |
154 | 153 |
jLabel1 = new javax.swing.JLabel(); |
155 |
jLabel1.setText(Utilities.getMessage(this, "creation_date") + ":");
|
|
154 |
jLabel1.setText(PluginServices.getText(this, "creation_date") + ":");
|
|
156 | 155 |
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
157 | 156 |
} |
158 | 157 |
|
... | ... | |
183 | 182 |
private javax.swing.JLabel getJLabel2() { |
184 | 183 |
if (jLabel2 == null) { |
185 | 184 |
jLabel2 = new javax.swing.JLabel(); |
186 |
jLabel2.setText(Utilities.getMessage(this, "owner") + ":");
|
|
185 |
jLabel2.setText(PluginServices.getText(this, "owner") + ":");
|
|
187 | 186 |
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
188 | 187 |
} |
189 | 188 |
|
... | ... | |
212 | 211 |
private javax.swing.JLabel getJLabel3() { |
213 | 212 |
if (jLabel3 == null) { |
214 | 213 |
jLabel3 = new javax.swing.JLabel(); |
215 |
jLabel3.setText(Utilities.getMessage(this, "comentarios") + ":");
|
|
214 |
jLabel3.setText(PluginServices.getText(this, "comentarios") + ":");
|
|
216 | 215 |
} |
217 | 216 |
|
218 | 217 |
return jLabel3; |
... | ... | |
254 | 253 |
private javax.swing.JLabel getJLabel4() { |
255 | 254 |
if (jLabel4 == null) { |
256 | 255 |
jLabel4 = new javax.swing.JLabel(); |
257 |
jLabel4.setText(Utilities.getMessage(this, "espaciado_horizontal") +
|
|
256 |
jLabel4.setText(PluginServices.getText(this, "espaciado_horizontal") +
|
|
258 | 257 |
":"); |
259 | 258 |
} |
260 | 259 |
|
... | ... | |
283 | 282 |
private javax.swing.JLabel getJLabel5() { |
284 | 283 |
if (jLabel5 == null) { |
285 | 284 |
jLabel5 = new javax.swing.JLabel(); |
286 |
jLabel5.setText(Utilities.getMessage(this, "espaciado_vertical") +
|
|
285 |
jLabel5.setText(PluginServices.getText(this, "espaciado_vertical") +
|
|
287 | 286 |
":"); |
288 | 287 |
} |
289 | 288 |
|
... | ... | |
312 | 311 |
private javax.swing.JCheckBox getChkMalla() { |
313 | 312 |
if (chkMalla == null) { |
314 | 313 |
chkMalla = new javax.swing.JCheckBox(); |
315 |
chkMalla.setText(Utilities.getMessage(this, "malla_activada"));
|
|
314 |
chkMalla.setText(PluginServices.getText(this, "malla_activada"));
|
|
316 | 315 |
chkMalla.setSelected(true); |
317 | 316 |
chkMalla.setPreferredSize(new java.awt.Dimension(100,24)); |
318 | 317 |
chkMalla.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING); |
... | ... | |
336 | 335 |
if (btnOk == null) { |
337 | 336 |
btnOk = new javax.swing.JButton(); |
338 | 337 |
btnOk.setPreferredSize(new java.awt.Dimension(80,23)); |
339 |
btnOk.setText(Utilities.getMessage(this, "ok"));
|
|
338 |
btnOk.setText(PluginServices.getText(this, "ok"));
|
|
340 | 339 |
|
341 | 340 |
btnOk.addActionListener(new java.awt.event.ActionListener() { |
342 | 341 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
358 | 357 |
double f = new Double(sv).doubleValue(); |
359 | 358 |
map.getModel().getAtributes().setNumUnitsY(f); |
360 | 359 |
} |
361 |
App.instance.getMDIContext().refreshViewTitle(map.getModel()); |
|
362 |
App.instance.getMDIContext().closeView(MapProperties.this);
|
|
360 |
|
|
361 |
PluginServices.getMDIManager().closeView(MapProperties.this);
|
|
363 | 362 |
map.getModel().setIsDrawGrid(getJCheckBox1().isSelected()); |
364 | 363 |
map.getModel().refresh(); |
365 | 364 |
} catch (NumberFormatException ex) { |
366 |
App.instance.getNm().addInfo("no es un double", ex);
|
|
365 |
NotificationManager.addInfo("no es un double", ex);
|
|
367 | 366 |
} |
368 | 367 |
} |
369 | 368 |
}); |
... | ... | |
381 | 380 |
if (btnCancel == null) { |
382 | 381 |
btnCancel = new javax.swing.JButton(); |
383 | 382 |
btnCancel.setPreferredSize(new java.awt.Dimension(80,23)); |
384 |
btnCancel.setText(Utilities.getMessage(this, "cancel"));
|
|
383 |
btnCancel.setText(PluginServices.getText(this, "cancel"));
|
|
385 | 384 |
|
386 | 385 |
btnCancel.addActionListener(new java.awt.event.ActionListener() { |
387 | 386 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
388 |
App.instance.getMDIContext().closeView(MapProperties.this);
|
|
387 |
PluginServices.getMDIManager().closeView(MapProperties.this);
|
|
389 | 388 |
} |
390 | 389 |
}); |
391 | 390 |
} |
... | ... | |
496 | 495 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
497 | 496 |
*/ |
498 | 497 |
public ViewInfo getViewInfo() { |
499 |
if (m_viewinfo==null){ |
|
500 |
m_viewinfo=new ViewInfo(); |
|
501 |
m_viewinfo.setTitle(Utilities.getMessage(this, "propiedades_mapa")); |
|
502 |
m_viewinfo.setFeatures(ViewInfo.MODALDIALOG); |
|
503 |
} |
|
498 |
ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG); |
|
499 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_mapa")); |
|
504 | 500 |
return m_viewinfo; |
505 | 501 |
} |
506 | 502 |
|
... | ... | |
555 | 551 |
private javax.swing.JCheckBox getJCheckBox() { |
556 | 552 |
if(jCheckBox == null) { |
557 | 553 |
jCheckBox = new javax.swing.JCheckBox(); |
558 |
jCheckBox.setText(Utilities.getMessage(this,"activar_regla"));
|
|
554 |
jCheckBox.setText(PluginServices.getText(this,"activar_regla"));
|
|
559 | 555 |
jCheckBox.setSelected(map.getModel().getRuler()); |
560 | 556 |
jCheckBox.addActionListener(new java.awt.event.ActionListener() { |
561 | 557 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
601 | 597 |
if (jCheckBox1 == null) { |
602 | 598 |
jCheckBox1 = new JCheckBox(); |
603 | 599 |
jCheckBox1.setSelected(map.getModel().getIsDrawGrid()); |
604 |
jCheckBox1.setText(Utilities.getMessage(this,"visualizar_cuadricula"));
|
|
600 |
jCheckBox1.setText(PluginServices.getText(this,"visualizar_cuadricula"));
|
|
605 | 601 |
jCheckBox1.addActionListener(new java.awt.event.ActionListener() { |
606 | 602 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
607 | 603 |
|
Also available in: Unified diff