Ejemplo n.º 1
0
 private void initData() throws Exception {
   String rrdRoot =
       XmlCfgUtil.getStringValue(
           CollConstants.COLL_CFG_FILE,
           CollConstants.RRD_ROOT_CFG,
           CollConstants.DEFAULT_RRD_ROOT);
   rrdDirFld.setText(rrdRoot);
 }
Ejemplo n.º 2
0
 protected void okAction() throws Exception {
   String rrdRoot = rrdDirFld.getText();
   if (rrdRoot == null) {
     rrdRoot = CollConstants.DEFAULT_RRD_ROOT;
   }
   if (rrdRoot.charAt(rrdRoot.length() - 1) != '/') {
     rrdRoot = rrdRoot + "/";
   }
   XmlCfgUtil.setStringValue(CollConstants.COLL_CFG_FILE, CollConstants.RRD_ROOT_CFG, rrdRoot);
 }