Examples of FilterOutcome


Examples of org.eobjects.analyzer.job.FilterOutcome

        Set<String> categoryNames = fjbDescriptor.getOutcomeCategoryNames();
        for (final String category : categoryNames) {
          JMenuItem categoryMenuItem = new JMenuItem(category);

          if (currentRequirement != null && currentRequirement instanceof FilterOutcome) {
            FilterOutcome filterOutcome = (FilterOutcome) currentRequirement;
            // put an icon on the currently configured requirement
            try {
              FilterJob filterJob = fjb.toFilterJob();

              if (filterOutcome.getFilterJob().equals(filterJob)) {
                if (filterOutcome.getCategory().equals(fjbDescriptor.getOutcomeCategoryByName(category))) {
                  filterMenuItem.setIcon(mappedFilterIcon);
                  categoryMenuItem.setIcon(mappedFilterIcon);
                }
              }
            } catch (Exception ex) {
View Full Code Here

Examples of org.eobjects.analyzer.job.FilterOutcome

    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));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.