コード例 #1
0
  private net.sf.minuteProject.configuration.bean.enrichment.convention.Convention getConvention(
      CheckBoxField cbf) {
    net.sf.minuteProject.configuration.bean.enrichment.convention.Convention convention = null;
    if ("version-convention".equals(cbf.getName())) {
      convention = new VersionConvention();
    }
    if (convention != null) {
      convention.setDefaultValue(cbf.getTf().getText());
    }

    return convention;
  }
コード例 #2
0
 private void addConventionToPanel(Convention convention, JPanel panel) {
   CheckBoxField cbf =
       new CheckBoxField(convention.getName(), convention.getDescription(), "", true, null);
   JLabel l = createLabel("");
   panel.add(l);
   panel.add(cbf.getBox(), "skip");
   panel.add(cbf.getTf(), "growx, span, wrap para");
   componentList.add(cbf.getBox());
   componentList.add(cbf.getTf());
   componentList.add(l);
   conventionList.add(cbf);
 }
コード例 #3
0
 private void fillConvention(CheckBoxField cbf, BasicIntegrationConfiguration bic) {
   if (cbf.getBox().isSelected()) bic.addConvention(getConvention(cbf));
 }