Examples of Severity


Examples of org.rhq.coregui.client.util.message.Message.Severity

        severityField.setShowHover(true);
        severityField.setHoverCustomizer(new HoverCustomizer() {
            @Override
            public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) {
                try {
                    Severity severity = ((Message) record.getAttributeAsObject(FIELD_OBJECT)).getSeverity();
                    switch (severity) {
                    case Info:
                        return MSG.common_severity_info();
                    case Warning:
                        return MSG.common_severity_warn();
                    case Error:
                        return MSG.common_severity_error();
                    case Fatal:
                        return MSG.common_severity_fatal();
                    }
                } catch (Throwable e) {
                    Log.error("Cannot get severity hover", e);
                }
                return null;
            }
        });
        severityField.setSortNormalizer(new SortNormalizer() {
            @Override
            public Object normalize(ListGridRecord record, String fieldName) {
                try {
                    Severity severity = ((Message) record.getAttributeAsObject(FIELD_OBJECT)).getSeverity();
                    return Integer.valueOf(severity.ordinal());
                } catch (Throwable e) {
                    Log.error("Cannot get sort nomalizer", e);
                }
                return Integer.valueOf(0);
            }
View Full Code Here

Examples of org.rhq.coregui.client.util.message.Message.Severity

                        String resourceTypeName = resource.getResourceType().getName();
                        String resourceKey = resource.getResourceKey();

                        String conciseMessage;
                        String detailedMessage;
                        Severity severity;
                        if (!resourceAlreadyExisted) {
                            conciseMessage = MSG.widget_resourceFactoryWizard_importSuccess(resourceTypeName,
                                resourceKey);
                            detailedMessage = null;
                            severity = Severity.Info;
View Full Code Here

Examples of org.sonar.api.batch.sensor.issue.Issue.Severity

    }
    issuable.addIssue(toDefaultIssue(project.getKey(), ComponentKeys.createEffectiveKey(project, r), issue));
  }

  public static DefaultIssue toDefaultIssue(String projectKey, String componentKey, Issue issue) {
    Severity overridenSeverity = issue.overridenSeverity();
    return new org.sonar.core.issue.DefaultIssueBuilder()
      .componentKey(componentKey)
      .projectKey(projectKey)
      .ruleKey(RuleKey.of(issue.ruleKey().repository(), issue.ruleKey().rule()))
      .effortToFix(issue.effortToFix())
      .line(issue.line())
      .message(issue.message())
      .severity(overridenSeverity != null ? overridenSeverity.name() : null)
      .build();
  }
View Full Code Here

Examples of org.springframework.binding.message.Severity

      }
      return text.toString();
    }

    public Severity getSeverity() {
      Severity severity = null;
      if (this.facesMessage.getSeverity() != null) {
        severity = FACES_SEVERITY_TO_SPRING.get(this.facesMessage.getSeverity());
      }
      return (severity == null ? Severity.INFO : severity);
    }
View Full Code Here

Examples of org.springframework.richclient.core.Severity

    public void setMessage(Message message) {
        if (message == null) {
            message = DefaultMessage.EMPTY_MESSAGE;
        }
        setToolTipText(message.getMessage());
        Severity severity = message.getSeverity();

        if (severity != null) {
            setIcon(getIconSource().getIcon("severity." + severity.getLabel() + ".overlay"));
        } else {
            setIcon(null);
        }
    }
View Full Code Here

Examples of org.tmatesoft.hg.util.LogFacility.Severity

    if (logFacility == null) {
      PropertyMarshal pm = new PropertyMarshal(this);
      boolean needDebug = pm.getBoolean("hg4j.consolelog.debug", false);
      boolean needInfo = pm.getBoolean("hg4j.consolelog.info", false);
      boolean needTime = pm.getBoolean("hg4j.consolelog.tstamp", true);
      Severity l = needDebug ? Severity.Debug : (needInfo ? Severity.Info : Severity.Warn);
      logFacility = new StreamLogFacility(l, needTime, System.out);
    }
    return logFacility;
  }
View Full Code Here

Examples of org.zanata.webtrans.client.events.NotificationEvent.Severity

    @Test
    public void onNotificationInfo() {
        int msgCount = 5;
        String msg = "Test message";
        String details = "Test details";
        Severity severity = Severity.Info;

        NotificationEvent mockEvent = mock(NotificationEvent.class);
        InlineLink mockInlineLink = mock(InlineLink.class);

        when(mockDisplay.getMessageCount()).thenReturn(msgCount);
View Full Code Here

Examples of qubexplorer.Severity

                if(countsBySeverity.containsKey(issue.severity())) {
                    countsBySeverity.get(issue.severity()).add(1);
                }else{
                    countsBySeverity.put(issue.severity(), new IntWrapper(1));
                }
                Severity severity = Severity.valueOf(issue.severity().toUpperCase());
                Set<Rule> set = rulesBySeverity.get(severity);
                if(set == null) {
                    set=new HashSet<>();
                    rulesBySeverity.put(severity, set);
                }
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Severity

     *
     * @return {@link ru.yandex.qatools.allure.model.SeverityLevel} or null if
     * annotation doesn't present
     */
    public SeverityLevel getSeverity() {
        Severity severity = getAnnotation(Severity.class);
        return severity == null ? null : severity.value();
    }
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.