import org.argeo.cms.CmsException;
import org.argeo.eclipse.ui.fs.AdvancedFsBrowser;
import org.argeo.eclipse.ui.fs.SimpleFsBrowser;
+import org.argeo.node.NodeUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
FileSystem fileSystem = nodeFileSystemProvider.getFileSystem(uri);
if (fileSystem == null)
fileSystem = nodeFileSystemProvider.newFileSystem(uri, null);
- Path nodePath = fileSystem.getPath("/");
+ Path nodePath = fileSystem.getPath("~");
Path localPath = Paths.get(System.getProperty("user.home"));
this.setItemCount(0);
return;
}
- boolean isRoot = dir.getRoot().equals(dir);
+ boolean isRoot;
+ try {
+ isRoot = dir.getRoot().equals(dir);
+ } catch (Exception e) {
+ // FIXME Workaround for JCR root node access
+ isRoot = dir.toString().equals("/");
+ }
final Object[] res;
if (isRoot)
res = rows;
case FsUiConstants.PROPERTY_SIZE:
return "-";
case FsUiConstants.PROPERTY_LAST_MODIFIED:
- return Files.getLastModifiedTime(((ParentDir) element).getPath()).toString();
+ return "-";
+ // return Files.getLastModifiedTime(((ParentDir) element).getPath()).toString();
case FsUiConstants.PROPERTY_TYPE:
return "Folder";
}