fix #5977: create a new teammember should allow only persons
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / dialog / selection / NomenclaturalAuthorSelectionDialog.java
index 255f8022724734be2741a2e058926a8fda703cfe..c513a785deece3374b82d2ced336d0613ba46762 100644 (file)
@@ -41,8 +41,8 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
      * @param agent
      */
     protected NomenclaturalAuthorSelectionDialog(Shell shell, ConversationHolder conversation, String title,
-            boolean multi, String settings, AgentBase agent) {
-        super(shell, conversation, title, multi, settings, agent);
+            boolean multi, String settings, AgentBase agent, boolean teamMemberSelection) {
+        super(shell, conversation, title, multi, settings, agent, teamMemberSelection);
         // TODO Auto-generated constructor stub
     }
 
@@ -80,9 +80,9 @@ public class NomenclaturalAuthorSelectionDialog extends AgentSelectionDialog {
      * @param entity a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object.
      * @return a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object.
      */
-    public static AgentBase select(Shell shell, ConversationHolder conversation, AgentBase entity) {
+    public static AgentBase select(Shell shell, ConversationHolder conversation, AgentBase entity, boolean teamMemberSelection) {
         NomenclaturalAuthorSelectionDialog dialog = new NomenclaturalAuthorSelectionDialog(shell, conversation,
-                "Choose Agent", false, NomenclaturalAuthorSelectionDialog.class.getCanonicalName(), entity);
+                "Choose Agent", false, NomenclaturalAuthorSelectionDialog.class.getCanonicalName(), entity, teamMemberSelection);
         return getSelectionFromDialog(dialog);
     }