X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fwizards%2FFetchWizard.java;h=7b480a4bdbe4ff2b64ed348333738924c2d9f3c8;hb=3c03bb5b3b75ca4822c62930f3c4569fbdf96de2;hp=44649f94e35c9302f228e202e1106b113f4bf414;hpb=e2ad359a9b5d3822dcc2ad0576070fc46e2847d8;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/wizards/FetchWizard.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/wizards/FetchWizard.java index 44649f94e..7b480a4bd 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/wizards/FetchWizard.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/wizards/FetchWizard.java @@ -84,6 +84,7 @@ public class FetchWizard extends Wizard { // This page widget private DefineModelPage page; private CheckboxTableViewer wkspViewer; + private Button filesOnlyBtn; public FetchWizard(Keyring keyring, RepositoryFactory repositoryFactory, Repository nodeRepository) { @@ -167,6 +168,10 @@ public class FetchWizard extends Wizard { wksps.add((String) obj); } repoSync.setSourceWkspList(wksps); + + // Set the import files only option + repoSync.setFilesOnly(filesOnlyBtn.getSelection()); + FetchJob job = new FetchJob(repoSync); job.setUser(true); job.schedule(); @@ -207,6 +212,13 @@ public class FetchWizard extends Wizard { GridData gd = new GridData(GridData.FILL_HORIZONTAL); chooseSourceRepoCmb.setLayoutData(gd); + // Import only files + filesOnlyBtn = new Button(composite, SWT.CHECK | SWT.WRAP); + filesOnlyBtn + .setText("Import only files (faster, a normalized action should be launched once done)"); + filesOnlyBtn.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, + false, 2, 1)); + // Workspace table Composite wkspTable = new Composite(composite, SWT.NONE); gd = new GridData();