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
*/
    public static String getLocation(IMarker marker) {
        return marker.getAttribute(IMarker.LOCATION, "");
    }
    /**
     * Returns the message attribute of the given marker,
     * or the empty string if the message attribute is not defined.
     */
    public static String getMessage(IMarker marker) {
        return marker.getAttribute(IMarker.MESSAGE, "");
    }
    /**
     * Returns the numeric value of the given string, which is assumed to represent a numeric value.
     *
     * @return <code>true</code> if numeric, <code>false</code> if not
     */
    static public int getNumericValue(String value) {
        boolean negative = false;
        int i = 0;
        int len = value.length();
        
        
        if (i < len && value.charAt(i) == '#')
            ++i;
        if (i < len && value.charAt(i) == '-') {
            negative = true;
            ++i;
        }
        int result = 0;
        while (i < len) {