Revision 7304 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/panels/FileBasedPanel.java
FileBasedPanel.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
import com.iver.andami.PluginServices; |
16 | 16 |
import com.iver.andami.ui.mdiManager.IWindow; |
17 |
import com.iver.cit.gvsig.gui.FOpenDialog; |
|
18 | 17 |
import com.iver.cit.gvsig.gui.panels.ProjChooserPanel; |
18 |
import com.iver.cit.gvsig.project.documents.gui.FOpenDialog; |
|
19 | 19 |
import com.iver.utiles.SimpleFileFilter; |
20 | 20 |
|
21 | 21 |
public class FileBasedPanel extends JWizardPanel { |
... | ... | |
144 | 144 |
chooserPanel = new ProjChooserPanel(FOpenDialog.getLastProjection()); |
145 | 145 |
chooserPanel.setBounds(new java.awt.Rectangle(16,98,348,44)); |
146 | 146 |
IWindow view= PluginServices.getMDIManager().getActiveWindow(); |
147 |
if (view instanceof com.iver.cit.gvsig.gui.View){ |
|
148 |
if (((com.iver.cit.gvsig.gui.View)view).getMapControl().getMapContext().getLayers().getLayersCount()!=0){ |
|
147 |
if (view instanceof com.iver.cit.gvsig.project.documents.view.gui.View){
|
|
148 |
if (((com.iver.cit.gvsig.project.documents.view.gui.View)view).getMapControl().getMapContext().getLayers().getLayersCount()!=0){
|
|
149 | 149 |
chooserPanel.getJBtnChangeProj().setEnabled(false); |
150 | 150 |
} |
151 | 151 |
} |
Also available in: Unified diff