Project

General

Profile

« Previous | Next » 

Revision 80241903

Added by Patrick Plitzner over 6 years ago

Trim code

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NameSelectionDialog.java
22 22
import eu.etaxonomy.taxeditor.store.CdmStore;
23 23

  
24 24
/**
25
 * <p>FilteredNameSelectionDialog class.</p>
26
 *
27 25
 * @author n.hoffmann
28 26
 * @created 04.06.2009
29 27
 * @version 1.0
30 28
 */
31 29
public class NameSelectionDialog extends AbstractFilteredCdmResourceSelectionDialog<TaxonNameBase> {
32 30

  
33
	/**
34
	 * Creates a filtered selection dialog to select a name.
35
	 *
36
	 * @param shell
37
	 * 				The shell for displaying this widget
38
	 * @param name
39
	 * 				A name that should be selected when the dialog opens
40
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
41
	 * @return a {@link eu.etaxonomy.cdm.model.name.TaxonNameBase} object.
42
	 */
43 31
	public static TaxonNameBase select(Shell shell, ConversationHolder conversation, TaxonNameBase name) {
44 32
		NameSelectionDialog dialog = new NameSelectionDialog(shell, conversation,
45 33
				"Choose a name", false, name);
46 34
		return getSelectionFromDialog(dialog);
47 35
	}
48 36

  
49
	/**
50
	 * <p>Constructor for FilteredNameSelectionDialog.</p>
51
	 *
52
	 * @param shell a {@link org.eclipse.swt.widgets.Shell} object.
53
	 * @param title a {@link java.lang.String} object.
54
	 * @param name a {@link eu.etaxonomy.cdm.model.name.TaxonNameBase} object.
55
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
56
	 * @param multi a boolean.
57
	 */
58 37
	protected NameSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, TaxonNameBase name) {
59 38
		super(shell, conversation, title, multi, NameSelectionDialog.class.getCanonicalName(), name);
60 39
	}
61 40

  
62
	/* (non-Javadoc)
63
	 * @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#getPersistentObject(java.util.UUID)
64
	 */
65 41
	/** {@inheritDoc} */
66 42
	@Override
67 43
	protected TaxonNameBase getPersistentObject(UUID cdmUuid) {
68 44
		return CdmStore.getService(INameService.class).load(cdmUuid);
69 45
	}
70 46

  
71
	/* (non-Javadoc)
72
	 * @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#initModel()
73
	 */
74 47
	/** {@inheritDoc} */
75 48
	@Override
76 49
	protected void initModel() {

Also available in: Unified diff