From: p.plitzner Date: Tue, 23 Feb 2016 08:22:08 +0000 (+0100) Subject: Trim code X-Git-Tag: 4.0.0^2~126 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/014739f704eebc5cdb71f11601c963c5a6c342d6 Trim code --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java index b9181aba3..332fd0282 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportWizard.java @@ -27,7 +27,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore; import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; /** - *

AbcdImportWizard class.

* * @author n.hoffmann * @created Jun 16, 2010 @@ -41,18 +40,12 @@ public class AbcdImportWizard extends AbstractImportWizardAbstract AbstractImportWizard class.

- * * @author n.hoffmann * @created 24.06.2009 * @version 1.0 @@ -42,10 +40,6 @@ public abstract class AbstractImportWizard exten private IStructuredSelection selection; - - /* (non-Javadoc) - * @see org.eclipse.jface.wizard.Wizard#addPages() - */ /** {@inheritDoc} */ @Override public void addPages() { @@ -60,9 +54,6 @@ public abstract class AbstractImportWizard exten } - /* (non-Javadoc) - * @see org.eclipse.jface.wizard.Wizard#setContainer(org.eclipse.jface.wizard.IWizardContainer) - */ @Override public void setContainer(IWizardContainer wizardContainer) { if(existUnsavedEditors()){ @@ -74,9 +65,6 @@ public abstract class AbstractImportWizard exten } } - /* (non-Javadoc) - * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) - */ @Override public void init(IWorkbench workbench, IStructuredSelection selection) { this.setWorkbench(workbench); @@ -96,45 +84,25 @@ public abstract class AbstractImportWizard exten return false; } - /* (non-Javadoc) - * @see org.eclipse.jface.wizard.Wizard#canFinish() - */ @Override public boolean canFinish() { return !existUnsavedEditors() && super.canFinish(); } - /** - *

getConfigurator

- * - * @return a CONFIG object. - */ public abstract CONFIG getConfigurator(); - /** - * @param selection the selection to set - */ public void setSelection(IStructuredSelection selection) { this.selection = selection; } - /** - * @return the selection - */ public IStructuredSelection getSelection() { return selection; } - /** - * @param workbench the workbench to set - */ public void setWorkbench(IWorkbench workbench) { this.workbench = workbench; } - /** - * @return the workbench - */ public IWorkbench getWorkbench() { return workbench; } diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ImportFromFileDataSourceWizardPage.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ImportFromFileDataSourceWizardPage.java index 3c7f5516d..925e4ad48 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ImportFromFileDataSourceWizardPage.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ImportFromFileDataSourceWizardPage.java @@ -28,7 +28,6 @@ import org.eclipse.swt.widgets.Text; import eu.etaxonomy.cdm.common.CdmUtils; /** - *

ImportFromFileDataSourceWizardPage class.

* * @author n.hoffmann * @created 04.08.2009 @@ -45,14 +44,6 @@ public class ImportFromFileDataSourceWizardPage extends WizardPage { private Text text_file; - - /** - *

Constructor for ImportFromFileDataSourceWizardPage.

- * - * @param title a {@link java.lang.String} object. - * @param description a {@link java.lang.String} object. - * @param extensions an array of {@link java.lang.String} objects. - */ protected ImportFromFileDataSourceWizardPage(String title, String description, String[] extensions) { super(PAGE_NAME); @@ -63,20 +54,10 @@ public class ImportFromFileDataSourceWizardPage extends WizardPage { this.extensions = extensions; } - /** - *

XML

- * - * @return a {@link eu.etaxonomy.taxeditor.io.wizard.ImportFromFileDataSourceWizardPage} object. - */ protected static ImportFromFileDataSourceWizardPage XML(){ return new ImportFromFileDataSourceWizardPage("Xml File", "Select XML file.", new String[]{"*.xml","*.*"}); } - - - /* (non-Javadoc) - * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite) - */ /** {@inheritDoc} */ @Override public void createControl(Composite parent) { @@ -105,9 +86,6 @@ public class ImportFromFileDataSourceWizardPage extends WizardPage { button.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 = fileDialog.open(); @@ -123,20 +101,10 @@ public class ImportFromFileDataSourceWizardPage extends WizardPage { setControl(composite); } - /** - *

getFile

- * - * @return a {@link java.io.File} object. - */ public File getFile() { return new File(text_file.getText()); } - /** - *

getUri

- * - * @return a {@link java.net.URI} object. - */ public URI getUri() { return getFile().toURI(); }