1 package org
.argeo
.eclipse
.ui
.specific
;
3 import java
.io
.InputStream
;
5 import org
.eclipse
.jface
.preference
.DirectoryFieldEditor
;
6 import org
.eclipse
.jface
.wizard
.WizardPage
;
7 import org
.eclipse
.swt
.widgets
.Composite
;
9 public class ImportFileSystemWizardPage
extends WizardPage
{
10 private DirectoryFieldEditor dfe
;
12 public ImportFileSystemWizardPage() {
13 super("Import from file system");
14 setDescription("Import files from the local file system into the JCR repository");
17 public void createControl(Composite parent
) {
18 dfe
= new DirectoryFieldEditor("directory", "From", parent
);
19 setControl(dfe
.getTextControl(parent
));
22 public String
getObjectPath() {
23 System
.out
.println("dfe.getStringValue() : " + dfe
.getStringValue());
24 return dfe
.getStringValue();
27 public String
getObjectType() {
31 // Dummy methods : useless in RCP context but useful for RAP
32 /** WARNING : always return null in RCP context */
33 public String
getObjectName() {
37 /** WARNING : di nothing in RCP context */
38 public void performFinish() {
41 /** WARNING : always return null in RCP context */
42 public InputStream
getFileInputStream() {