import eu.etaxonomy.taxeditor.store.CdmStore;
/**
- * <p>FilteredTaxonNodeSelectionDialog class.</p>
- *
* @author p.ciardelli
* @version $Id: $
*/
public class TaxonNodeSelectionDialog extends AbstractFilteredCdmResourceSelectionDialog<TaxonNode> implements SelectionListener{
- /**
- * <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 title a {@link java.lang.String} object.
- * @param excludeTaxa a {@link java.util.List} object.
- * @param node a {@link eu.etaxonomy.cdm.model.taxon.TaxonNode} object.
- * @return a {@link eu.etaxonomy.cdm.model.taxon.TaxonNode} object.
- */
public static TaxonNode select(Shell shell, ConversationHolder conversation, String title, List<UUID> excludeTaxa, TaxonNode node, Classification classification) {
TaxonNodeSelectionDialog dialog = new TaxonNodeSelectionDialog(shell,
conversation,
private Classification selectedClassification;
- /**
- * <p>Constructor for FilteredTaxonNodeSelectionDialog.</p>
- *
- * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
- * @param title a {@link java.lang.String} object.
- * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
- * @param excludeTaxa a {@link java.util.List} object.
- * @param multi a boolean.
- * @param node a {@link eu.etaxonomy.cdm.model.taxon.TaxonNode} object.
- */
protected TaxonNodeSelectionDialog(Shell shell, ConversationHolder conversation, String title, List<UUID> excludeTaxa, boolean multi, TaxonNode node, Classification classification) {
super(shell, conversation, title, multi, TaxonNodeSelectionDialog.class.getCanonicalName(), node);
}
}
-
- /* (non-Javadoc)
- * @see org.eclipse.ui.dialogs.FilteredItemsSelectionDialog#createExtendedContentArea(org.eclipse.swt.widgets.Composite)
- */
/** {@inheritDoc} */
@Override
protected Control createExtendedContentArea(Composite parent) {
return "";
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#getPersistentObject(java.util.UUID)
- */
/** {@inheritDoc} */
@Override
protected TaxonNode getPersistentObject(UUID uuid) {
return CdmStore.getService(IClassificationService.class).getTaxonNodeByUuid(uuid);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#initModel()
- */
/** {@inheritDoc} */
@Override
protected void initModel() {