Revision 6877 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/LayoutKeyEvent.java

View differences:

LayoutKeyEvent.java
8 8
import javax.swing.JTextField;
9 9

  
10 10
import com.iver.andami.PluginServices;
11
import com.iver.andami.ui.mdiManager.View;
11
import com.iver.andami.ui.mdiManager.IWindow;
12 12
import com.iver.cit.gvsig.gui.layout.fframes.IFFrame;
13 13

  
14 14
public class LayoutKeyEvent implements KeyEventDispatcher{
......
17 17
    private int difY;
18 18

  
19 19
	public boolean dispatchKeyEvent(KeyEvent e) {
20
		View view = PluginServices.getMDIManager().getActiveView();
20
		IWindow view = PluginServices.getMDIManager().getActiveView();
21 21

  
22 22
		if (e.getID() == KeyEvent.KEY_PRESSED || !(view instanceof Layout) || e.getSource().getClass()!=JPanel.class)
23 23
			return false;

Also available in: Unified diff