Deactivate experimental File System UI
authorbsinou <bsinou@argeo.org>
Fri, 20 Jan 2017 18:45:08 +0000 (19:45 +0100)
committerbsinou <bsinou@argeo.org>
Fri, 20 Jan 2017 18:45:08 +0000 (19:45 +0100)
org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/JcrBrowserPerspective.java
org.argeo.cms.ui.workbench/src/org/argeo/cms/ui/workbench/jcr/NodeFsBrowserView.java

index 634a24ab42dd953b1b6a3d74920fe13d4a65ceb9..c18778cee184780f30df9423190fe0c2b1cecab3 100644 (file)
@@ -30,6 +30,6 @@ public class JcrBrowserPerspective implements IPerspectiveFactory {
                                WorkbenchUiPlugin.PLUGIN_ID + ".upperLeft", IPageLayout.LEFT,
                                0.4f, layout.getEditorArea());
                upperLeft.addView(JcrBrowserView.ID);
-               upperLeft.addView(NodeFsBrowserView.ID);
+               // upperLeft.addView(NodeFsBrowserView.ID);
        }
 }
index e6ac7247a951f474caf1c7f191a5f5aca4d87fae..8a0eb5872a3ada71588c95cb4c5436f1e6465902 100644 (file)
@@ -40,17 +40,18 @@ public class NodeFsBrowserView extends ViewPart {
        @Override
        public void createPartControl(Composite parent) {
                try {
-                       URI uri = new URI("node:///home");
-                       FileSystem fileSystem = nodeFileSystemProvider.getFileSystem(uri);
-                       if(fileSystem==null)
-                               fileSystem = nodeFileSystemProvider.newFileSystem(uri,null);
-                       Path nodePath = fileSystem.getPath("/home");
-//                     Path nodePath = Paths.get(uri);
-                       
-                       Path path = Paths.get("/");
-                       SimpleFsBrowser browser = new SimpleFsBrowser(parent, SWT.NO_FOCUS);
-                       browser.setInput(path, nodePath);
-                       browser.setLayoutData(EclipseUiUtils.fillAll());
+// Display nothing yet
+//                     URI uri = new URI("node:///home");
+//                     FileSystem fileSystem = nodeFileSystemProvider.getFileSystem(uri);
+//                     if(fileSystem==null)
+//                             fileSystem = nodeFileSystemProvider.newFileSystem(uri,null);
+//                     Path nodePath = fileSystem.getPath("/home");
+////                   Path nodePath = Paths.get(uri);
+//                     
+//                     Path path = Paths.get("/");
+//                     SimpleFsBrowser browser = new SimpleFsBrowser(parent, SWT.NO_FOCUS);
+//                     browser.setInput(path, nodePath);
+//                     browser.setLayoutData(EclipseUiUtils.fillAll());
                } catch (Exception e) {
                        throw new CmsException("Cannot open file system browser", e);
                }
@@ -58,8 +59,6 @@ public class NodeFsBrowserView extends ViewPart {
 
        @Override
        public void setFocus() {
-               // TODO Auto-generated method stub
-
        }
 
        public void setNodeFileSystemProvider(FileSystemProvider nodeFileSystemProvider) {