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
private static Map imageDescriptors;
    private static ImageRegistry imageRegistry = new ImageRegistry();
    private static MessageFormat line = new MessageFormat(TaskListMessages.TaskList_line);
    private static MessageFormat lineAndLocation = new MessageFormat(
            TaskListMessages.TaskList_lineAndLocation); 
    static {
        createImageDescriptors();
    }
    /**
     * Don't allow instantiation.
     */
    private MarkerUtil() {
    }
    /**
     * Creates the map of image descriptors.
     */
    static void createImageDescriptors() {
    
        imageDescriptors = new HashMap(51);
        imageDescriptors
                .put(
                        "header_complete", IDEWorkbenchPlugin.getIDEImageDescriptor("obj16/header_complete.gif"));
        imageDescriptors
                .put(
                        "header_priority", IDEWorkbenchPlugin.getIDEImageDescriptor("obj16/header_priority.gif"));
        imageDescriptors.put(
                "task", IDEWorkbenchPlugin.getIDEImageDescriptor("obj16/taskmrk_tsk.gif"));
        imageDescriptors.put(