Revision 36749
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/mdiManager/NewSkin.java | ||
---|---|---|
301 | 301 |
*/ |
302 | 302 |
public IWindow addCentredWindow(IWindow p) throws SingletonDialogAlreadyShownException { |
303 | 303 |
IWindow window = addWindow(p); |
304 |
centreFrame(window); |
|
304 |
if (!p.getWindowInfo().isModal()) { |
|
305 |
centreFrame(window); |
|
306 |
} |
|
305 | 307 |
return window; |
306 | 308 |
} |
307 | 309 |
|
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/mdiManager/FrameWindowSupport.java | ||
---|---|---|
53 | 53 |
import javax.swing.JInternalFrame; |
54 | 54 |
import javax.swing.JPanel; |
55 | 55 |
|
56 |
import org.gvsig.andami.PluginServices; |
|
57 | 56 |
import org.gvsig.andami.ui.mdiFrame.MDIFrame; |
58 | 57 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
59 | 58 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
60 | 59 |
import org.gvsig.coreplugin.mdiManager.frames.ExternalFrame; |
61 | 60 |
import org.gvsig.coreplugin.mdiManager.frames.IFrame; |
62 | 61 |
import org.gvsig.coreplugin.mdiManager.frames.InternalFrame; |
62 |
import org.gvsig.i18n.Messages; |
|
63 | 63 |
|
64 | 64 |
|
65 | 65 |
|
... | ... | |
166 | 166 |
return (Component) object; |
167 | 167 |
} |
168 | 168 |
else { |
169 |
PluginServices.getLogger().error("window_not_found_"+panel.getWindowInfo().getTitle());
|
|
170 |
return null;
|
|
169 |
throw new RuntimeException(Messages.getText("window_not_found")
|
|
170 |
+ ": " + panel.getWindowInfo().getTitle());
|
|
171 | 171 |
} |
172 | 172 |
} |
173 | 173 |
|
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/select/SelectRowPanel.java | ||
---|---|---|
187 | 187 |
public void actionPerformed(ActionEvent e) { |
188 | 188 |
FeatureSelection rowSelecteds; |
189 | 189 |
try { |
190 |
rowSelecteds = vle.getFeatureStore().getFeatureSelection(); |
|
191 | 190 |
|
192 | 191 |
if (e.getSource().equals(accept)) { |
192 |
rowSelecteds = vle.getFeatureStore().getFeatureSelection(); |
|
193 |
rowSelecteds.deselectAll(); |
|
193 | 194 |
int[] index = jTable.getSelectedRows(); |
194 | 195 |
if (index.length > 0) { |
195 | 196 |
for (int i = 0; i < index.length; i++) { |
196 | 197 |
Feature sl = features.get(index[i]); |
197 | 198 |
rowSelecteds.select(sl); |
198 | 199 |
} |
199 |
vle.getFeatureStore().setSelection(rowSelecteds); |
|
200 |
// vle.getFeatureStore().setSelection(rowSelecteds);
|
|
200 | 201 |
PluginServices.getMDIManager().closeWindow( |
201 | 202 |
SelectRowPanel.this); |
202 | 203 |
} else { |
Also available in: Unified diff