Bug 76978 [ErrorHandling] WorkbenchPlugin logs to System.err
methods such as below, log to System err. These should be updated to use ILog. /** * Logs the given message to the platform log. * * If you have an exception in hand, call log(String, Throwable) instead. * * If you have a status object in hand call log(String, IStatus) instead. * * This convenience method is for internal use by the Workbench only and * must not be called outside the Workbench. * * @param message * A high level UI message describing when the problem happened. */ public static void log(String message) { getDefault().getLog().log( StatusUtil.newStatus(IStatus.ERROR, message, null)); System.err.println(message); //1FTTJKV: ITPCORE:ALL - log(status) does not allow plugin information to be recorded }
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
int digit = Character.digit(value.charAt(i++), 10);
            if (digit < 0) {
                return result;
            }
            result = result * 10 + digit;
        }
        if (negative) {
            result = -result;
        }
        return result;
    }
    /**
     * Returns the priority of the given marker.  Default is PRIORITY_NORMAL.
     */
    public static int getPriority(IMarker marker) {
        return marker.getAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL);
    }
    /**
     * Returns an image that should visually represent marker's priority
     * in the tasklist.
     */
    public static Image getPriorityImage(IMarker marker) {
        switch (getPriority(marker)) {
        case IMarker.PRIORITY_HIGH:
            return getImage("hprio");
        case IMarker.PRIORITY_NORMAL:
            return null; 
        case IMarker.PRIORITY_LOW:
            return getImage("lprio");
        }