Project

General

Profile

« Previous | Next » 

Revision 2cbfc2bf

Added by Katja Luther almost 7 years ago

smaller changes in ExportWizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java
309 309
		    classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
310 310
		                true, false, 2, 1));
311 311
		}
312
		if (outputModelExport){
313
			 Label zipLabel = new Label(composite, SWT.NONE);
314
		        zipLabel.setText("Create zip-File");
315
		   Button zip = new Button(composite, SWT.CHECK);
316
		   zip.addSelectionListener(new SelectionAdapter() {
317
				/*
318
				 * (non-Javadoc)
319
				 *
320
				 * @see
321
				 * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
322
				 * .swt.events.SelectionEvent)
323
				 */
324
				@Override
325
				public void widgetSelected(SelectionEvent e) {
326
					super.widgetSelected(e);
327
					((CdmLightExportConfigurator)configurator).setCreateZipFile(zip.getSelection());
328
				}
329
			});
330
		}else {
331
			 Label fileLabel = new Label(composite, SWT.NONE);
332
		        fileLabel.setText("File");
333
	    		text_exportFileName = new Text(composite, SWT.BORDER);
334
	    		text_exportFileName.setText(generateFilename());
335
	    		text_exportFileName.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
336
	    				true, false));
337
		}
312
		
338 313

  
339 314
		Label folderLabel = new Label(composite, SWT.NONE);
340 315
		folderLabel.setText("Select Folder for exported files");
341 316
		folderLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
342 317
        true, false, 2, 1));
343 318
		folderDialog = new DirectoryDialog(parent.getShell());
319
		folderDialog.setFilterPath(PreferencesUtil.getPreferenceStore().getString(EXPORT_FOLDER));
344 320

  
345 321
		text_folder = new Text(composite, SWT.BORDER);
346 322
		text_folder.setEditable(false);
......
365 341
			@Override
366 342
			public void widgetSelected(SelectionEvent e) {
367 343
				super.widgetSelected(e);
344

  
368 345
				String path = folderDialog.open();
369 346
				if (path != null) { // a folder was selected
370 347
					text_folder.setText(path);
......
373 350
				}
374 351
			}
375 352
		});
376

  
353
		if (outputModelExport){
354
			 Label zipLabel = new Label(composite, SWT.NONE);
355
		        zipLabel.setText("Create zip-File");
356
		   Button zip = new Button(composite, SWT.CHECK);
357
		   zip.addSelectionListener(new SelectionAdapter() {
358
				/*
359
				 * (non-Javadoc)
360
				 *
361
				 * @see
362
				 * org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse
363
				 * .swt.events.SelectionEvent)
364
				 */
365
				@Override
366
				public void widgetSelected(SelectionEvent e) {
367
					super.widgetSelected(e);
368
					((CdmLightExportConfigurator)configurator).setCreateZipFile(zip.getSelection());
369
				}
370
			});
371
		}else {
372
			 Label fileLabel = new Label(composite, SWT.NONE);
373
		        fileLabel.setText("File");
374
	    		text_exportFileName = new Text(composite, SWT.BORDER);
375
	    		text_exportFileName.setText(generateFilename());
376
	    		text_exportFileName.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
377
	    				true, false));
378
		}
377 379
		// make the composite the wizard pages control
378 380
		setControl(composite);
379 381
	}

Also available in: Unified diff