Revision 10721

View differences:

branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/gui/selectionByTheme/DefaultSelectionByThemeModel.java
56 56
	 */
57 57
	public FLayers getLayers() {
58 58
		IWindow v = PluginServices.getMDIManager().getActiveWindow();
59
		if (v instanceof com.iver.cit.gvsig.project.documents.view.gui.View){
60
			com.iver.cit.gvsig.project.documents.view.gui.View vista = (com.iver.cit.gvsig.project.documents.view.gui.View) v;
59
		if (v instanceof com.iver.cit.gvsig.project.documents.view.gui.BaseView){
60
			com.iver.cit.gvsig.project.documents.view.gui.BaseView vista = (com.iver.cit.gvsig.project.documents.view.gui.BaseView) v;
61 61
			
62 62
			return vista.getModel().getMapContext().getLayers();
63 63
		}
branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/ShowTable.java
61 61
import com.iver.cit.gvsig.project.documents.table.ProjectTable;
62 62
import com.iver.cit.gvsig.project.documents.table.ProjectTableFactory;
63 63
import com.iver.cit.gvsig.project.documents.table.gui.Table;
64
import com.iver.cit.gvsig.project.documents.view.gui.View;
64
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
65 65

  
66 66

  
67 67
/**
......
74 74
	 * @see com.iver.andami.plugins.IExtension#isEnabled()
75 75
	 */
76 76
	public boolean isEnabled() {
77
		View f = (View) PluginServices.getMDIManager().getActiveWindow();
77
		BaseView f = (BaseView) PluginServices.getMDIManager().getActiveWindow();
78 78

  
79 79
		if (f == null) {
80 80
			return false;
......
113 113
			return false;
114 114
		}
115 115

  
116
		return (f instanceof View);
116
		return (f instanceof BaseView);
117 117
	}
118 118

  
119 119
	/**
120 120
	 * @see com.iver.mdiApp.plugins.IExtension#updateUI(java.lang.String)
121 121
	 */
122 122
	public void execute(String s) {
123
		View vista = (View) PluginServices.getMDIManager().getActiveWindow();
123
	
124
		BaseView vista = (BaseView) PluginServices.getMDIManager().getActiveWindow();
124 125
		FLayer[] actives = vista.getModel().getMapContext().getLayers()
125 126
							.getActives();
126 127

  
branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/ClearSelectionExtension.java
59 59
import com.iver.cit.gvsig.project.documents.table.ProjectTable;
60 60
import com.iver.cit.gvsig.project.documents.table.gui.Table;
61 61
import com.iver.cit.gvsig.project.documents.view.IProjectView;
62
import com.iver.cit.gvsig.project.documents.view.gui.View;
62
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
63 63

  
64 64

  
65 65
/**
......
76 76
			boolean refresh = false;
77 77
			com.iver.andami.ui.mdiManager.IWindow view =PluginServices.getMDIManager().getActiveWindow();
78 78

  
79
			if (view instanceof View){
80
				View vista = (View) view;
79
			if (view instanceof BaseView){
80
				BaseView vista = (BaseView) view;
81 81
				IProjectView model = vista.getModel();
82 82
				MapContext mapa = model.getMapContext();
83 83
				MapControl mapCtrl = vista.getMapControl();
......
139 139
		if (view == null) {
140 140
			return false;
141 141
		}
142
		if (view instanceof View) {
143
			MapContext mapa = ((View) view).getModel().getMapContext();
142
		if (view instanceof BaseView) {
143
			MapContext mapa = ((BaseView) view).getModel().getMapContext();
144 144
			return mapa.getLayers().getLayersCount() > 0;
145 145
		}
146 146
		if (view instanceof Table) {
......
158 158
		if (view == null) {
159 159
			return false;
160 160
		}
161
		if (view instanceof View){
162
			MapContext mapa = ((View) view).getMapControl().getMapContext();
161
		if (view instanceof BaseView){
162
			MapContext mapa = ((BaseView) view).getMapControl().getMapContext();
163 163
			return hasVectorLayersWithSelection(mapa.getLayers());
164 164
		}
165 165
		if (view instanceof Table){

Also available in: Unified diff