Bug 66967 [Contributions] PropertyParser should be deprecated (or removed)
Internal class org.eclipse.ui.ide/org.eclipse.ui.internal.ide.model/PropertyParser should be deprecated. People should be using the extension point org.eclipse.core.runtime.contentTypes instead Note that the tags XML_FIRST_TAG and XML_DTD_NAME have already been deprecated. Can we actually remove these instead of deprecating them?
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/WorkbenchResource.java
public String getLabel(Object o) {
        IResource resource = getResource(o);
        return resource == null ? null : resource.getName();
    }
    /**
     * Returns the parent of the given object.  Returns null if the
     * parent is not available.
     */
    public Object getParent(Object o) {
        IResource resource = getResource(o);
        return resource == null ? null : resource.getParent();
    }
    /**
     * Returns the resource corresponding to this object,
     * or null if there is none.
     */
    protected IResource getResource(Object o) {
        if (o instanceof IResource) {
            return (IResource) o;
        }
        if (o instanceof IAdaptable) {
            return (IResource) ((IAdaptable) o).getAdapter(IResource.class);
        }
        return null;
    }
    /**
     * Returns whether the specific attribute matches the state of the target
     * object.
     *
     * @param target the target object