Author: chatellier Date: 2009-04-10 15:02:56 +0000 (Fri, 10 Apr 2009) New Revision: 2100 Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/InputOneEquationUI.jaxx Log: Add log error message (remove system out) Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/InputOneEquationUI.jaxx =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/InputOneEquationUI.jaxx 2009-04-09 12:28:24 UTC (rev 2099) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/InputOneEquationUI.jaxx 2009-04-10 15:02:56 UTC (rev 2100) @@ -69,7 +69,9 @@ try { editor.open(org.codelutin.util.FileUtil.getTempFile("", ".java")); } catch (IOException ex) { - Logger.getLogger(InputOneEquationUI.class.getName()).log(Level.SEVERE, null, ex); + if (log.isErrorEnabled()) { + log.error("Error on property change", e); + } } } if (evt.getNewValue() != null) { @@ -109,8 +111,10 @@ Method m = bean.getClass().getMethod("get" + methodGet, null); result = (Equation) m.invoke(bean, (Object[])null); } - } catch (Exception ex) { - System.out.println(ex); + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error("Can't get equation", e); + } } return result; } @@ -120,8 +124,10 @@ Method m = bean.getClass().getMethod("set" + methodSet, String.class); m.invoke(bean, editor.getText()); } - } catch (Exception ex) { - System.out.println(ex); + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error("Can't set equation", e); + } } } public void refresh(){ @@ -178,8 +184,10 @@ else { try { editor.open(org.codelutin.util.FileUtil.getTempFile("", ".java")); - } catch (IOException ex) { - Logger.getLogger(InputOneEquationUI.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + if (log.isErrorEnabled()) { + log.error("Open editor", e); + } } } }