performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / dialogs / filteredSelection / FilteredDerivedUnitSelectionDialog.java
index eeacc08d4d3b610c73463b55e2039765e039e6f6..efe1509b150292a6cc4753af2e02559f998504f8 100644 (file)
@@ -24,6 +24,8 @@ import eu.etaxonomy.taxeditor.editor.newWizard.NewDerivedUnitBaseWizard;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
+ * <p>FilteredDerivedUnitSelectionDialog class.</p>
+ *
  * @author n.hoffmann
  * @created Jun 17, 2010
  * @version 1.0
@@ -31,17 +33,36 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 public class FilteredDerivedUnitSelectionDialog extends
                AbstractFilteredCdmResourceSelectionDialog<DerivedUnitBase> {
 
+       /**
+        * <p>select</p>
+        *
+        * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
+        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
+        * @param unit a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object.
+        * @return a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object.
+        */
        public static DerivedUnitBase select(Shell shell, ConversationHolder conversation, DerivedUnitBase unit){
                FilteredDerivedUnitSelectionDialog dialog = new FilteredDerivedUnitSelectionDialog(shell, conversation,
                                "Choose Unit", false, FilteredDerivedUnitSelectionDialog.class.getCanonicalName(), unit);
                return getSelectionFromDialog(dialog);
        }
        
+       /**
+        * <p>Constructor for FilteredDerivedUnitSelectionDialog.</p>
+        *
+        * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
+        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
+        * @param title a {@link java.lang.String} object.
+        * @param multi a boolean.
+        * @param settings a {@link java.lang.String} object.
+        * @param cdmObject a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object.
+        */
        protected FilteredDerivedUnitSelectionDialog(Shell shell, ConversationHolder conversation, String title,
                        boolean multi, String settings, DerivedUnitBase cdmObject) {
                super(shell, conversation, title, multi, settings, cdmObject);
        }
        
+       /** {@inheritDoc} */
        @Override
        protected DerivedUnitBase getPersistentObject(UUID uuid) {
                Object object = CdmStore.getOccurrenceService().load(uuid);
@@ -55,16 +76,19 @@ public class FilteredDerivedUnitSelectionDialog extends
                return null;            
        }
 
+       /** {@inheritDoc} */
        @Override
        protected void initModel() {
                model = CdmStore.getOccurrenceService().getDerivedUnitBaseUuidAndTitleCache();
        }
 
+       /** {@inheritDoc} */
        @Override
        protected AbstractNewEntityWizard getNewEntityWizard() {
                return new NewDerivedUnitBaseWizard();
        }
 
+       /** {@inheritDoc} */
        @Override
        protected String getNewWizardLinkText() {
                return "Click link to create a new <A>Unit</A>.";