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
}
        if (key.equals(IResourcePropertyConstants.P_SIZE_RES)) {
			return getSizeString((IFile) element);
		}
        return null;
    }
    /**
     * Return a String that indicates the size of the supplied file.
     */
    private String getSizeString(IFile file) {
        if (!file.isLocal(IResource.DEPTH_ZERO)) {
			return NOT_LOCAL_TEXT;
		} 
        
        IPath location = file.getLocation();
        if (location == null) {
            if (file.isLinked()) {
				return UNDEFINED_PATH_VARIABLE;
			}
            return FILE_NOT_FOUND;
        } 
        
        File localFile = location.toFile();
        if (localFile.exists()) {
            return Long.toString(localFile.length());
        }
        return FILE_NOT_FOUND;
    }
}