svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / Abrir.java @ 312
History | View | Annotate | Download (1008 Bytes)
1 |
package com.iver.cit.gvsig; |
---|---|
2 |
|
3 |
import com.iver.cit.gvsig.gui.FOpenDialog; |
4 |
import com.iver.cit.gvsig.gui.View; |
5 |
import com.iver.mdiApp.App; |
6 |
import com.iver.mdiApp.AppStatus; |
7 |
import com.iver.mdiApp.plugins.AbstractExtension; |
8 |
|
9 |
|
10 |
/**
|
11 |
* DOCUMENT ME!
|
12 |
*
|
13 |
* @author Fernando Gonz?lez Cort?s
|
14 |
*/
|
15 |
public class Abrir extends AbstractExtension { |
16 |
public FOpenDialog fopen = null; |
17 |
|
18 |
/**
|
19 |
* DOCUMENT ME!
|
20 |
*
|
21 |
* @param s DOCUMENT ME!
|
22 |
*/
|
23 |
public void updateUI(AppStatus status, String s) { |
24 |
View theView = (View) status.getActiveView(); |
25 |
fopen = new FOpenDialog(theView , theView.getMapControl().getMapContext());
|
26 |
App.instance.getMDIContext().addView(fopen); |
27 |
} |
28 |
|
29 |
/**
|
30 |
* @see com.iver.mdiApp.plugins.Extension#isVisible()
|
31 |
*/
|
32 |
public boolean isVisible() { |
33 |
com.iver.mdiApp.ui.MDIManager.View f = App.instance.getMDIContext().getActiveView(); |
34 |
|
35 |
if (f == null) { |
36 |
return false; |
37 |
} |
38 |
|
39 |
return (f.getClass() == View.class); |
40 |
} |
41 |
|
42 |
} |