Revision 6877

View differences:

trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/SingletonViewSupport.java
51 51

  
52 52
import com.iver.andami.ui.mdiManager.SingletonDialogAlreadyShownException;
53 53
import com.iver.andami.ui.mdiManager.SingletonView;
54
import com.iver.andami.ui.mdiManager.View;
54
import com.iver.andami.ui.mdiManager.IWindow;
55 55
import com.iver.andami.ui.mdiManager.ViewInfo;
56 56

  
57 57

  
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/ViewStackSupport.java
51 51
import com.iver.andami.PluginServices;
52 52
import com.iver.andami.persistence.generate.PluginsStatus;
53 53
import com.iver.andami.plugins.config.generate.Menu;
54
import com.iver.andami.ui.mdiManager.View;
54
import com.iver.andami.ui.mdiManager.IWindow;
55 55
import com.iver.andami.ui.mdiManager.ViewInfo;
56 56

  
57 57
/**
......
71 71
		this.vis = vis;
72 72
	}
73 73

  
74
	public void add(View v, final ActionListener listener) {
74
	public void add(IWindow v, final ActionListener listener) {
75 75
		vistas.add(v);
76 76
		ViewInfo vi = vis.getViewInfo(v);
77 77
		int id = vi.getId();
......
83 83
		PluginServices.getMainFrame().addMenu(m, listener, PluginServices.getPluginServices(this).getClassLoader() );
84 84
	}
85 85
	
86
	public void remove(View v){
86
	public void remove(IWindow v){
87 87
		Menu m = (Menu) viewMenu.get(v);
88 88
		if (m == null) return;
89 89
		PluginServices.getMainFrame().removeMenu(m);
......
95 95
	 * FJP: No se usa, y no s? para qu? estaba pensado. 
96 96
	 */
97 97
	public void ctrltab(){
98
		View v = (View) vistas.remove(vistas.size() - 1);
98
		IWindow v = (IWindow) vistas.remove(vistas.size() - 1);
99 99
		vistas.add(0, v);
100 100
	}
101 101
	
102
	public View getActiveView(){
102
	public IWindow getActiveView(){
103 103
		if (vistas.size() == 0) return null;
104 104
        int index = vistas.size()-1;
105 105
        while (index >= 0)
106 106
        {
107
            View aux = (View) vistas.get(index);
107
            IWindow aux = (IWindow) vistas.get(index);
108 108
            if (!aux.getViewInfo().isPalette())
109 109
            {
110 110
                System.err.println("getActiveView = " + aux.getViewInfo().getTitle());
......
122 122
     * posici?n.
123 123
     * @param v
124 124
     */
125
    public void setActive(View v)
125
    public void setActive(IWindow v)
126 126
    {
127
        View copia = null;
127
        IWindow copia = null;
128 128
        boolean bCopiar = false;
129 129
        // Si es de tipo palette, no se pone como activa.
130 130
        // De esta forma, nunca nos la devolver?.... Bueno, 
......
135 135
        
136 136
        for (int i=0; i < vistas.size(); i++)
137 137
        {
138
            View aux = (View) vistas.get(i);
138
            IWindow aux = (IWindow) vistas.get(i);
139 139
            if (aux == v)
140 140
            {
141 141
                copia = aux;
......
145 145
            {
146 146
                if (i < vistas.size()-1)
147 147
                {
148
                    View siguiente = (View) vistas.get(i+1);
148
                    IWindow siguiente = (IWindow) vistas.get(i+1);
149 149
                    vistas.set(i,siguiente);
150 150
                }
151 151
                else // La ?ltima
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/NewSkin.java
81 81
import com.iver.andami.ui.mdiManager.MDIUtilities;
82 82
import com.iver.andami.ui.mdiManager.SingletonDialogAlreadyShownException;
83 83
import com.iver.andami.ui.mdiManager.SingletonView;
84
import com.iver.andami.ui.mdiManager.View;
84
import com.iver.andami.ui.mdiManager.IWindow;
85 85
import com.iver.andami.ui.mdiManager.ViewInfo;
86 86
import com.iver.andami.ui.mdiManager.ViewListener;
87 87
import com.iver.core.StatusBar;
......
154 154
        PluginServices.registerKeyStroke(controlTab, new KeyEventDispatcher() {
155 155

  
156 156
			public boolean dispatchKeyEvent(KeyEvent e) {
157
				View[] views = getAllViews();
157
				IWindow[] views = getAllViews();
158 158
				if (views.length<=0 || e.getID() == KeyEvent.KEY_PRESSED)
159 159
					return false;
160 160

  
......
174 174
    }
175 175

  
176 176
    /**
177
     * @see com.iver.andami.ui.mdiManager.MDIManager#addView(com.iver.andami.ui.mdiManager.View)
177
     * @see com.iver.andami.ui.mdiManager.MDIManager#addView(com.iver.andami.ui.mdiManager.IWindow)
178 178
     */
179
    public View addView(View p) throws SingletonDialogAlreadyShownException {
179
    public IWindow addView(IWindow p) throws SingletonDialogAlreadyShownException {
180 180
        // se obtiene la informaci?n de la vista
181 181
        ViewInfo vi = vis.getViewInfo(p);
182 182

  
......
208 208
                addJInternalFrame(frame, vi);
209 209
                vss.add(p, new ActionListener() {
210 210
                    public void actionPerformed(ActionEvent e) {
211
                        View v = vis.getViewById(Integer.parseInt(e
211
                        IWindow v = vis.getViewById(Integer.parseInt(e
212 212
                                .getActionCommand()));
213 213
                        JInternalFrame f = fvs.getJInternalFrame(v);
214 214
                        activateJInternalFrame(f);
......
230 230
                // Se sit?a la vista en la pila de vistas
231 231
                vss.add(p, new ActionListener() {
232 232
                    public void actionPerformed(ActionEvent e) {
233
                        View v = vis.getViewById(Integer.parseInt(e
233
                        IWindow v = vis.getViewById(Integer.parseInt(e
234 234
                                .getActionCommand()));
235 235
                        JInternalFrame f = fvs.getJInternalFrame(v);
236 236
                        activateJInternalFrame(f);
......
246 246
    /**
247 247
     * Similar method as 'addView' but in this case centres the new JInternalFrame of the View in the contentPane of the MainFrame
248 248
     * 
249
     * @see com.iver.core.mdiManager.NewSkin#addView(com.iver.andami.ui.mdiManager.View)
249
     * @see com.iver.core.mdiManager.NewSkin#addView(com.iver.andami.ui.mdiManager.IWindow)
250 250
     * 
251 251
     * @author Pablo Piqueras Bartolom?
252 252
     */
253
	public View addCentredView(View p) throws SingletonDialogAlreadyShownException {
253
	public IWindow addCentredView(IWindow p) throws SingletonDialogAlreadyShownException {
254 254
	    // se obtiene la informaci?n de la vista
255 255
        ViewInfo vi = vis.getViewInfo(p);
256 256

  
......
282 282
                addJInternalFrame(frame, vi);
283 283
                vss.add(p, new ActionListener() {
284 284
                    public void actionPerformed(ActionEvent e) {
285
                        View v = vis.getViewById(Integer.parseInt(e
285
                        IWindow v = vis.getViewById(Integer.parseInt(e
286 286
                                .getActionCommand()));
287 287
                        JInternalFrame f = fvs.getJInternalFrame(v);
288 288
                        centreJInternalFrame(f); // Centre this JInternalFrame
......
307 307
                // Se sit?a la vista en la pila de vistas
308 308
                vss.add(p, new ActionListener() {
309 309
                    public void actionPerformed(ActionEvent e) {
310
                        View v = vis.getViewById(Integer.parseInt(e
310
                        IWindow v = vis.getViewById(Integer.parseInt(e
311 311
                                .getActionCommand()));
312 312
                        JInternalFrame f = fvs.getJInternalFrame(v);                        
313 313
                        activateJInternalFrame(f);
......
399 399
     *
400 400
     * @param p
401 401
     */
402
    private void addJInternalFrame(View p) {
402
    private void addJInternalFrame(IWindow p) {
403 403
        ViewInfo vi = vis.getViewInfo(p);
404 404

  
405 405
        JInternalFrame wnd = fvs.getJInternalFrame(p);
......
448 448
     *
449 449
     * @param p
450 450
     */
451
    private void addJDialog(View p) {
451
    private void addJDialog(IWindow p) {
452 452
        JDialog dlg = fvs.getJDialog(p);
453 453

  
454 454
        centerDialog(dlg);
......
462 462
    /**
463 463
     * @see com.iver.andami.ui.mdiManager.MDIManager#getActiveView()
464 464
     */
465
    public View getActiveView() {
465
    public IWindow getActiveView() {
466 466
        JInternalFrame jif = panel.getSelectedFrame();
467 467

  
468 468
        if (jif != null) {
469
            View theView = fvs.getView(jif);
469
            IWindow theView = fvs.getView(jif);
470 470
            if (theView == null)
471 471
                return null;
472 472
            if (theView.getViewInfo().isPalette())
......
478 478

  
479 479
        return null;
480 480
    }
481
    public View getFocusView(){
481
    public IWindow getFocusView(){
482 482
    	 JInternalFrame jif = panel.getSelectedFrame();
483 483

  
484 484
         if (jif != null) {
485
             View theView = fvs.getView(jif);
485
             IWindow theView = fvs.getView(jif);
486 486
             if (theView == null)
487 487
                 return null;
488 488
             return fvs.getView(jif);
......
490 490
         return null;
491 491
    }
492 492
    /**
493
     * @see com.iver.andami.ui.mdiManager.MDIManager#closeView(com.iver.andami.ui.mdiManager.View)
493
     * @see com.iver.andami.ui.mdiManager.MDIManager#closeView(com.iver.andami.ui.mdiManager.IWindow)
494 494
     */
495
    public void closeView(View p) {
495
    public void closeView(IWindow p) {
496 496
        // Si es un di?logo modal
497 497
        if (p.getViewInfo().isModal()) {
498 498
            closeJDialog();
......
509 509
        Iterator i = fvs.getViewIterator();
510 510

  
511 511
        while (i.hasNext()) {
512
            eliminar.add((View) i.next());
512
            eliminar.add((IWindow) i.next());
513 513
        }
514 514

  
515 515
        for (Iterator iter = eliminar.iterator(); iter.hasNext();) {
516
            View vista = (View) iter.next();
516
            IWindow vista = (IWindow) iter.next();
517 517
            closeView(vista);
518 518
        }
519 519
    }
520 520

  
521 521
    /**
522
     * @see com.iver.andami.ui.mdiManager.MDIManager#getViewInfo(com.iver.andami.ui.mdiManager.View)
522
     * @see com.iver.andami.ui.mdiManager.MDIManager#getViewInfo(com.iver.andami.ui.mdiManager.IWindow)
523 523
     */
524
    public ViewInfo getViewInfo(View v) {
524
    public ViewInfo getViewInfo(IWindow v) {
525 525
    	//ViewInfo vi = new ViewInfo();
526 526
    	ViewInfo vi = vis.getViewInfo(v);
527 527
    	JInternalFrame f = fvs.getJInternalFrame(v);
......
548 548

  
549 549
        dlg.setVisible(false);
550 550

  
551
        View s = (View) fvs.getView(dlg);
551
        IWindow s = (IWindow) fvs.getView(dlg);
552 552

  
553 553
        callViewClosed(s);
554 554

  
......
566 566
     * @param view
567 567
     *            DOCUMENT ME!
568 568
     */
569
    private void callViewClosed(View view) {
569
    private void callViewClosed(IWindow view) {
570 570
        if (view instanceof ViewListener) {
571 571
            ((ViewListener) view).viewClosed();
572 572
        }
......
578 578
     * @param view
579 579
     *            DOCUMENT ME!
580 580
     */
581
    private void callViewActivated(View view) {
581
    private void callViewActivated(IWindow view) {
582 582
        logger.debug("View " + view.getViewInfo().getTitle()
583 583
                + " activated (callViewActivated)");
584 584
        if (view instanceof ViewListener) {
......
593 593
     */
594 594
    private void closeJInternalFrame(JInternalFrame frame) {
595 595
        try {
596
            View s = (View) fvs.getView(frame);
596
            IWindow s = (IWindow) fvs.getView(frame);
597 597

  
598 598
            frame.setClosed(true);
599 599
            callViewClosed(s);
......
691 691

  
692 692
            // activatedInternalFramesStack.push(e.getInternalFrame());
693 693

  
694
            View panel = fvs.getView((JInternalFrame) e.getSource());
694
            IWindow panel = fvs.getView((JInternalFrame) e.getSource());
695 695

  
696 696
            ViewInfo vi = vis.getViewInfo(panel);
697 697
            if (vi.isPalette())
......
729 729
            // e.getInternalFrame().getTitle());
730 730

  
731 731
            JInternalFrame c = (JInternalFrame) e.getSource();
732
            ViewInfo vi = vis.getViewInfo((View) fvs.getView(c));
732
            ViewInfo vi = vis.getViewInfo((IWindow) fvs.getView(c));
733 733

  
734
            View view = fvs.getView(c);
734
            IWindow view = fvs.getView(c);
735 735
            callViewClosed(view);
736 736
            boolean alwaysLive;
737 737
            if (view instanceof SingletonView) {
......
750 750

  
751 751
            // Para activar el JInternalFrame desde la que hemos
752 752
            // abierto la ventana que estamos cerrando
753
            View lastView = vss.getActiveView();
753
            IWindow lastView = vss.getActiveView();
754 754
            // La activamos
755 755
            if (lastView != null) {
756 756
                System.err.println("Devuelvo el foco a "
......
774 774
            // logger.debug("internalDeActivated " +
775 775
            // e.getInternalFrame().getTitle());
776 776
            JInternalFrame c = (JInternalFrame) e.getSource();
777
            View andamiView = fvs.getView(c);
777
            IWindow andamiView = fvs.getView(c);
778 778
            if (andamiView != null) {
779 779
                ViewInfo vi = vis.getViewInfo(andamiView);
780 780
                if (vi.isPalette())
......
832 832
        return true;
833 833
    }
834 834

  
835
    public View[] getAllViews() {
835
    public IWindow[] getAllViews() {
836 836
        ArrayList views = new ArrayList();
837 837
        Iterator i = fvs.getViewIterator();
838 838

  
839 839
        while (i.hasNext()) {
840
            views.add((View) i.next());
840
            views.add((IWindow) i.next());
841 841
        }
842
        return (View[]) views.toArray(new View[0]);
842
        return (IWindow[]) views.toArray(new IWindow[0]);
843 843
    }
844 844

  
845
    public void setMaximum(View v, boolean bMaximum) throws PropertyVetoException
845
    public void setMaximum(IWindow v, boolean bMaximum) throws PropertyVetoException
846 846
    {
847 847
        JInternalFrame f = fvs.getJInternalFrame(v);
848 848
        f.setMaximum(bMaximum);
849 849
    }
850 850

  
851
    public void changeViewInfo(View v, ViewInfo vi){
851
    public void changeViewInfo(IWindow v, ViewInfo vi){
852 852
    	JInternalFrame f = fvs.getJInternalFrame(v);
853 853
		f.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
854 854
		JDesktopPane pnl = f.getDesktopPane();
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/FrameViewSupport.java
52 52
import javax.swing.JPanel;
53 53

  
54 54
import com.iver.andami.ui.mdiFrame.MDIFrame;
55
import com.iver.andami.ui.mdiManager.View;
55
import com.iver.andami.ui.mdiManager.IWindow;
56 56
import com.iver.andami.ui.mdiManager.ViewInfo;
57 57

  
58 58

  
......
80 80
    	return viewFrame.keySet().iterator();
81 81
    }
82 82
    
83
    public boolean contains(View v){
83
    public boolean contains(IWindow v){
84 84
    	return viewFrame.containsKey(v);
85 85
    }
86 86

  
......
99 99
     *
100 100
     * @return DOCUMENT ME!
101 101
     */
102
    public JDialog getJDialog(View p) {
102
    public JDialog getJDialog(IWindow p) {
103 103
        JDialog dlg = (JDialog) viewFrame.get(p);
104 104

  
105 105
        if (dlg == null) {
......
128 128
     *
129 129
     * @return DOCUMENT ME!
130 130
     */
131
    public JInternalFrame getJInternalFrame(View p) {
131
    public JInternalFrame getJInternalFrame(IWindow p) {
132 132
        JInternalFrame frame = (JInternalFrame) viewFrame.get(p);
133 133

  
134 134
        if (frame == null) {
......
143 143
        }
144 144
    }
145 145

  
146
    public JInternalFrame createJInternalFrame(View p)
146
    public JInternalFrame createJInternalFrame(IWindow p)
147 147
    {
148 148
        ViewInfo vi = vis.getViewInfo(p);
149 149
        JInternalFrame nuevo = new JInternalFrame();
......
164 164
        return nuevo;
165 165
    }
166 166
    
167
    public View getView(Component dlg){
168
    	return (View) frameView.get(dlg);
167
    public IWindow getView(Component dlg){
168
    	return (IWindow) frameView.get(dlg);
169 169
    }
170 170
    
171
    public void closeView(View v){
171
    public void closeView(IWindow v){
172 172
    	Object c = viewFrame.remove(v);
173 173
    	frameView.remove(c);
174 174
    }
......
179 179
     * @param v DOCUMENT ME!
180 180
     * @param x DOCUMENT ME!
181 181
     */
182
    public void setX(View v, int x) {
182
    public void setX(IWindow v, int x) {
183 183
    	JInternalFrame o = (JInternalFrame) viewFrame.get(v);
184 184
        o.setLocation(x, o.getY());
185 185
    }
......
190 190
     * @param v DOCUMENT ME!
191 191
     * @param y DOCUMENT ME!
192 192
     */
193
    public void setY(View v, int y) {
193
    public void setY(IWindow v, int y) {
194 194
    	JInternalFrame o = (JInternalFrame) viewFrame.get(v);
195 195

  
196 196
        o.setLocation(o.getX(), y);
......
202 202
     * @param v DOCUMENT ME!
203 203
     * @param height DOCUMENT ME!
204 204
     */
205
    public void setHeight(View v, int height) {
205
    public void setHeight(IWindow v, int height) {
206 206
    	JInternalFrame o = (JInternalFrame) viewFrame.get(v);
207 207

  
208 208
        o.setSize(o.getWidth(), height);
......
214 214
     * @param v DOCUMENT ME!
215 215
     * @param width DOCUMENT ME!
216 216
     */
217
    public void setWidth(View v, int width) {
217
    public void setWidth(IWindow v, int width) {
218 218
    	JInternalFrame o = (JInternalFrame) viewFrame.get(v);
219 219

  
220 220
    	o.setSize(width, o.getHeight());
......
226 226
     * @param v DOCUMENT ME!
227 227
     * @param title DOCUMENT ME!
228 228
     */
229
    public void setTitle(View v, String title) {
229
    public void setTitle(IWindow v, String title) {
230 230
    	JInternalFrame o = (JInternalFrame) viewFrame.get(v);
231 231
        o.setTitle(title);
232 232
    }
......
247 247
     *
248 248
     * @return DOCUMENT ME!
249 249
     */
250
    private int getWidth(View v) {
250
    private int getWidth(IWindow v) {
251 251
        ViewInfo vi = vis.getViewInfo(v);
252 252

  
253 253
        if (vi.getWidth() == -1) {
......
266 266
     *
267 267
     * @return DOCUMENT ME!
268 268
     */
269
    private int getHeight(View v) {
269
    private int getHeight(IWindow v) {
270 270
        ViewInfo vi = vis.getViewInfo(v);
271 271

  
272 272
        if (vi.getHeight() == -1) {
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/ViewInfoSupport.java
44 44
import com.iver.andami.ui.mdiFrame.MainFrame;
45 45
import com.iver.andami.ui.mdiFrame.NoSuchMenuException;
46 46
import com.iver.andami.ui.mdiManager.SingletonView;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.andami.ui.mdiManager.ViewInfo;
49 49

  
50 50
import java.beans.PropertyChangeEvent;
......
89 89
	 *
90 90
	 * @return La vista o null si no hay ninguna vista con ese identificador
91 91
	 */
92
	public View getViewById(int id) {
92
	public IWindow getViewById(int id) {
93 93
		Enumeration en = infoView.keys();
94 94

  
95 95
		while (en.hasMoreElements()) {
96 96
			ViewInfo vi = (ViewInfo) en.nextElement();
97 97

  
98 98
			if (vi.getId() == id) {
99
				return (View) infoView.get(vi);
99
				return (IWindow) infoView.get(vi);
100 100
			}
101 101
		}
102 102

  
......
110 110
	 *
111 111
	 * @return DOCUMENT ME!
112 112
	 */
113
	public synchronized ViewInfo getViewInfo(View v) {
113
	public synchronized ViewInfo getViewInfo(IWindow v) {
114 114
		ViewInfo vi = (ViewInfo) viewInfo.get(v);
115 115

  
116 116
		if (vi == null) {
......
135 135
	 *
136 136
	 * @param p DOCUMENT ME!
137 137
	 */
138
	public void deleteViewInfo(View p) {
138
	public void deleteViewInfo(IWindow p) {
139 139
		ViewInfo vi = (ViewInfo) viewInfo.remove(p);
140 140
		infoView.remove(vi);
141 141
	}
......
152 152
		 */
153 153
		public void propertyChange(PropertyChangeEvent evt) {
154 154
			ViewInfo v = (ViewInfo) evt.getSource();
155
			View view = (View) infoView.get(v);
155
			IWindow view = (IWindow) infoView.get(v);
156 156

  
157 157
			if (view instanceof SingletonView) {
158 158
				SingletonView sv = (SingletonView) view;
trunk/libraries/libCorePlugin/src/com/iver/core/configExtensions/ConfigPlugins.java
45 45
import com.iver.andami.plugins.config.generate.Extension;
46 46
import com.iver.andami.plugins.config.generate.Extensions;
47 47
import com.iver.andami.plugins.config.generate.PluginConfig;
48
import com.iver.andami.ui.mdiManager.View;
48
import com.iver.andami.ui.mdiManager.IWindow;
49 49
import com.iver.andami.ui.mdiManager.ViewInfo;
50 50

  
51 51
import com.iver.utiles.GenericFileFilter;
......
91 91
 * @author Vicente Caballero Navarro
92 92
 * @deprecated
93 93
 */
94
public class ConfigPlugins extends JPanel implements View {
94
public class ConfigPlugins extends JPanel implements IWindow {
95 95
	private JTree jTree = null;
96 96
	private JPanel jPanel = null; //  @jve:decl-index=0:visual-constraint="113,10"
97 97
	private JPanel jPanel1 = null;
......
712 712
	}
713 713

  
714 714
	/**
715
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
715
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
716 716
	 */
717 717
	public ViewInfo getViewInfo() {
718 718
		if (m_viewinfo == null) {
......
724 724
	}
725 725

  
726 726
	/**
727
	 * @see com.iver.mdiApp.ui.MDIManager.View#viewActivated()
727
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#viewActivated()
728 728
	 */
729 729
	public void viewActivated() {
730 730
	}
trunk/libraries/libCorePlugin/src/com/iver/core/NotificationDialog.java
44 44
import com.iver.andami.messages.MessageEvent;
45 45
import com.iver.andami.messages.NotificationListener;
46 46
import com.iver.andami.ui.mdiManager.SingletonView;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.andami.ui.mdiManager.ViewInfo;
49 49

  
50 50
import javax.swing.JButton;
......
59 59
 *
60 60
 * @author Vicente Caballero Navarro
61 61
 */
62
public class NotificationDialog extends JPanel implements View, SingletonView,
62
public class NotificationDialog extends JPanel implements IWindow, SingletonView,
63 63
    NotificationListener {
64 64
    private JButton bDetails = null;
65 65
    private JPanel pDescription = null;
......
156 156
    }
157 157

  
158 158
    /**
159
     * @see com.iver.mdiApp.ui.MDIManager.View#getModel()
159
     * @see com.iver.mdiApp.ui.MDIManager.IWindow#getModel()
160 160
     */
161 161
    public Object getViewModel() {
162 162
        return "consola";
163 163
    }
164 164

  
165 165
    /**
166
     * @see com.iver.andami.ui.mdiManager.View#getViewInfo()
166
     * @see com.iver.andami.ui.mdiManager.IWindow#getViewInfo()
167 167
     */
168 168
    public ViewInfo getViewInfo() {
169 169
        ViewInfo info = new ViewInfo(ViewInfo.MODELESSDIALOG |
trunk/libraries/libCorePlugin/src/com/iver/core/ConsolaFrame.java
51 51
import com.iver.andami.messages.MessageEvent;
52 52
import com.iver.andami.messages.NotificationListener;
53 53
import com.iver.andami.ui.mdiManager.SingletonView;
54
import com.iver.andami.ui.mdiManager.View;
54
import com.iver.andami.ui.mdiManager.IWindow;
55 55
import com.iver.andami.ui.mdiManager.ViewInfo;
56 56

  
57 57
/**
58 58
 * Frame que escucha los eventos del sistema de mensajes de la aplicaci?n y los
59 59
 * muestra.
60 60
 */
61
public class ConsolaFrame extends JPanel implements View, SingletonView,NotificationListener {
61
public class ConsolaFrame extends JPanel implements IWindow, SingletonView,NotificationListener {
62 62
	private StringBuffer info = new StringBuffer();
63 63
	private StringBuffer warn = new StringBuffer();
64 64
	private StringBuffer error = new StringBuffer();
......
271 271
    }
272 272

  
273 273
	/**
274
	 * @see com.iver.mdiApp.ui.MDIManager.View#getModel()
274
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getModel()
275 275
	 */
276 276
	public Object getViewModel() {
277 277
		return "consola";
278 278
	}
279 279

  
280 280
	/**
281
	 * @see com.iver.andami.ui.mdiManager.View#getViewInfo()
281
	 * @see com.iver.andami.ui.mdiManager.IWindow#getViewInfo()
282 282
	 */
283 283
	public ViewInfo getViewInfo() {
284 284
		ViewInfo info = new ViewInfo(ViewInfo.MODELESSDIALOG|ViewInfo.RESIZABLE|ViewInfo.MAXIMIZABLE|ViewInfo.ICONIFIABLE);
trunk/libraries/libUI/src/org/gvsig/gui/beans/wizard/WizardAndami.java
10 10
import jwizardcomponent.FinishAction;
11 11

  
12 12
import com.iver.andami.PluginServices;
13
import com.iver.andami.ui.mdiManager.View;
13
import com.iver.andami.ui.mdiManager.IWindow;
14 14
import com.iver.andami.ui.mdiManager.ViewInfo;
15 15

  
16
public class WizardAndami extends JPanel implements View {
16
public class WizardAndami extends JPanel implements IWindow {
17 17
	ViewInfo viewInfo = null;
18 18
	WizardPanelWithLogo wizardPanel;
19 19

  
......
21 21
	// lo mantengo por ahora.
22 22
	private class CloseAction extends FinishAction
23 23
	{
24
		View v;
25
		public CloseAction(View view)
24
		IWindow v;
25
		public CloseAction(IWindow view)
26 26
		{
27 27
			super(wizardPanel.getWizardComponents());
28 28
			v = view;
......
35 35
	private class CloseAction2 extends CancelAction
36 36
	{
37 37

  
38
		View v;
39
		public CloseAction2(View view)
38
		IWindow v;
39
		public CloseAction2(IWindow view)
40 40
		{
41 41
			super(wizardPanel.getWizardComponents());
42 42
			v = view;
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/pansharpening/PanSharpeningModule.java
65 65
     * Mostramos el control si hay alguna capa cargada.
66 66
     */
67 67
    public boolean isVisible() {
68
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
68
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
69 69
                                                             .getActiveView();
70 70
        if (f == null) 
71 71
            return false;
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/saveRaster/ui/properties/ProgressSaveRasterDialog.java
57 57
import org.gvsig.rasterTools.saveRaster.util.DriverProperties;
58 58

  
59 59
import com.iver.andami.PluginServices;
60
import com.iver.andami.ui.mdiManager.View;
60
import com.iver.andami.ui.mdiManager.IWindow;
61 61
import com.iver.andami.ui.mdiManager.ViewInfo;
62 62
import com.iver.cit.gvsig.fmap.MapControl;
63 63
import com.iver.cit.gvsig.fmap.ViewPort;
......
66 66
/**
67 67
 * @author Nacho Brodin <brodin_ign@gva.es>
68 68
 */
69
public class ProgressSaveRasterDialog extends ProgressSaveRasterPanel implements View{
69
public class ProgressSaveRasterDialog extends ProgressSaveRasterPanel implements IWindow{
70 70
	private ViewPort 					vp = null;
71 71
	private SaveRasterThread			threadSave = null;
72 72
	private	ProgressBarListener			progressBarListener = null;
......
163 163
	}
164 164
		
165 165
	/**
166
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
166
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
167 167
	 */
168 168
	public ViewInfo getViewInfo() {
169 169
		ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/saveRaster/ui/main/SaveRasterDefaultPanel.java
42 42
import org.gvsig.rasterTools.saveRaster.util.DriverProperties;
43 43

  
44 44
import com.iver.andami.PluginServices;
45
import com.iver.andami.ui.mdiManager.View;
45
import com.iver.andami.ui.mdiManager.IWindow;
46 46
import com.iver.andami.ui.mdiManager.ViewInfo;
47 47
import com.iver.cit.gvsig.fmap.MapControl;
48 48
import com.iver.cit.gvsig.fmap.layers.FLayers;
......
54 54
 * salvar a raster.
55 55
 * @author Nacho Brodin (brodin_ign@gva.es)
56 56
 */
57
public class SaveRasterDefaultPanel extends DefaultDialogPanel implements View {
57
public class SaveRasterDefaultPanel extends DefaultDialogPanel implements IWindow {
58 58
    final private static long 			serialVersionUID = -3370601314380922368L;
59 59
    private DataInputListener			listener =  null;
60 60
    private GeoRasterWriter				writer=null;
......
302 302
	}
303 303
	
304 304
	/**
305
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
305
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
306 306
	 */
307 307
	public ViewInfo getViewInfo() {
308 308
		ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/saveRaster/ui/info/EndInfoDialog.java
4 4
import java.awt.event.ActionListener;
5 5

  
6 6
import com.iver.andami.PluginServices;
7
import com.iver.andami.ui.mdiManager.View;
7
import com.iver.andami.ui.mdiManager.IWindow;
8 8
import com.iver.andami.ui.mdiManager.ViewInfo;
9 9
import com.iver.cit.gvsig.gui.FOpenDialog;
10 10

  
11
public class EndInfoDialog extends EndInfoPanel implements View, ActionListener{
11
public class EndInfoDialog extends EndInfoPanel implements IWindow, ActionListener{
12 12
	
13 13
	/**
14 14
	 * Contructor 
......
36 36
	}
37 37
			
38 38
	/**
39
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
39
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
40 40
	 */
41 41
	public ViewInfo getViewInfo() {
42 42
		ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG);
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/saveRaster/SaveRasterModule.java
103 103
     * Mostramos el control si hay alguna capa cargada.
104 104
     */
105 105
    public boolean isVisible() {
106
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
106
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
107 107
                                                             .getActiveView();
108 108
        if (f == null) 
109 109
            return false;
trunk/extensions/extRasterTools/src/org/gvsig/rasterTools/brightnessContrast/BrightnessContrastModule.java
62 62
	 * Mostramos el control si hay alguna capa cargada.
63 63
	 */
64 64
	public boolean isVisible() {
65
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager().getActiveView();
65
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager().getActiveView();
66 66
		if (f == null) 
67 67
			return false;
68 68

  
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/dialogs/WFSPropsDialog.java
13 13
import org.gvsig.remoteClient.wfs.WFSStatus;
14 14

  
15 15
import com.iver.andami.PluginServices;
16
import com.iver.andami.ui.mdiManager.View;
16
import com.iver.andami.ui.mdiManager.IWindow;
17 17
import com.iver.andami.ui.mdiManager.ViewInfo;
18 18
import com.iver.cit.gvsig.fmap.DriverException;
19 19
import com.iver.cit.gvsig.fmap.MapControl;
......
70 70
 *
71 71
 * $Id$
72 72
 * $Log$
73
 * Revision 1.1  2006-06-21 12:35:45  jorpiell
73
 * Revision 1.2  2006-08-29 07:13:40  cesar
74
 * Rename class com.iver.andami.ui.mdiManager.View to com.iver.andami.ui.mdiManager.IWindow
75
 *
76
 * Revision 1.1  2006/06/21 12:35:45  jorpiell
74 77
 * Se ha a?adido la ventana de propiedades. Esto implica a?adir listeners por todos los paneles. Adem?s no se muestra la geomatr?a en la lista de atributos y se muestran ?nicamnete los que se van a descargar
75 78
 *
76 79
 *
......
78 81
/**
79 82
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
80 83
 */
81
public class WFSPropsDialog extends JPanel implements View{
84
public class WFSPropsDialog extends JPanel implements IWindow{
82 85
	private WFSParamsPanel wfsParamsTabbedPane = null;
83 86
	private ViewInfo m_ViewInfo = null;
84 87
	private FLayer fLayer = null;
trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/GeoreferencingModule.java
47 47
	 * El control est? activo siempre que haya una vista abierta
48 48
	 */
49 49
	public boolean isEnabled() {
50
		com.iver.andami.ui.mdiManager.View f = null;
50
		com.iver.andami.ui.mdiManager.IWindow f = null;
51 51
		try{
52 52
			f = PluginServices.getMDIManager().getActiveView();
53 53
		}catch(ClassCastException exc){
......
65 65
	 * El control es visible siempre que haya una vista abierta
66 66
	 */
67 67
	public boolean isVisible() {
68
		com.iver.andami.ui.mdiManager.View f = null;
68
		com.iver.andami.ui.mdiManager.IWindow f = null;
69 69
		try{
70 70
			f = PluginServices.getMDIManager().getActiveView();
71 71
		}catch(ClassCastException exc){
trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/GeoreferencingToolsModule.java
60 60
	 * El control es visible siempre que haya una vista abierta
61 61
	 */
62 62
	public boolean isVisible() {
63
		com.iver.andami.ui.mdiManager.View f = null;
63
		com.iver.andami.ui.mdiManager.IWindow f = null;
64 64
		try{
65 65
			f = PluginServices.getMDIManager().getActiveView();
66 66
		}catch(ClassCastException exc){
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditingToShp.java
40 40
     * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
41 41
     */
42 42
    public void execute(String s) {
43
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
43
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
44 44
                                                             .getActiveView();
45 45

  
46 46
        vista = (View) f;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/TableCommandStackExtension.java
25 25
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
26 26
	 */
27 27
	public void execute(String s) {
28
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
28
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
29 29
				.getActiveView();
30 30

  
31 31
		Table table = (Table) f;
......
57 57
	 * @see com.iver.andami.plugins.IExtension#isVisible()
58 58
	 */
59 59
	public boolean isVisible() {
60
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
60
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
61 61
		.getActiveView();
62 62
		if (f instanceof Table){
63 63
		Table table = (Table) f;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/CreateNewLayer.java
37 37
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
38 38
	 */
39 39
public void execute(String actionCommand) {
40
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
40
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
41 41
				.getActiveView();
42 42

  
43 43
		if (f instanceof View) {
......
133 133
	 * @see com.iver.andami.plugins.IExtension#isVisible()
134 134
	 */
135 135
	public boolean isVisible() {
136
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
136
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
137 137
				.getActiveView();
138 138

  
139 139
		if (f == null) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/ExportTo.java
203 203
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
204 204
	 */
205 205
	public void execute(String actionCommand) {
206
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
206
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
207 207
				.getActiveView();
208 208

  
209 209
		if (f instanceof View) {
......
703 703
	 * @see com.iver.andami.plugins.IExtension#isVisible()
704 704
	 */
705 705
	public boolean isVisible() {
706
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
706
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
707 707
				.getActiveView();
708 708

  
709 709
		if (f == null) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditingToGT2Shp.java
40 40
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
41 41
	 */
42 42
    public void execute(String s) {
43
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
43
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
44 44
                                                             .getActiveView();
45 45

  
46 46
        View vista = (View) f;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/EditionUtilities.java
34 34
	public static int getEditionStatus()
35 35
	{
36 36
		int status = EDITION_STATUS_NO_EDITION;
37
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
37
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
38 38
        .getActiveView();
39 39
        if (f == null)
40 40
        	return status;
......
73 73
	public static FLayer[] getActiveAndEditedLayers()
74 74
	{
75 75
		int status = EDITION_STATUS_NO_EDITION;
76
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
76
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
77 77
        .getActiveView();
78 78
        if (f == null)
79 79
        	return null;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditing.java
51 51
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
52 52
	 */
53 53
	public void execute(String s) {
54
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
54
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
55 55
				.getActiveView();
56 56

  
57 57
		vista = (View) f;
......
164 164
				.getSource();
165 165

  
166 166
		ISpatialWriter writer = (ISpatialWriter) vea.getWriter();
167
		com.iver.andami.ui.mdiManager.View[] views = PluginServices
167
		com.iver.andami.ui.mdiManager.IWindow[] views = PluginServices
168 168
				.getMDIManager().getAllViews();
169 169
		for (int j = 0; j < views.length; j++) {
170 170
			if (views[j] instanceof Table) {
......
193 193
	}
194 194

  
195 195
	private void cancelEdition(FLyrVect layer) throws IOException {
196
		com.iver.andami.ui.mdiManager.View[] views = PluginServices
196
		com.iver.andami.ui.mdiManager.IWindow[] views = PluginServices
197 197
				.getMDIManager().getAllViews();
198 198
		for (int j = 0; j < views.length; j++) {
199 199
			if (views[j] instanceof Table) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/EditionChangeManager.java
1 1
package com.iver.cit.gvsig;
2 2

  
3 3
import com.iver.andami.PluginServices;
4
import com.iver.andami.ui.mdiManager.View;
4
import com.iver.andami.ui.mdiManager.IWindow;
5 5
import com.iver.cit.gvsig.fmap.core.IRow;
6 6
import com.iver.cit.gvsig.fmap.edition.AfterFieldEditEvent;
7 7
import com.iver.cit.gvsig.fmap.edition.AfterRowEditEvent;
......
57 57
 *
58 58
 * $Id$
59 59
 * $Log$
60
 * Revision 1.8  2006-08-08 07:19:05  caballero
60
 * Revision 1.9  2006-08-29 07:13:57  cesar
61
 * Rename class com.iver.andami.ui.mdiManager.View to com.iver.andami.ui.mdiManager.IWindow
62
 *
63
 * Revision 1.8  2006/08/08 07:19:05  caballero
61 64
 * afterRowEditEvent con IRow
62 65
 *
63 66
 * Revision 1.7  2006/07/20 11:03:27  fjp
......
124 127
	 * @see com.iver.cit.gvsig.fmap.edition.IEditionListener#afterRowEditEvent(com.iver.cit.gvsig.fmap.edition.AfterRowEditEvent)
125 128
	 */
126 129
	public void afterRowEditEvent(IRow feat, AfterRowEditEvent e) {
127
		View[] views = (View[]) PluginServices.getMDIManager().getAllViews();
130
		IWindow[] views = (IWindow[]) PluginServices.getMDIManager().getAllViews();
128 131

  
129 132
		for (int i=0 ; i<views.length ; i++){
130 133
			if (views[i] instanceof Table){
trunk/extensions/extCAD/src/com/iver/cit/gvsig/ViewCommandStackExtension.java
29 29
	 * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
30 30
	 */
31 31
	public void execute(String s) {
32
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
32
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
33 33
				.getActiveView();
34 34

  
35 35
		View vista = (View) f;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/UndoViewExtension.java
125 125
	 * @see com.iver.andami.plugins.IExtension#isVisible()
126 126
	 */
127 127
	public boolean isVisible() {
128
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
128
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
129 129
															 .getActiveView();
130 130

  
131 131
		if (f == null) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StartEditing.java
62 62
	 */
63 63
	public void execute(String actionCommand) {
64 64
		CADExtension.initFocus();
65
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
65
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
66 66
				.getActiveView();
67 67

  
68 68
		if (f instanceof View) {
......
201 201
	}
202 202

  
203 203
	private void changeModelTable(ProjectTable pt){
204
    	 com.iver.andami.ui.mdiManager.View[] views = PluginServices.getMDIManager().getAllViews();
204
    	 com.iver.andami.ui.mdiManager.IWindow[] views = PluginServices.getMDIManager().getAllViews();
205 205

  
206 206
 		for (int i=0 ; i<views.length ; i++){
207 207
 			if (views[i] instanceof Table){
......
237 237
	 * @see com.iver.andami.plugins.IExtension#isVisible()
238 238
	 */
239 239
	public boolean isVisible() {
240
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
240
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
241 241
				.getActiveView();
242 242

  
243 243
		if (f == null) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/accelerators/OrtoAccelerator.java
44 44
import java.awt.event.KeyEvent;
45 45

  
46 46
import com.iver.andami.PluginServices;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.cit.gvsig.CADExtension;
49 49
import com.iver.cit.gvsig.EditionManager;
50 50
import com.iver.cit.gvsig.gui.cad.CADToolAdapter;
......
59 59
		if (e.getID() == KeyEvent.KEY_PRESSED)
60 60
			return false;
61 61
		
62
		View v = PluginServices.getMDIManager().getActiveView();
62
		IWindow v = PluginServices.getMDIManager().getActiveView();
63 63
		if (!(v instanceof com.iver.cit.gvsig.gui.View))
64 64
			return false;
65 65
		
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/accelerators/RefentAccelerator.java
44 44
import java.awt.event.KeyEvent;
45 45

  
46 46
import com.iver.andami.PluginServices;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.cit.gvsig.CADExtension;
49 49
import com.iver.cit.gvsig.gui.cad.CADToolAdapter;
50 50

  
......
58 58
		if (e.getID() == KeyEvent.KEY_PRESSED)
59 59
			return false;
60 60
		
61
		View v = PluginServices.getMDIManager().getActiveView();
61
		IWindow v = PluginServices.getMDIManager().getActiveView();
62 62
		if (!(v instanceof com.iver.cit.gvsig.gui.View))
63 63
			return false;
64 64
		
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/accelerators/GridAccelerator.java
44 44
import java.awt.event.KeyEvent;
45 45

  
46 46
import com.iver.andami.PluginServices;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.cit.gvsig.CADExtension;
49 49
import com.iver.cit.gvsig.gui.cad.CADToolAdapter;
50 50

  
......
58 58
		if (e.getID() == KeyEvent.KEY_PRESSED)
59 59
			return false;
60 60
		
61
		View v = PluginServices.getMDIManager().getActiveView();
61
		IWindow v = PluginServices.getMDIManager().getActiveView();
62 62
		if (!(v instanceof com.iver.cit.gvsig.gui.View))
63 63
			return false;
64 64
		
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/accelerators/ForceCursorAccelerator.java
44 44
import java.awt.event.KeyEvent;
45 45

  
46 46
import com.iver.andami.PluginServices;
47
import com.iver.andami.ui.mdiManager.View;
47
import com.iver.andami.ui.mdiManager.IWindow;
48 48
import com.iver.cit.gvsig.CADExtension;
49 49
import com.iver.cit.gvsig.gui.cad.CADToolAdapter;
50 50

  
......
58 58
		if (e.getID() == KeyEvent.KEY_PRESSED)
59 59
			return false;
60 60

  
61
		View v = PluginServices.getMDIManager().getActiveView();
61
		IWindow v = PluginServices.getMDIManager().getActiveView();
62 62
		if (!(v instanceof com.iver.cit.gvsig.gui.View))
63 63
			return false;
64 64

  
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/ComplexSelectionCADTool.java
520 520
		System.out.println("ESTADO ACTUAL: " + getStatus());
521 521

  
522 522
		FLyrVect lv=(FLyrVect)((VectorialLayerEdited)CADExtension.getEditionManager().getActiveLayerEdited()).getLayer();
523
		com.iver.andami.ui.mdiManager.View[] views = (com.iver.andami.ui.mdiManager.View[]) PluginServices.getMDIManager().getAllViews();
523
		com.iver.andami.ui.mdiManager.IWindow[] views = (com.iver.andami.ui.mdiManager.IWindow[]) PluginServices.getMDIManager().getAllViews();
524 524

  
525 525
		for (int i=0 ; i<views.length ; i++){
526 526
			if (views[i] instanceof Table){
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/SelectionCADTool.java
139 139
		// te hagan un redibujado.
140 140
		FLyrVect lv=(FLyrVect)((VectorialLayerEdited)CADExtension.getEditionManager().getActiveLayerEdited()).getLayer();
141 141
		//lv.getSource().getRecordset().getSelectionSupport().fireSelectionEvents();
142
		com.iver.andami.ui.mdiManager.View[] views = (com.iver.andami.ui.mdiManager.View[]) PluginServices.getMDIManager().getAllViews();
142
		com.iver.andami.ui.mdiManager.IWindow[] views = (com.iver.andami.ui.mdiManager.IWindow[]) PluginServices.getMDIManager().getAllViews();
143 143

  
144 144
		for (int i=0 ; i<views.length ; i++){
145 145
			if (views[i] instanceof Table){
trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/panels/FileBasedPanel.java
13 13
import jwizardcomponent.JWizardPanel;
14 14

  
15 15
import com.iver.andami.PluginServices;
16
import com.iver.andami.ui.mdiManager.View;
16
import com.iver.andami.ui.mdiManager.IWindow;
17 17
import com.iver.cit.gvsig.gui.FOpenDialog;
18 18
import com.iver.cit.gvsig.gui.panels.ProjChooserPanel;
19 19
import com.iver.utiles.SimpleFileFilter;
......
143 143
		if (chooserPanel == null) {
144 144
			chooserPanel = new ProjChooserPanel(FOpenDialog.getLastProjection());
145 145
			chooserPanel.setBounds(new java.awt.Rectangle(16,98,348,44));
146
			View view= PluginServices.getMDIManager().getActiveView();
146
			IWindow view= PluginServices.getMDIManager().getActiveView();
147 147
			if (view instanceof com.iver.cit.gvsig.gui.View){
148 148
				if (((com.iver.cit.gvsig.gui.View)view).getMapControl().getMapContext().getLayers().getLayersCount()!=0){
149 149
					chooserPanel.getJBtnChangeProj().setEnabled(false);
trunk/extensions/extCAD/src/com/iver/cit/gvsig/RedoViewExtension.java
120 120
	 * @see com.iver.andami.plugins.IExtension#isVisible()
121 121
	 */
122 122
	public boolean isVisible() {
123
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
123
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
124 124
															 .getActiveView();
125 125

  
126 126
		if (f == null) {
trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditingToGT2PostGIS.java
44 44
     * @see com.iver.andami.plugins.IExtension#execute(java.lang.String)
45 45
     */
46 46
    public void execute(String s) {
47
        com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
47
        com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
48 48
                                                             .getActiveView();
49 49

  
50 50
        View vista = (View) f;
trunk/extensions/extCAD/src/com/iver/cit/gvsig/CADExtension.java
92 92
	private static CADToolAdapter adapter=null;
93 93

  
94 94
	public static CADToolAdapter getCADToolAdapter() {
95
		com.iver.andami.ui.mdiManager.View view=PluginServices.getMDIManager().getActiveView();
95
		com.iver.andami.ui.mdiManager.IWindow view=PluginServices.getMDIManager().getActiveView();
96 96
		if (view instanceof View) {
97 97
			View v=(View)view;
98 98
			if (!adapters.containsKey(v)) {
trunk/extensions/extCenterViewToPoint/src/com/iver/gvsig/centerviewtopoint/gui/InputCoordinatesPanel.java
61 61
import org.gvsig.gui.beans.AcceptCancelPanel;
62 62

  
63 63
import com.iver.andami.PluginServices;
64
import com.iver.andami.ui.mdiManager.View;
64
import com.iver.andami.ui.mdiManager.IWindow;
65 65
import com.iver.andami.ui.mdiManager.ViewInfo;
66 66
import com.iver.cit.gvsig.fmap.FMap;
67 67
import com.iver.cit.gvsig.fmap.MapControl;
......
84 84
 *
85 85
 * @author jmorell
86 86
 */
87
public class InputCoordinatesPanel extends JPanel implements View {
87
public class InputCoordinatesPanel extends JPanel implements IWindow {
88 88
    private static final long serialVersionUID = 1L;
89 89
    private JLabel labelX = null;
90 90
    private JTextField textX = null;
trunk/extensions/extCenterViewToPoint/src/com/iver/gvsig/centerviewpoint/CenterViewToPointExtension.java
88 88
     * @see com.iver.andami.plugins.Extension#isEnabled()
89 89
     */
90 90
    public boolean isEnabled() {
91
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
91
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
92 92
		 .getActiveView();
93 93
		if (f == null) {
94 94
		    return false;
......
110 110
     * @see com.iver.andami.plugins.Extension#isVisible()
111 111
     */
112 112
    public boolean isVisible() {
113
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
113
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
114 114
		 .getActiveView();
115 115
		if (f == null) {
116 116
		    return false;
trunk/extensions/extWCS/src/com/iver/cit/gvsig/gui/dialog/WCSPropsDialog.java
52 52
import javax.swing.JPanel;
53 53

  
54 54
import com.iver.andami.PluginServices;
55
import com.iver.andami.ui.mdiManager.View;
55
import com.iver.andami.ui.mdiManager.IWindow;
56 56
import com.iver.andami.ui.mdiManager.ViewInfo;
57 57
import com.iver.cit.gvsig.fmap.DriverException;
58 58
import com.iver.cit.gvsig.fmap.MapControl;
......
69 69
 * @author jaume - jaume.dominguez@iver.es
70 70
 *
71 71
 */
72
public class WCSPropsDialog extends JPanel implements View {
72
public class WCSPropsDialog extends JPanel implements IWindow {
73 73
	JDialog dlg = null;  //  @jve:decl-index=0:visual-constraint="10,20"
74 74
	private JPanel buttonsPanel = null;
75 75
	//private FLyrDefault fLayer = null;
trunk/extensions/extWCS/src/com/iver/cit/gvsig/gui/dialog/WCSRasterPropsDialog.java
36 36
import com.hardcode.driverManager.DriverLoadException;
37 37
import com.iver.andami.PluginServices;
38 38
import com.iver.andami.messages.NotificationManager;
39
import com.iver.andami.ui.mdiManager.View;
39
import com.iver.andami.ui.mdiManager.IWindow;
40 40
import com.iver.andami.ui.mdiManager.ViewInfo;
41 41
import com.iver.cit.gvsig.fmap.drivers.RasterDriver;
42 42
import com.iver.cit.gvsig.fmap.layers.FLyrWCS;
......
57 57
 * </UL>
58 58
 * @author Nacho Brodin (brodin_ign@gva.es)
59 59
 */
60
public class WCSRasterPropsDialog extends FilterRasterDialogPanel implements View, MouseListener, KeyListener, ActionListener{
60
public class WCSRasterPropsDialog extends FilterRasterDialogPanel implements IWindow, MouseListener, KeyListener, ActionListener{
61 61
	
62 62
	private FilterRasterDialogPanel 				contentPane = null;  	
63 63
	private JPanel									propPanel = null;
......
738 738
	}
739 739
	
740 740
	/**
741
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
741
	 * @see com.iver.mdiApp.ui.MDIManager.IWindow#getViewInfo()
742 742
	 */
743 743
	public ViewInfo getViewInfo() {
744 744
		ViewInfo m_viewinfo=new ViewInfo(ViewInfo.MODALDIALOG | ViewInfo.RESIZABLE);
trunk/extensions/extDataLocator/src/com/iver/gvsig/datalocator/DataLocatorExtension.java
95 95
     * @see com.iver.andami.plugins.Extension#isEnabled()
96 96
     */
97 97
    public boolean isEnabled() {
98
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
98
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
99 99
		 .getActiveView();
100 100
		if (f == null) {
101 101
		    return false;
......
136 136
     * @see com.iver.andami.plugins.Extension#isVisible()
137 137
     */
138 138
    public boolean isVisible() {
139
		com.iver.andami.ui.mdiManager.View f = PluginServices.getMDIManager()
139
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
140 140
		 .getActiveView();
141 141
		if (f == null) {
142 142
		    return false;
trunk/extensions/extDataLocator/src/com/iver/gvsig/datalocator/gui/DataSelectionPanel.java
65 65
import com.iver.andami.PluginServices;
66 66
import com.iver.andami.plugins.Extension;
67 67
import com.iver.andami.ui.mdiManager.SingletonView;
68
import com.iver.andami.ui.mdiManager.View;
68
import com.iver.andami.ui.mdiManager.IWindow;
69 69
import com.iver.andami.ui.mdiManager.ViewInfo;
70 70
import com.iver.andami.ui.mdiManager.ViewListener;
71 71
import com.iver.cit.gvsig.fmap.DriverException;
......
95 95
/**
96 96
 * @author jmorell
97 97
 */
98
public class DataSelectionPanel extends JPanel implements View, ViewListener, SingletonView {
98
public class DataSelectionPanel extends JPanel implements IWindow, ViewListener, SingletonView {
99 99
    
100 100
	/**
101 101
     * 
trunk/extensions/extScripting/src/org/gvsig/scripting/ScriptPanel.java
18 18
import thinlet.script.ScriptableThinlet;
19 19

  
20 20
import com.iver.andami.PluginServices;
21
import com.iver.andami.ui.mdiManager.View;
21
import com.iver.andami.ui.mdiManager.IWindow;
22 22
import com.iver.andami.ui.mdiManager.ViewInfo;
23 23

  
24
public class ScriptPanel extends JPanel implements View {
24
public class ScriptPanel extends JPanel implements IWindow {
25 25
	
26 26
    public static final String JAVASCRIPT = ScriptingExtension.JAVASCRIPT;
27 27
    public static final String BEANSHELL = ScriptingExtension.BEANSHELL;
trunk/extensions/extScripting/src/org/gvsig/scripting/DefaultThinlet.java
20 20
import thinlet.script.ScriptableThinlet;
21 21

  
22 22
import com.iver.andami.PluginServices;
23
import com.iver.andami.ui.mdiManager.View;
23
import com.iver.andami.ui.mdiManager.IWindow;
24 24

  
25 25
public class DefaultThinlet extends ScriptableThinlet {
26 26

  
......
108 108
				i++;
109 109
			}            
110 110
        } else {
111
            PluginServices.getMDIManager().closeView((View)this.getParent());
111
            PluginServices.getMDIManager().closeView((IWindow)this.getParent());
112 112
        }
113 113
	}
114 114
		
trunk/extensions/extScripting/src/org/gvsig/scripting/ScriptingExtension.java
13 13

  
14 14
import com.iver.andami.PluginServices;
15 15
import com.iver.andami.plugins.Extension;
16
import com.iver.andami.ui.mdiManager.View;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff