Bug 150609 [Properties dialog][EFS] File properties for custom filesystem not shown
While implementing a custom filesystem, we came across the following problem: the properties 'last modified', 'location' and 'size' receive the value '<resource does not exist>'. The problem is due to the use of IResource#getLocation() in ResourcePropertySource and FilePropertySource which returns null in case of resources that are not stored on the default local filesystem. IResource#getLocationURI() should be used instead. In fact, this already happens in IDEResourceInfoUtils, which contains static versions of the same property retrieval methods implemented in ResourcePropertySource and FilePropertySource.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/FilePropertySource.java
/*******************************************************************************
 * Copyright (c) 2000, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.views.properties;
import java.io.File;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.viewers.IBasicPropertyConstants;
import org.eclipse.osgi.util.TextProcessor;
/**
 * The FilePropertySource gives the extra information that is shown for files
 */
public class FilePropertySource extends ResourcePropertySource {