2 * Copyright (C) 2007-2012 Argeo GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.cms
.ui
.workbench
.jcr
;
18 import java
.nio
.file
.spi
.FileSystemProvider
;
20 import org
.argeo
.cms
.ui
.workbench
.WorkbenchUiPlugin
;
21 import org
.eclipse
.swt
.widgets
.Composite
;
22 import org
.eclipse
.ui
.part
.ViewPart
;
25 * Browse the node file system.
27 public class NodeFsBrowserView
extends ViewPart
{
28 public final static String ID
= WorkbenchUiPlugin
.PLUGIN_ID
+ ".nodeFsBrowserView";
30 private FileSystemProvider nodeFileSystemProvider
;
33 public void createPartControl(Composite parent
) {
34 // SimpleFsBrowser browser = new SimpleFsBrowser(parent, SWT.NO_FOCUS);
35 // Path path = Paths.get("/");
36 // browser.setInput(path);
37 // browser.setLayoutData(EclipseUiUtils.fillAll());
41 public void setFocus() {
42 // TODO Auto-generated method stub
46 public void setNodeFileSystemProvider(FileSystemProvider nodeFileSystemProvider
) {
47 this.nodeFileSystemProvider
= nodeFileSystemProvider
;