Project

General

Profile

« Previous | Next » 

Revision c7bc3975

Added by Katja Luther over 1 year ago

rename TaxonNameEditor and other classes and remove E4 - continue

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditor.java
64 64
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;
65 65
import eu.etaxonomy.taxeditor.bulkeditor.input.GroupEditorInput;
66 66
import eu.etaxonomy.taxeditor.bulkeditor.input.MediaEditorInput;
67
import eu.etaxonomy.taxeditor.bulkeditor.input.TaxonEditorInput;
67
import eu.etaxonomy.taxeditor.bulkeditor.input.TaxonBulkEditorInput;
68 68
import eu.etaxonomy.taxeditor.editor.IBulkEditor;
69 69
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
70 70
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
......
274 274
            if (element instanceof DescriptionBase){
275 275
                if (element instanceof TaxonNameDescription){
276 276
                    TaxonName changedName = ((TaxonNameDescription)element).getTaxonName();
277
                    if (getEditorInput() instanceof TaxonEditorInput){
277
                    if (getEditorInput() instanceof TaxonBulkEditorInput){
278 278
                        IStructuredSelection sel = getSelection();
279 279
                        Object firstElement = sel.getFirstElement();
280 280
                        if (firstElement instanceof TaxonBase){
......
294 294
                if (((DescriptionElementBase)element).getInDescription() instanceof TaxonNameDescription){
295 295
                    TaxonName changedName = ((TaxonNameDescription)((DescriptionElementBase)element).getInDescription()).getTaxonName();
296 296
                    //check whether the bulk editor is taxon or name bulk editor
297
                    if (getEditorInput() instanceof TaxonEditorInput){
297
                    if (getEditorInput() instanceof TaxonBulkEditorInput){
298 298
                        IStructuredSelection sel = getSelection();
299 299
                        Object firstElement = sel.getFirstElement();
300 300
                        if (firstElement instanceof TaxonBase){
......
333 333
                 ((GroupEditorInput)input).getSaveUserCandidates().addAll(oldGroup.getMembers());
334 334
                 getEditorInput().addSaveCandidate((Group)element);
335 335
                 input.replaceInModel((CdmBase) element);
336
            }else if(element instanceof TaxonName && input instanceof TaxonEditorInput){
336
            }else if(element instanceof TaxonName && input instanceof TaxonBulkEditorInput){
337 337
                IStructuredSelection sel = this.getSelection();
338 338
                TaxonBase taxonBase = null;
339 339
                if (sel.getFirstElement() instanceof TaxonBase){
......
420 420
    @Inject
421 421
    @Optional
422 422
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR) List<CdmBase> cdmBases) {
423
        if (getEditorInput() instanceof TaxonEditorInput){
423
        if (getEditorInput() instanceof TaxonBulkEditorInput){
424 424
            for (CdmBase cdmBase: cdmBases){
425 425
                if (getEditorInput().getModel().contains(cdmBase)){
426 426
                    input.performSearch(lastQuery, getSelection());

Also available in: Unified diff