Revision 33261 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/gui/ProjectProperties.java
ProjectProperties.java | ||
---|---|---|
48 | 48 |
import javax.swing.JPanel; |
49 | 49 |
|
50 | 50 |
import org.gvsig.gui.beans.AcceptCancelPanel; |
51 |
import org.gvsig.tools.file.PathGenerator; |
|
51 | 52 |
|
52 | 53 |
import com.iver.andami.PluginServices; |
53 | 54 |
import com.iver.andami.ui.mdiManager.IWindow; |
54 | 55 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
55 | 56 |
import com.iver.cit.gvsig.ProjectExtension; |
56 | 57 |
import com.iver.cit.gvsig.project.Project; |
58 |
import java.awt.Dimension; |
|
59 |
import javax.swing.JRadioButton; |
|
57 | 60 |
|
58 | 61 |
|
59 | 62 |
/** |
... | ... | |
84 | 87 |
private javax.swing.JButton btnColor = null; |
85 | 88 |
private javax.swing.JScrollPane jScrollPane = null; |
86 | 89 |
private WindowInfo m_viewinfo = null; |
90 |
private JRadioButton rbAbsolutePath = null; |
|
87 | 91 |
/** |
88 | 92 |
* This is the default constructor |
89 | 93 |
* |
... | ... | |
117 | 121 |
getTxtComments().setText(project.getComments()); |
118 | 122 |
getTxtCreationDate().setText(project.getCreationDate()); |
119 | 123 |
getTxtModificationDate().setText(project.getModificationDate()); |
120 |
|
|
124 |
getRbAbsolutePath().setSelected(project.isAbsolutePath()); |
|
125 |
|
|
121 | 126 |
getLblColor().setBackground(project.getSelectionColor()); |
122 | 127 |
} |
123 | 128 |
|
... | ... | |
139 | 144 |
jPanel.add(getTxtModificationDate(), null); |
140 | 145 |
jPanel.add(getJLabel4(), null); |
141 | 146 |
jPanel.add(getTxtOwner(), null); |
147 |
jPanel.add(getRbAbsolutePath(), null); |
|
142 | 148 |
jPanel.add(getJLabel5(), null); |
143 | 149 |
jPanel.add(getJScrollPane(), null); |
144 | 150 |
jPanel.add(getJLabel6(), null); |
... | ... | |
150 | 156 |
project.setOwner(txtOwner.getText()); |
151 | 157 |
project.setComments(txtComments.getText()); |
152 | 158 |
project.setSelectionColor(lblColor.getBackground()); |
159 |
project.setIsAbsolutePath(rbAbsolutePath.isSelected()); |
|
160 |
PathGenerator pg = PathGenerator.getInstance(); |
|
161 |
pg.setIsAbsolutePath(rbAbsolutePath.isSelected()); |
|
153 | 162 |
PluginServices.getMDIManager().closeWindow(ProjectProperties.this); |
154 | 163 |
} |
155 | 164 |
}, cancelAction = new java.awt.event.ActionListener() { |
... | ... | |
158 | 167 |
} |
159 | 168 |
}; |
160 | 169 |
jPanel.add(new AcceptCancelPanel(okAction, cancelAction)); |
161 |
jPanel.setPreferredSize(new java.awt.Dimension(250, 10)); |
|
170 |
jPanel.setPreferredSize(new Dimension(500, 600)); |
|
171 |
|
|
162 | 172 |
} |
163 | 173 |
|
164 | 174 |
return jPanel; |
... | ... | |
474 | 484 |
public WindowInfo getWindowInfo() { |
475 | 485 |
WindowInfo m_viewinfo=new WindowInfo(WindowInfo.MODALDIALOG); |
476 | 486 |
m_viewinfo.setWidth(450); |
477 |
m_viewinfo.setHeight(250);
|
|
487 |
m_viewinfo.setHeight(300);
|
|
478 | 488 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_sesion")); |
479 | 489 |
return m_viewinfo; |
480 | 490 |
} |
... | ... | |
488 | 498 |
public Object getWindowProfile() { |
489 | 499 |
return WindowInfo.DIALOG_PROFILE; |
490 | 500 |
} |
501 |
|
|
502 |
/** |
|
503 |
* This method initializes rbAbsolutePath |
|
504 |
* |
|
505 |
* @return javax.swing.JRadioButton |
|
506 |
*/ |
|
507 |
private JRadioButton getRbAbsolutePath() { |
|
508 |
if (rbAbsolutePath == null) { |
|
509 |
rbAbsolutePath = new JRadioButton(); |
|
510 |
rbAbsolutePath.setText(PluginServices.getText(this,"save_absolute_path")); |
|
511 |
rbAbsolutePath.setPreferredSize(new Dimension(420, 20)); |
|
512 |
} |
|
513 |
return rbAbsolutePath; |
|
514 |
} |
|
491 | 515 |
} |
492 | 516 |
|
493 | 517 |
|
Also available in: Unified diff