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
final String contentTypeId) {
        final String expectedValue = contentTypeId.trim();
        if (!(resource instanceof IFile)) {
            return false;
        }
        final IFile file = (IFile) resource;
        String actualValue = null;
        try {
            final IContentDescription contentDescription = file
                    .getContentDescription();
            if (contentDescription != null) {
                final IContentType contentType = contentDescription
                        .getContentType();
                actualValue = contentType.getId();
            }
        } catch (final CoreException e) {
            
            final String message = "Core exception while retrieving the content description"; 
            IDEWorkbenchPlugin.log(message,
                    new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH,
                            IStatus.ERROR, message, e));
        }
        return expectedValue == null || expectedValue.equals(actualValue);
    }
    /**
     * Tests whether a session or persistent property on the resource or its project
     * matches the given value.
     * 
     * @param resource
     *            the resource to check