Project

General

Profile

« Previous | Next » 

Revision f5979052

Added by Katja Luther over 6 years ago

fix multiple representation by removing conversation of selection dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ExtReferenceSelectionDialog.java
18 18
import org.eclipse.swt.widgets.Text;
19 19

  
20 20
import eu.etaxonomy.cdm.api.application.ICdmRepository;
21
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
22 21
import eu.etaxonomy.cdm.api.service.IReferenceService;
23 22
import eu.etaxonomy.cdm.model.agent.Person;
24 23
import eu.etaxonomy.cdm.model.agent.Team;
......
58 57
         * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
59 58
         * @return a {@link eu.etaxonomy.cdm.model.reference.ReferenceBase} object.
60 59
         */
61
        public static Reference select(Shell shell, ConversationHolder conversation, Reference reference, boolean isInReference) {
62
            ExtReferenceSelectionDialog dialog = new ExtReferenceSelectionDialog(shell, conversation,
60
        public static Reference select(Shell shell, //ConversationHolder conversation,
61
                Reference reference, boolean isInReference) {
62
            ExtReferenceSelectionDialog dialog = new ExtReferenceSelectionDialog(shell, //conversation,
63 63
                    "Choose a reference", false, reference, isInReference);
64 64
            return getSelectionFromDialog(dialog);
65 65
        }
......
72 72
         * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
73 73
         * @return a {@link eu.etaxonomy.cdm.model.reference.ReferenceBase} object.
74 74
         */
75
        public static Reference select(Shell shell, ConversationHolder conversation, Reference reference) {
76
            ExtReferenceSelectionDialog dialog = new ExtReferenceSelectionDialog(shell, conversation,
75
        public static Reference select(Shell shell, //ConversationHolder conversation,
76
                Reference reference) {
77
            ExtReferenceSelectionDialog dialog = new ExtReferenceSelectionDialog(shell, //conversation,
77 78
                    "Choose a reference", false, reference);
78 79
            return getSelectionFromDialog(dialog);
79 80
        }
......
92 93
         * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
93 94
         * @param multi a boolean.
94 95
         */
95
        protected ExtReferenceSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, Reference reference) {
96
            super(shell, conversation, title, multi, ExtReferenceSelectionDialog.class.getCanonicalName(), null);
96
        protected ExtReferenceSelectionDialog(Shell shell, //ConversationHolder conversation,
97
                String title, boolean multi, Reference reference) {
98
            super(shell, //conversation,
99
                    title, multi, ExtReferenceSelectionDialog.class.getCanonicalName(), null);
97 100
            this.currentReference = reference;
98 101

  
99 102
//            controller = CdmStore.getCurrentApplicationConfiguration();
......
117 120
         * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
118 121
         * @param multi a boolean.
119 122
         */
120
        protected ExtReferenceSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, Reference reference, boolean isInReference) {
121
            super(shell, conversation, title, multi, ExtReferenceSelectionDialog.class.getCanonicalName(), null);
123
        protected ExtReferenceSelectionDialog(Shell shell, //ConversationHolder conversation,
124
                String title, boolean multi, Reference reference, boolean isInReference) {
125
            super(shell, //conversation,
126
                    title, multi, ExtReferenceSelectionDialog.class.getCanonicalName(), null);
122 127
            this.isInReference = isInReference;
123 128
            this.currentReference = reference;
124 129

  

Also available in: Unified diff