propNewServletCount = addProperty(PROP_NEW_SERVLETS_COUNT, PROP_NEW_SERVLETS_COUNT_DFLT); propNewServletCount.addPropertyListener(new ConfigurableComponentPropertyAdapter() { public void propertyValueChanged(PropertyEvent e) { updateNewServletCount((Integer)e.getProperty().getValue()); } }); propNewServletCount.setToolTip(PROP_NEW_SERVLETS_COUNT_DESC); propNewServletCount.setAllowedValues(Collections.singleton(new IntegerRange(0, Integer.MAX_VALUE)));
  public void initProperties() {    servletList = getServletList();    propServlets = new Property[servletList.size()];    if (servletList != null) {      for (int i=0; i < servletList.size(); i++) {        propServlets[i] = addBooleanProperty(((ServletListRecord)servletList.elementAt(i)).getName(), PROP_SERVLETS_DFLT);        ((Property)propServlets[i]).setToolTip(PROP_SERVLETS_DESC);      }    }       propTargetAgentQuery =      addRecipeQueryProperty(PROP_TARGET_AGENT_QUERY,                             PROP_TARGET_AGENT_QUERY_DFLT);    propTargetAgentQuery.setToolTip(PROP_TARGET_AGENT_QUERY_DESC);    propNewServletCount = addProperty(PROP_NEW_SERVLETS_COUNT, PROP_NEW_SERVLETS_COUNT_DFLT);    propNewServletCount.addPropertyListener(new ConfigurableComponentPropertyAdapter() {        public void propertyValueChanged(PropertyEvent e) {          updateNewServletCount((Integer)e.getProperty().getValue());        }      });    propNewServletCount.setToolTip(PROP_NEW_SERVLETS_COUNT_DESC);    propNewServletCount.setAllowedValues(Collections.singleton(new IntegerRange(0, Integer.MAX_VALUE)));  }