/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { // not yet: after phase III: * @deprecated {@link Logger#log} log(INFORMATIONAL, s); }
/** Calls all delegates. */ public void log(int severity, String s) { if (severity == UNKNOWN) { throw new IllegalArgumentException("ErrorManager.log(UNKNOWN, ...) is not permitted"); // NOI18N } if (delegates.isEmpty()) { Level sev = convertSeverity(severity, false, Level.FINE); if (enterLogger()) return; try { logger().log(sev, s); } finally { exitLogger(); } return; } for (ErrorManager em : delegates) { em.log(severity, s); } }
/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { // not yet: after phase III: * @deprecated {@link Logger#log} log(INFORMATIONAL, s); }
/** Calls all delegates. */ public void log(int severity, String s) { if (severity == UNKNOWN) { throw new IllegalArgumentException("ErrorManager.log(UNKNOWN, ...) is not permitted"); // NOI18N } if (delegates.isEmpty()) { Level sev = convertSeverity(severity, false, Level.FINE); if (enterLogger()) return; try { logger().log(sev, s); } finally { exitLogger(); } return; } for (ErrorManager em : delegates) { em.log(severity, s); } }
/** * Logs the string only if logging is turned on. */ private static void log(String s) { if (LOGABLE) { err.log(s); } }
/** * Creates a new instance of ProjectDataSourceServiceImpl */ public ProjectDataSourceServiceImpl() { Log.err.log( ErrorManager.INFORMATIONAL, "DataSourceService Implementation Ready." ) ; // NOI18N }
/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { log(INFORMATIONAL, s); }
/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { // not yet: after phase III: * @deprecated {@link Logger#log} log(INFORMATIONAL, s); }
/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { // not yet: after phase III: * @deprecated {@link Logger#log} log(INFORMATIONAL, s); }
/** Logs the message to log file and (possibly) tells the user. * Uses a default severity. * @param s the log message */ public final void log(String s) { log(INFORMATIONAL, s); }
/** Set the help ID for a component. * @param comp the visual component to associate help to * @param helpID help ID, or <code>null</code> if the help ID should be removed */ public static void setHelpIDString (JComponent comp, String helpID) { if (err != null) err.log("setHelpIDString: " + helpID + " on " + comp); comp.putClientProperty("HelpID", helpID); // NOI18N }
/** Set the help ID for a component. * @param comp the visual component to associate help to * @param helpID help ID, or <code>null</code> if the help ID should be removed */ public static void setHelpIDString (JComponent comp, String helpID) { if (err != null) err.log("setHelpIDString: " + helpID + " on " + comp); comp.putClientProperty("HelpID", helpID); // NOI18N }
public static String getMessage (String name) { try { return bundle.getString (name); } catch (MissingResourceException e) { ErrorManager.getDefault().log(ErrorManager.INFORMATIONAL, "Missing Resource Bundle Message: Bundle: " // NOI18N + Bundle.class.getName() + " Resource: " + name); // NOI18N return name; } }
private static File normalizeFileOnWindows(final File file) { File retVal = null; if (canBeCanonicalizedOnWindows(file)) { try { retVal = file.getCanonicalFile(); } catch (IOException e) { ErrorManager.getDefault().log(ErrorManager.ERROR, "getCanonicalFile() on file " + file + " failed. " + e.toString()); // NOI18N } } return (retVal != null) ? retVal : file.getAbsoluteFile(); }
public boolean isBuilt() { if (!checkProjectOpen()) { ErrorManager.getDefault().log(ErrorManager.INFORMATIONAL, NbBundle.getMessage(ProjectBuiltQuery.class, "ERROR_ProjectIsNotOpen")); } return built; }
public void startElement(String element, Attributes atts) { if (TAG_OPTION.equals(element)) { String name = atts.getValue(ATTR_OPTION_NAME); OptionValue o = optionSet.byName(name); if (o != null) { String value = atts.getValue(ATTR_OPTION_VALUE); o.setInitialValue(value); } else { ErrorManager.getDefault().log("Warning: unknown option " + name); // NOI18N } } }
public void notifyUndoableEditEvent(SourceUnit unit) { if (currentEvent != null) { currentEvent.notifyBufferUpdated(unit); } else { org.openide.ErrorManager.getDefault().log("Unexpected undoable event with no current event"); } }
static void log(Class clazz, String msg) { if (isLoggable (clazz)){ ErrorManager.getDefault().getInstance(clazz.getName()).log(msg); } }
/** Fired when a new file has been renamed. * * @param fe the event describing context where action has taken place */ public void fileRenamed (FileRenameEvent fe) { final boolean LOG = err.isLoggable(ErrorManager.INFORMATIONAL); if (LOG) err.log ("fileRenamed: " + fe); refresh(); // Typically order may change as a result (#13820): changeComparator(); }