Revision 6879

View differences:

trunk/extensions/extGPS/src/org/gvsig/gps/GPSExtension.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.11  2006-07-31 06:46:02  jaume
46
* Revision 1.12  2006-08-29 07:45:35  jaume
47 47
* *** empty log message ***
48 48
*
49
* Revision 1.11  2006/07/31 06:46:02  jaume
50
* *** empty log message ***
51
*
49 52
* Revision 1.9  2006/05/02 15:57:53  jorpiell
50 53
* Se ha cambiado la interfaz Extension por dos clases: una interfaz (IExtension) y una clase abstract(Extension). A partir de ahora todas las extensiones deben heredar de Extension
51 54
*
......
94 97

  
95 98
import com.iver.andami.PluginServices;
96 99
import com.iver.andami.plugins.Extension;
100
import com.iver.andami.ui.mdiManager.IWindow;
97 101
import com.iver.cit.gvsig.fmap.MapControl;
98 102
import com.iver.cit.gvsig.fmap.core.FPoint2D;
99 103
import com.iver.cit.gvsig.fmap.core.FShape;
......
136 140
		if (location == null || location.getX()==0 || location.getY()==0) return;
137 141
		if (views == null)
138 142
		{
139
			com.iver.andami.ui.mdiManager.View[] aViews = PluginServices.getMDIManager().getAllViews();
143
			IWindow[] aViews = PluginServices.getMDIManager().getAllViews();
140 144
			ArrayList gvViews = new ArrayList();
141 145
			for (int i = 0; i < aViews.length; i++) {
142 146
				if (aViews[i] instanceof View) {
trunk/extensions/extGPS/src/org/gvsig/gps/panel/GPSConfigPanel.java
43 43
 *
44 44
 * $Id$
45 45
 * $Log$
46
 * Revision 1.13  2006-08-22 07:43:18  jaume
46
 * Revision 1.14  2006-08-29 07:45:35  jaume
47 47
 * *** empty log message ***
48 48
 *
49
 * Revision 1.13  2006/08/22 07:43:18  jaume
50
 * *** empty log message ***
51
 *
49 52
 * Revision 1.12  2006/07/31 07:19:39  jaume
50 53
 * improved appearance
51 54
 *
......
96 99
import javax.swing.SwingConstants;
97 100

  
98 101
import org.gvsig.gps.tools.PointCalibrate;
102
import org.gvsig.gui.beans.AcceptCancelPanel;
99 103
import org.gvsig.gui.beans.swing.JButton;
100 104

  
101 105
import com.iver.andami.PluginServices;
106
import com.iver.andami.ui.mdiManager.IWindow;
102 107
import com.iver.andami.ui.mdiManager.SingletonView;
103
import com.iver.andami.ui.mdiManager.View;
104 108
import com.iver.andami.ui.mdiManager.ViewInfo;
105 109
import com.iver.cit.gvsig.fmap.MapControl;
106 110
import com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior;
111
import com.iver.cit.gvsig.gui.View;
107 112
import com.iver.utiles.XMLEntity;
108
import org.gvsig.gui.beans.AcceptCancelPanel;
109 113

  
110 114
public class GPSConfigPanel extends JPanel implements SingletonView{
111 115
	public static String viewModel = "GPSConfigPanel";
......
419 423
	 */
420 424
	protected void calibrate(String viewName) {
421 425
		if (viewName!=null) {
422
			View[] views = PluginServices.getMDIManager().getAllViews();
426
			IWindow[] views = PluginServices.getMDIManager().getAllViews();
423 427
			for (int i = 0; i < views.length; i++) {
424
				if ((views[i] instanceof com.iver.cit.gvsig.gui.View)
428
				if ((views[i] instanceof View)
425 429
						&& (views[i].getViewInfo().getTitle().equals(viewName))){
426
					com.iver.cit.gvsig.gui.View v = (com.iver.cit.gvsig.gui.View) views[i];
430
					View v = (View) views[i];
427 431

  
428 432
					String toolName = "gpsCalibrator";
429 433
					MapControl mc = v.getMapControl();
......
451 455
		}
452 456
		cmbViews.setEnabled(false);
453 457
		cmbViews.removeAll();
454
		View[] aViews = PluginServices.getMDIManager().getAllViews();
458
		IWindow[] aViews = PluginServices.getMDIManager().getAllViews();
455 459
		for (int i = 0; i < aViews.length; i++) {
456
			if (aViews[i] instanceof com.iver.cit.gvsig.gui.View) {
460
			if (aViews[i] instanceof View) {
457 461
				cmbViews.addItem(aViews[i].getViewInfo().getTitle());
458 462
				cmbViews.setEnabled(true);
459 463
			}
trunk/extensions/extGPS/src/org/gvsig/gps/panel/TestPanel.java
43 43
 *
44 44
 * $Id$
45 45
 * $Log$
46
 * Revision 1.12  2006-07-31 07:19:39  jaume
46
 * Revision 1.13  2006-08-29 07:45:35  jaume
47
 * *** empty log message ***
48
 *
49
 * Revision 1.12  2006/07/31 07:19:39  jaume
47 50
 * improved appearance
48 51
 *
49 52
 * Revision 1.11  2006/07/31 06:46:02  jaume
......
108 111
import org.gvsig.gui.beans.swing.JButton;
109 112

  
110 113
import com.iver.andami.PluginServices;
111
import com.iver.andami.ui.mdiManager.View;
114
import com.iver.andami.ui.mdiManager.IWindow;
112 115
import com.iver.andami.ui.mdiManager.ViewInfo;
113 116

  
114 117
/**
115 118
 * @author jaume
116 119
 *
117 120
 */
118
public class TestPanel extends JPanel implements View{
121
public class TestPanel extends JPanel implements IWindow{
119 122
	private GPSDriver gps = GPSDriver.getInstance();;
120 123
	private JLabel lblSampleRate = null;
121 124
	private JTextField txtSampleRate = null;
trunk/extensions/extGPS/src/org/gvsig/gps/tools/PointCalibrate.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.9  2006-07-31 06:46:02  jaume
46
* Revision 1.10  2006-08-29 07:45:35  jaume
47 47
* *** empty log message ***
48 48
*
49
* Revision 1.9  2006/07/31 06:46:02  jaume
50
* *** empty log message ***
51
*
49 52
* Revision 1.7  2006/04/12 06:51:35  jaume
50 53
* *** empty log message ***
51 54
*
......
83 86
import org.gvsig.gps.panel.GPSConfigPanel;
84 87

  
85 88
import com.iver.andami.PluginServices;
89
import com.iver.andami.ui.mdiManager.IWindow;
86 90
import com.iver.andami.ui.mdiManager.SingletonView;
87 91
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
88 92
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
......
120 124
			JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this, "gps_not_ready") );
121 125

  
122 126
		view.getMapControl().setTool(previousToolName);
123
		com.iver.andami.ui.mdiManager.View views[] = PluginServices.getMDIManager().getAllViews();
127
		IWindow views[] = PluginServices.getMDIManager().getAllViews();
124 128
		for (int i = 0; i < views.length; i++) {
125 129
			if (views[i] instanceof SingletonView) {
126 130
				SingletonView s = (SingletonView) views[i];

Also available in: Unified diff