Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/dialogs/filteredSelection/FilteredTeamSelectionDialog.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
22 | 22 |
|
23 | 23 |
/** |
24 |
* <p>FilteredTeamSelectionDialog class.</p> |
|
25 |
* |
|
24 | 26 |
* @author n.hoffmann |
25 | 27 |
* @created Sep 24, 2009 |
26 | 28 |
* @version 1.0 |
... | ... | |
28 | 30 |
public class FilteredTeamSelectionDialog extends |
29 | 31 |
AbstractFilteredCdmResourceSelectionDialog<Team> { |
30 | 32 |
|
33 |
/** |
|
34 |
* <p>select</p> |
|
35 |
* |
|
36 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
37 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
38 |
* @param team a {@link eu.etaxonomy.cdm.model.agent.Team} object. |
|
39 |
* @return a {@link eu.etaxonomy.cdm.model.agent.Team} object. |
|
40 |
*/ |
|
31 | 41 |
public static Team select(Shell shell, ConversationHolder conversation, Team team){ |
32 | 42 |
FilteredTeamSelectionDialog dialog = new FilteredTeamSelectionDialog(shell, conversation, |
33 | 43 |
"Choose Team", false, FilteredTeamSelectionDialog.class.getCanonicalName(), team); |
... | ... | |
35 | 45 |
} |
36 | 46 |
|
37 | 47 |
/** |
38 |
* @param shell |
|
39 |
* @param title |
|
40 |
* @param multi |
|
41 |
* @param settings |
|
42 |
* @param cdmObject |
|
48 |
* <p>Constructor for FilteredTeamSelectionDialog.</p> |
|
49 |
* |
|
50 |
* @param shell a {@link org.eclipse.swt.widgets.Shell} object. |
|
51 |
* @param title a {@link java.lang.String} object. |
|
52 |
* @param multi a boolean. |
|
53 |
* @param settings a {@link java.lang.String} object. |
|
54 |
* @param cdmObject a {@link eu.etaxonomy.cdm.model.agent.Team} object. |
|
55 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
43 | 56 |
*/ |
44 | 57 |
protected FilteredTeamSelectionDialog(Shell shell, ConversationHolder conversation, |
45 | 58 |
String title, boolean multi, String settings, |
... | ... | |
50 | 63 |
/* (non-Javadoc) |
51 | 64 |
* @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#initModel() |
52 | 65 |
*/ |
66 |
/** {@inheritDoc} */ |
|
53 | 67 |
@Override |
54 | 68 |
protected void initModel() { |
55 | 69 |
model = CdmStore.getAgentService().getTeamUuidAndTitleCache(); |
56 | 70 |
} |
57 | 71 |
|
72 |
/** {@inheritDoc} */ |
|
58 | 73 |
@Override |
59 | 74 |
protected AbstractNewEntityWizard getNewEntityWizard() { |
60 | 75 |
return new NewTeamWizard(); |
61 | 76 |
} |
62 | 77 |
|
78 |
/** {@inheritDoc} */ |
|
63 | 79 |
@Override |
64 | 80 |
protected String getNewWizardLinkText() { |
65 | 81 |
return "Click link to create a new <A>Team</A>."; |
66 | 82 |
} |
67 | 83 |
|
84 |
/** {@inheritDoc} */ |
|
68 | 85 |
@Override |
69 | 86 |
protected Team getPersistentObject(UUID uuid) { |
70 | 87 |
return (Team) CdmStore.getAgentService().load(uuid); |
Also available in: Unified diff
performed javacscript:fix and worked on documentation