* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.ui.dialog.selection;
import java.util.UUID;
/**
* @author n.hoffmann
* @created Dec 15, 2010
- * @version 1.0
*/
public class InstitutionSelectionDialog extends
AbstractFilteredCdmResourceSelectionDialog<Institution> {
- public static Institution select(Shell shell,// ConversationHolder conversation,
+ public static Institution select(Shell shell,
Institution institution){
InstitutionSelectionDialog dialog = new InstitutionSelectionDialog(shell, //conversation,
"Choose Institution", false, TeamSelectionDialog.class.getCanonicalName(), institution);
return getSelectionFromDialog(dialog);
}
- /**
- * @param shell
- * @param conversation
- * @param title
- * @param multi
- * @param settings
- * @param cdmObject
- */
- protected InstitutionSelectionDialog(Shell shell,//ConversationHolder conversation,
+ protected InstitutionSelectionDialog(Shell shell,
String title, boolean multi,
String settings, Institution cdmObject) {
- super(shell, //conversation,
- title, multi, settings, cdmObject);
+ super(shell, title, multi, settings, cdmObject);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getPersistentObject(java.util.UUID)
- */
@Override
protected Institution getPersistentObject(UUID uuid) {
- AgentBase agentBase = CdmStore.getService(IAgentService.class).load(uuid);
+ AgentBase<?> agentBase = CdmStore.getService(IAgentService.class).load(uuid);
if(agentBase instanceof Institution){
return (Institution) agentBase;
return null;
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#search
- */
@Override
protected void callService(String pattern) {
-
- model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(Institution.class, limitOfInitialElements,pattern);
-
-
+ model = CdmStore.getService(IAgentService.class)
+ .getUuidAndTitleCache(Institution.class, limitOfInitialElements, pattern);
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getNewWizardLinkText()
- */
@Override
protected String[] getNewWizardText() {
return new String[]{"New Institution"};
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getNewEntityWizard(java.lang.String)
- */
@Override
- protected AbstractNewEntityWizard getNewEntityWizard(String parameter) {
+ protected AbstractNewEntityWizard<Institution> getNewEntityWizard(String parameter) {
return new NewInstitutionWizard();
}
-
-}
+}
\ No newline at end of file