Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/FFrameViewExtension.java
FFrameViewExtension.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig; |
42 | 42 |
|
43 |
import org.gvsig.fmap.data.ReadException;
|
|
43 |
import org.gvsig.fmap.dal.exception.ReadException;
|
|
44 | 44 |
|
45 | 45 |
import com.iver.andami.PluginServices; |
46 | 46 |
import com.iver.andami.messages.NotificationManager; |
... | ... | |
116 | 116 |
public boolean isEnabled() { |
117 | 117 |
Layout l = (Layout)PluginServices.getMDIManager().getActiveWindow(); |
118 | 118 |
IFFrame[] fframes = l.getLayoutContext().getFFrameSelected(); |
119 |
if (!l.getLayoutContext().isEditable()) |
|
119 |
if (!l.getLayoutContext().isEditable()) {
|
|
120 | 120 |
return false; |
121 |
} |
|
121 | 122 |
for (int i = 0; i < fframes.length; i++) { |
122 | 123 |
if (fframes[i] instanceof FFrameView) { |
123 |
if (((FFrameView)fframes[i]).getView()!=null) |
|
124 |
return true; |
|
124 |
if (((FFrameView)fframes[i]).getView()!=null) { |
|
125 |
return true; |
|
126 |
} |
|
125 | 127 |
} |
126 | 128 |
} |
127 | 129 |
|
Also available in: Unified diff