1 17 package org.eclipse.emf.common.util; 18 19 20 import java.util.List ; 21 22 23 26 public interface Diagnostic 27 { 28 31 int OK = 0x0; 32 33 36 int INFO = 0x1; 37 38 41 int WARNING = 0x2; 42 43 46 int ERROR = 0x4; 47 48 51 int CANCEL = 0x8; 52 53 56 int getSeverity(); 57 58 61 String getMessage(); 62 63 66 String getSource(); 67 68 71 int getCode(); 72 73 79 List getData(); 80 81 84 List getChildren(); 85 86 89 Diagnostic OK_INSTANCE = 90 new BasicDiagnostic 91 (OK, "org.eclipse.emf.common", 0, org.eclipse.emf.common.CommonPlugin.INSTANCE.getString("_UI_OK_diagnostic_0"), null); 92 93 96 Diagnostic CANCEL_INSTANCE = 97 new BasicDiagnostic 98 (CANCEL, "org.eclipse.emf.common", 0, org.eclipse.emf.common.CommonPlugin.INSTANCE.getString("_UI_Cancel_diagnostic_0"), null); 99 } 100 | Popular Tags |