Bug 87826 Need to improve image loading in Workbench
The Workbench image loading has several issues 1) The string "icons/full" is all over the place in the UI and should be made a constant 2) This needs to be prepended by /nl 3) The plugin descriptor is still in use to load images. This does not support nl which is required for BIDI support
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
import java.util.Map;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.IBasicPropertyConstants;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.internal.views.tasklist.TaskListMessages;
/**
 * Utility class for accessing marker attributes.
 */
class MarkerUtil implements IMarkerConstants {
    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 an image descriptor for the image file referred to by the
     * given relative path (relative to the icons directory for the plug-in).