From d8af4f9e175393e03176a2e8fc6456b443d74a7f Mon Sep 17 00:00:00 2001 From: Patrick Plitzner
XML
- * - * @return a {@link eu.etaxonomy.taxeditor.io.wizard.ClassificationChooserWizardPage} object. - */ protected static ClassificationChooserWizardPage createPage(){ return new ClassificationChooserWizardPage("Configure import destinations", "Note: Selecting no classification will create a default one."); } - /* (non-Javadoc) - * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) - */ /** {@inheritDoc} */ @Override public void createControl(Composite parent) { @@ -106,45 +80,9 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste btnClear.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif")); btnClear.addListener(SWT.Selection, this); - if(!CdmStore.getCurrentSessionManager().isRemoting()) { - //report - Label labelReportFile = new Label(composite, SWT.NONE); - labelReportFile.setText("Report File"); - - fileDialogReport = new FileDialog(parent.getShell()); - - fileDialogReport.setFilterExtensions(new String[]{"*.*"}); - - textFileReport = new Text(composite, SWT.BORDER); - textFileReport.setEditable(false); - textFileReport.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1)); - - - Button buttonReport = new Button(composite, SWT.PUSH); - buttonReport.setText("Browse..."); - - buttonReport.addSelectionListener(new SelectionAdapter(){ - - /* (non-Javadoc) - * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) - */ - @Override - public void widgetSelected(SelectionEvent e) { - String path = fileDialogReport.open(); - if(path!=null){ - textFileReport.setText(path); - setPageComplete(true); - } - } - - }); - } setControl(composite); } - /* (non-Javadoc) - * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event) - */ @Override public void handleEvent(Event event) { if(event.widget==btnBrowseClassification){ @@ -166,14 +104,4 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste return classification; } - public URI getReportUri(){ - if(textFileReport == null) { - return null; - } - String text = textFileReport.getText(); - if(text==null || text.isEmpty()){ - return null; - } - return new File(text).toURI(); - } } -- 2.30.2