Revision 10626 trunk/extensions/extCAD/src/com/iver/cit/gvsig/project/documents/table/gui/EvalExpresionDialog.java
EvalExpresionDialog.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
import bsh.EvalError; |
36 | 36 |
|
37 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
37 | 38 |
import com.hardcode.gdbms.engine.data.driver.DriverException; |
38 | 39 |
import com.iver.andami.PluginServices; |
39 | 40 |
import com.iver.andami.ui.mdiManager.IWindow; |
... | ... | |
145 | 146 |
evalExpresions(); |
146 | 147 |
} catch (BSFException e) { |
147 | 148 |
e.printStackTrace(); |
149 |
} catch (ReadDriverException e) { |
|
150 |
// TODO Auto-generated catch block |
|
151 |
e.printStackTrace(); |
|
148 | 152 |
} |
149 | 153 |
evalExpresion=new EvalExpresion(); |
150 | 154 |
evalExpresion.setTable(table); |
... | ... | |
236 | 240 |
System.out |
237 | 241 |
.println("Tiempo evaluar expresiones = " |
238 | 242 |
+ (t2 - t1)); |
239 |
} catch (DriverException e1) {
|
|
243 |
} catch (BSFException e1) {
|
|
240 | 244 |
e1.printStackTrace(); |
241 |
} catch (IOException e1) { |
|
245 |
} catch (ReadDriverException e1) { |
|
246 |
// TODO Auto-generated catch block |
|
242 | 247 |
e1.printStackTrace(); |
243 |
} catch (DriverIOException e1) { |
|
244 |
e1.printStackTrace(); |
|
245 |
} catch (BSFException e1) { |
|
246 |
e1.printStackTrace(); |
|
247 | 248 |
} |
248 | 249 |
if (isAccepted) |
249 | 250 |
PluginServices.getMDIManager().closeWindow( |
... | ... | |
272 | 273 |
* @throws DriverIOException |
273 | 274 |
* @throws IOException |
274 | 275 |
* @throws BSFException |
276 |
* @throws ReadDriverException |
|
275 | 277 |
*/ |
276 |
private boolean evalExpresion() throws DriverException, IOException, |
|
277 |
DriverIOException, BSFException { |
|
278 |
private boolean evalExpresion() throws BSFException, ReadDriverException { |
|
278 | 279 |
long rowCount = sds.getRowCount(); |
279 | 280 |
interpreter.eval(ExpresionFieldExtension.BEANSHELL, null, -1, -1, |
280 | 281 |
"java.lang.Object expresion () {" + getTxtExp().getText() |
... | ... | |
342 | 343 |
} |
343 | 344 |
return pMessage; |
344 | 345 |
} |
345 |
private void evalExpresions() throws BSFException { |
|
346 |
private void evalExpresions() throws BSFException, ReadDriverException {
|
|
346 | 347 |
ies = table.getModel().getModelo(); |
347 | 348 |
sds = ies.getRecordset(); |
348 | 349 |
interpreter.declareBean("sds", sds,SelectableDataSource.class); |
Also available in: Unified diff