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
return getLineAndLocation(lineNumber, location);
    }
    /**
     * Returns the text for the line and location column given the line number and location text.
     */
    public static String getLineAndLocation(int lineNumber, String location) {
        if (lineNumber == -1) {
            if (location.equals("")) {
                return "";
            } else {
                return location;
            }
        } else {
            if (location.equals("")) {
                return line
                        .format(new Object[] { Integer.toString(lineNumber) });
            } else {
                return lineAndLocation.format(new Object[] {
                        Integer.toString(lineNumber), location });
            }
        }
    }
    /**
     * Returns the line number of the given marker.
     */
    public static int getLineNumber(IMarker marker) {
        return marker.getAttribute(IMarker.LINE_NUMBER, -1);
    }
    /**
     * Returns the text for the location field.