public static IStatus convertToStatus(LogEntry logEntry) { Object context = null; if (logEntry instanceof ExtendedLogEntry) context = ((ExtendedLogEntry) logEntry).getContext(); if (context instanceof IStatus) return (IStatus) context; if (context instanceof FrameworkLogEntry) { FrameworkLogEntry fLogEntry = (FrameworkLogEntry) context; context = fLogEntry.getContext(); if (context instanceof IStatus) return (IStatus) context; return convertToStatus(fLogEntry); } return convertRawEntryToStatus(logEntry); }
public static IStatus convertToStatus(LogEntry logEntry) { Object context = null; if (logEntry instanceof ExtendedLogEntry) context = ((ExtendedLogEntry) logEntry).getContext(); if (context instanceof IStatus) return (IStatus) context; if (context instanceof FrameworkLogEntry) { FrameworkLogEntry fLogEntry = (FrameworkLogEntry) context; context = fLogEntry.getContext(); if (context instanceof IStatus) return (IStatus) context; return convertToStatus(fLogEntry); } return convertRawEntryToStatus(logEntry); }
public static IStatus convertToStatus(LogEntry logEntry) { Object context = null; if (logEntry instanceof ExtendedLogEntry) context = ((ExtendedLogEntry) logEntry).getContext(); if (context instanceof IStatus) return (IStatus) context; if (context instanceof FrameworkLogEntry) { FrameworkLogEntry fLogEntry = (FrameworkLogEntry) context; context = fLogEntry.getContext(); if (context instanceof IStatus) return (IStatus) context; return convertToStatus(fLogEntry); } return convertRawEntryToStatus(logEntry); }
public static IStatus convertToStatus(LogEntry logEntry) { Object context = null; if (logEntry instanceof ExtendedLogEntry) context = ((ExtendedLogEntry) logEntry).getContext(); if (context instanceof IStatus) return (IStatus) context; if (context instanceof FrameworkLogEntry) { FrameworkLogEntry fLogEntry = (FrameworkLogEntry) context; context = fLogEntry.getContext(); if (context instanceof IStatus) return (IStatus) context; return convertToStatus(fLogEntry); } return convertRawEntryToStatus(logEntry); }