Package org.eobjects.analyzer.job

Examples of org.eobjects.analyzer.job.Outcome


      for (int i = 0; i < mergeInputs.length; i++) {
        if (i != 0) {
          sb.append(',');
        }
        MergeInput mergeInput = mergeInputs[i];
        Outcome outcome = mergeInput.getOutcome();
        appendRequirement(sb, outcome);
      }
      sb.append(']');
    } else {
      // should not happen
View Full Code Here


    updateText();
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    Outcome currentRequirement = _jobBuilder.getRequirement();
    logger.info("Current requirement: {}", currentRequirement);

    JPopupMenu popup = new JPopupMenu();

    JMenuItem noFilterMenuItem = new JMenuItem(NO_FILTER_TEXT);
View Full Code Here

    popup.show(this, 0, getHeight());
  }

  public void updateText() {
    logger.info("updateText()");
    Outcome requirement = _jobBuilder.getRequirement();
    if (requirement == null) {
      setText(NO_FILTER_TEXT);
    } else {
      if (requirement instanceof FilterOutcome) {
        FilterOutcome filterOutcome = (FilterOutcome) requirement;
        Enum<?> category = filterOutcome.getCategory();
        if (filterOutcome instanceof LazyFilterOutcome) {
          // if possible, use the builder in stead of the job (getting
          // the job may cause an exception if the builder is not
          // correctly configured yet)
          FilterJobBuilder<?, ?> fjb = ((LazyFilterOutcome) filterOutcome).getFilterJobBuilder();

          String filterLabel = LabelUtils.getLabel(fjb);

          setText(filterLabel + ": " + category);
        } else {
          FilterJob filterJob = filterOutcome.getFilterJob();
          setText(LabelUtils.getLabel(filterJob) + ": " + category);
        }
      } else if (requirement instanceof MergedOutcome) {
        MergedOutcomeJob job = ((MergedOutcome) requirement).getMergedOutcomeJob();
        setText(LabelUtils.getLabel(job));
      } else {
        // Other requirement types not yet supported
        setText(requirement.toString());
      }
    }

    updateParentUI();
  }
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.job.Outcome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.