Revision 42173 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/extension/ZoomNext.java
ZoomNext.java | ||
---|---|---|
36 | 36 |
public class ZoomNext extends Extension { |
37 | 37 |
|
38 | 38 |
public void initialize() { |
39 |
IconThemeHelper.registerIcon("action", "view-navigation-zoom-next", this);
|
|
39 |
IconThemeHelper.registerIcon("action", "view-navigation-zoom-next", this); |
|
40 | 40 |
} |
41 |
|
|
41 |
|
|
42 | 42 |
public boolean isEnabled() { |
43 | 43 |
ApplicationManager application = ApplicationLocator.getManager(); |
44 | 44 |
|
... | ... | |
46 | 46 |
if (view == null) { |
47 | 47 |
return false; |
48 | 48 |
} |
49 |
|
|
49 | 50 |
ViewDocument document = view.getViewDocument(); |
50 | 51 |
ViewPort vp = document.getMapContext().getViewPort(); |
51 | 52 |
return vp.getEnvelopes().hasNext(); |
... | ... | |
74 | 75 |
|
75 | 76 |
vp.setNextEnvelope(); |
76 | 77 |
document.setModified(true); |
78 |
|
|
77 | 79 |
ApplicationLocator.getManager().refreshMenusAndToolBars(); |
78 | 80 |
} |
79 | 81 |
} |
Also available in: Unified diff