Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/dialogs/filteredSelection/FilteredAgentSelectionDialog.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
26 | 26 |
|
27 | 27 |
/** |
28 |
* <p>FilteredAgentSelectionDialog class.</p> |
|
29 |
* |
|
28 | 30 |
* @author n.hoffmann |
29 | 31 |
* @created Sep 10, 2009 |
30 | 32 |
* @version 1.0 |
... | ... | |
32 | 34 |
public class FilteredAgentSelectionDialog extends |
33 | 35 |
AbstractFilteredCdmResourceSelectionDialog<AgentBase> { |
34 | 36 |
|
37 |
/** |
|
38 |
* <p>select</p> |
|
39 |
* |
|
40 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
41 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
42 |
* @param entity a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object. |
|
43 |
* @return a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object. |
|
44 |
*/ |
|
35 | 45 |
public static AgentBase select(Shell shell, ConversationHolder conversation, AgentBase entity) { |
36 | 46 |
FilteredAgentSelectionDialog dialog = new FilteredAgentSelectionDialog(shell, conversation, |
37 | 47 |
"Choose Agent", false, FilteredAgentSelectionDialog.class.getCanonicalName(), entity); |
... | ... | |
39 | 49 |
} |
40 | 50 |
|
41 | 51 |
/** |
42 |
* @param shell |
|
43 |
* @param title |
|
44 |
* @param agent |
|
45 |
*/ |
|
52 |
* <p>Constructor for FilteredAgentSelectionDialog.</p> |
|
53 |
* |
|
54 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
55 |
* @param title a {@link java.lang.String} object. |
|
56 |
* @param agent a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object. |
|
57 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
58 |
* @param multi a boolean. |
|
59 |
* @param settings a {@link java.lang.String} object. |
|
60 |
*/ |
|
46 | 61 |
protected FilteredAgentSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, String settings, AgentBase agent) { |
47 | 62 |
super(shell, conversation, title, multi, settings, agent); |
48 | 63 |
} |
... | ... | |
70 | 85 |
/* (non-Javadoc) |
71 | 86 |
* @see eu.etaxonomy.taxeditor.dialogs.AbstractFilteredCdmResourceSelectionDialog#getPersistentObect(java.util.UUID) |
72 | 87 |
*/ |
88 |
/** {@inheritDoc} */ |
|
73 | 89 |
@Override |
74 | 90 |
protected AgentBase getPersistentObject(UUID cdmUuid) { |
75 | 91 |
return CdmStore.getAgentService().load(cdmUuid); |
76 | 92 |
} |
77 | 93 |
|
94 |
/** {@inheritDoc} */ |
|
78 | 95 |
@Override |
79 | 96 |
protected AbstractNewEntityWizard getNewEntityWizard() { |
80 | 97 |
return null; |
81 | 98 |
} |
82 | 99 |
|
100 |
/** {@inheritDoc} */ |
|
83 | 101 |
@Override |
84 | 102 |
protected String getNewWizardLinkText() { |
85 | 103 |
return "Create a new <a>Team</a> or <a>Person</a>"; |
86 | 104 |
} |
87 | 105 |
|
106 |
/** {@inheritDoc} */ |
|
88 | 107 |
@Override |
89 | 108 |
protected Control createExtendedContentArea(Composite parent) { |
90 | 109 |
// nothing at the moment |
91 | 110 |
return null; |
92 | 111 |
} |
93 | 112 |
|
113 |
/** {@inheritDoc} */ |
|
94 | 114 |
@Override |
95 | 115 |
protected void initModel() { |
96 | 116 |
model = CdmStore.getAgentService().getUuidAndTitleCache(); |
97 | 117 |
} |
98 | 118 |
|
99 | 119 |
|
100 |
} |
|
120 |
} |
Also available in: Unified diff
performed javacscript:fix and worked on documentation