Revision 6877 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/PaletteViewInfoExtension.java
PaletteViewInfoExtension.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
import com.iver.andami.PluginServices; |
47 | 47 |
import com.iver.andami.plugins.Extension; |
48 |
import com.iver.andami.ui.mdiManager.View;
|
|
48 |
import com.iver.andami.ui.mdiManager.IWindow;
|
|
49 | 49 |
import com.iver.andami.ui.mdiManager.ViewTransform; |
50 | 50 |
|
51 | 51 |
|
... | ... | |
61 | 61 |
* @see com.iver.andami.plugins.IExtension#execute(java.lang.String) |
62 | 62 |
*/ |
63 | 63 |
public void execute(String s) { |
64 |
View view = PluginServices.getMDIManager().getActiveView();
|
|
64 |
IWindow view = PluginServices.getMDIManager().getActiveView();
|
|
65 | 65 |
if (s.equals("PALETTE")){ |
66 | 66 |
ViewTransform vt=(ViewTransform)view; |
67 | 67 |
vt.toPalette(); |
... | ... | |
80 | 80 |
* @see com.iver.andami.plugins.IExtension#isVisible() |
81 | 81 |
*/ |
82 | 82 |
public boolean isVisible() { |
83 |
View f = PluginServices.getMDIManager().getFocusView();
|
|
83 |
IWindow f = PluginServices.getMDIManager().getFocusView();
|
|
84 | 84 |
if (f == null) { |
85 | 85 |
return false; |
86 | 86 |
} |
Also available in: Unified diff