Project

General

Profile

Revision 3ecd8903

ID3ecd8903701ff7f5ffdfe2d7b8575a03c0095361
Parent 5f3b85bc
Child 8c8c0db0, 2c28be6a

Added by Patrick Plitzner 4 months ago

ref #7923 Disabel details for structure and property viewers

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
142 142
        composite.setLayout(gl_composite);
143 143

  
144 144
        structuresTreeEditorComposite = addFeatureTreeEditor(composite);
145
        initFeatureTreeComposite(structuresTreeEditorComposite, new FeatureNodeDragListener(structuresTreeEditorComposite.getViewer()), null, null);
145
        initFeatureTreeComposite(structuresTreeEditorComposite,
146
                new FeatureNodeDragListener(structuresTreeEditorComposite.getViewer()), null, null, null, null);
146 147
        structuresTreeEditorComposite.getLabel_title().setText(Messages.CharacterEditor_STRUCTURES);
147 148

  
148 149
        Composite composite_1 = new Composite(sashForm, SWT.NONE);
......
154 155

  
155 156
        propertiesTreeEditorComposite = addFeatureTreeEditor(composite_1);
156 157
        initFeatureTreeComposite(propertiesTreeEditorComposite,
157
                new CharacterDragListener(structuresTreeEditorComposite.getViewer(),
158
                        propertiesTreeEditorComposite.getViewer()),
158
                new CharacterDragListener(structuresTreeEditorComposite.getViewer(), propertiesTreeEditorComposite.getViewer()),
159 159
                null,
160
                new Transfer[] {CharacterTransfer.getInstance()}
160
                new Transfer[] {CharacterTransfer.getInstance()},
161
                null,
162
                null
161 163
        );
162 164
        propertiesTreeEditorComposite.getLabel_title().setText(Messages.CharacterEditor_PROPERTIES);
163 165

  
......
175 177
        characterTreeEditorComposite = addFeatureTreeEditor(composite_3);
176 178
        initFeatureTreeComposite(characterTreeEditorComposite, new FeatureNodeDragListener(characterTreeEditorComposite.getViewer()),
177 179
                new CharacterDropAdapter(this, characterTreeEditorComposite.getViewer(), sync),
178
                new Transfer[] {FeatureNodeTransfer.getInstance(), CharacterTransfer.getInstance()});
180
                new Transfer[] {FeatureNodeTransfer.getInstance(), CharacterTransfer.getInstance()},
181
                this,
182
                this);
179 183
        characterTreeEditorComposite.getLabel_title().setText(Messages.CharacterEditor_CHARACTERS);
180 184

  
181 185
        //add context menu to character viewer//create context menu
......
194 198
    private void initFeatureTreeComposite(
195 199
            FeatureTreeEditorComposite featureTreeEditorComposite,
196 200
            FeatureNodeDragListener featureNodeDragListener,
197
            FeatureTreeDropAdapter featureNodeDropAdapter
198
            , Transfer[] transfers) {
201
            FeatureTreeDropAdapter featureNodeDropAdapter,
202
            Transfer[] transfers,
203
            ISelectionChangedListener viewerSelectionChangedListener,
204
            ModifyListener modifyListener) {
199 205
        featureTreeEditorComposite.init(
200 206
                featureNodeDragListener,
201 207
                featureNodeDropAdapter,
202 208
                transfers,
203
                this,
209
                viewerSelectionChangedListener,
204 210
                new FeatureTreeChooserListener(featureTreeEditorComposite),
205
                this);
211
                modifyListener);
206 212
    }
207 213

  
208 214
    @Focus

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)