Exemple #1
0
 private void setData() {
   chkSegmentSource.setSelection(params.segmentSource);
   edSourceSRX.setText(params.getSourceSrxPath());
   chkSegmentTarget.setSelection(params.segmentTarget);
   edTargetSRX.setText(params.getTargetSrxPath());
   chkCopySource.setSelection(params.copySource);
   chkCheckSegments.setSelection(params.checkSegments);
   chkForceSegmentedOutput.setSelection(params.getForcesegmentedOutput());
   listBehaviorForSegmented.setSelection(params.getSegmentationStrategy().ordinal());
   updateSourceDisplay();
   updateTargetDisplay();
   updateOptionsDisplay();
 }
Exemple #2
0
 private boolean saveData() {
   params.segmentSource = chkSegmentSource.getSelection();
   if (params.segmentSource) {
     params.setSourceSrxPath(edSourceSRX.getText());
   }
   params.segmentTarget = chkSegmentTarget.getSelection();
   if (params.segmentTarget) {
     params.setTargetSrxPath(edTargetSRX.getText());
   }
   params.copySource = chkCopySource.getSelection();
   params.checkSegments = chkCheckSegments.getSelection();
   params.setForcesegmentedOutput(chkForceSegmentedOutput.getSelection());
   params.setSegmentationStrategy(
       SegmStrategy.values()[listBehaviorForSegmented.getSelectionIndex()]);
   result = true;
   return true;
 }
Exemple #3
0
 @Override
 public String validateAndSaveParameters() {
   if (!saveData()) return null;
   return params.toString();
 }