Revision 31496 branches/v2_0_0_prep/extensions/extWMS/src/org/gvsig/wms/gui/panels/WebMapContextSettingsPanel.java
WebMapContextSettingsPanel.java | ||
---|---|---|
134 | 134 |
import org.gvsig.andami.messages.NotificationManager; |
135 | 135 |
import org.gvsig.andami.ui.mdiManager.SingletonWindow; |
136 | 136 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
137 |
import org.gvsig.app.project.documents.view.ProjectView;
|
|
138 |
import org.gvsig.app.project.documents.view.ProjectViewFactory;
|
|
137 |
import org.gvsig.app.project.documents.view.DefaultViewDocument;
|
|
138 |
import org.gvsig.app.project.documents.view.ViewManager;
|
|
139 | 139 |
import org.gvsig.fmap.dal.exception.ReadException; |
140 | 140 |
import org.gvsig.fmap.geom.primitive.Envelope; |
141 | 141 |
import org.gvsig.fmap.mapcontext.MapContext; |
... | ... | |
215 | 215 |
private String strAdvanced = PluginServices.getText(this, "advanced"); |
216 | 216 |
private File targetFile; |
217 | 217 |
private WebMapContext wmc; |
218 |
private ProjectView[] exportableViews;
|
|
218 |
private DefaultViewDocument[] exportableViews;
|
|
219 | 219 |
private JLabel lblView = null; |
220 | 220 |
private JComboBox cmbViews = null; |
221 | 221 |
private String lastWidth, lastHeight; |
... | ... | |
228 | 228 |
|
229 | 229 |
protected boolean useFullExtent = fPrefs.getBoolean("use_full_extent", false); |
230 | 230 |
|
231 |
public WebMapContextSettingsPanel(ProjectView[] views) {
|
|
231 |
public WebMapContextSettingsPanel(DefaultViewDocument[] views) {
|
|
232 | 232 |
super(); |
233 | 233 |
exportableViews = views; |
234 | 234 |
initialize(); |
... | ... | |
300 | 300 |
lblView.setBounds(9, 24, 79, 20); |
301 | 301 |
lblView.setHorizontalTextPosition(SwingConstants.RIGHT); |
302 | 302 |
lblView.setHorizontalAlignment(SwingConstants.RIGHT); |
303 |
lblView.setText(PluginServices.getText(this, ProjectViewFactory.registerName)+":");
|
|
303 |
lblView.setText(PluginServices.getText(this, ViewManager.TYPENAME)+":");
|
|
304 | 304 |
lblTitle = new JLabel(); |
305 | 305 |
lblTitle.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
306 | 306 |
lblTitle.setBounds(9, 48, 79, 20); |
... | ... | |
1038 | 1038 |
JOptionPane.showMessageDialog(this, PluginServices.getText(this, "must_specify_a_file"), PluginServices.getText(this, "error"), JOptionPane.ERROR_MESSAGE); |
1039 | 1039 |
return; |
1040 | 1040 |
} |
1041 |
ProjectView theView = exportableViews[getCmbViews().getSelectedIndex()];
|
|
1041 |
DefaultViewDocument theView = exportableViews[getCmbViews().getSelectedIndex()];
|
|
1042 | 1042 |
MapContext mc = theView.getMapContext(); |
1043 | 1043 |
wmc = new WebMapContext(); |
1044 | 1044 |
|
... | ... | |
1253 | 1253 |
cmbViews.setBounds(91, 24, 432, 21); |
1254 | 1254 |
cmbViews.addItemListener(new java.awt.event.ItemListener() { |
1255 | 1255 |
public void itemStateChanged(java.awt.event.ItemEvent e) { |
1256 |
ProjectView theView = exportableViews[getCmbViews().getSelectedIndex()];
|
|
1256 |
DefaultViewDocument theView = exportableViews[getCmbViews().getSelectedIndex()];
|
|
1257 | 1257 |
Dimension sz = theView.getMapContext(). |
1258 | 1258 |
getViewPort(). |
1259 | 1259 |
getImageSize(); |
Also available in: Unified diff