Bug 80646 [Dialogs] ResourceInfoPage should set background on read-only text widgets
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
* Get the string that identifies the type of this resource.
	 * 
	 * @param resource
	 * @return String
	 */
	private String getTypeString(IResource resource) {
		if (resource.getType() == IResource.FILE) {
			if (resource.isLinked())
				return LINKED_FILE_LABEL;
			if (resource instanceof IFile) {
				String contentType = getContentTypeString((IFile) resource);
				if (contentType != null)
					return MessageFormat.format(FILE_TYPE_FORMAT,
							new String[] { contentType });
			}
			return FILE_LABEL;
		}
		if (resource.getType() == IResource.FOLDER) {
			if (resource.isLinked())
				return LINKED_FOLDER_LABEL;
			return FOLDER_LABEL;
		}
		if (resource.getType() == IResource.PROJECT)
			return PROJECT_LABEL;
		
		return UNKNOWN_LABEL;
	}
	/**
	 * Returns whether the given resource is a linked resource bound to a path
	 * variable.