Project

General

Profile

Revision 41a6a18d

ID41a6a18d71ebcef85c5c55931c7dd7589adcaa23
Parent de138c43
Child e1ac6e69

Added by Katja Luther almost 3 years ago

fix Multiple Representation Exception in BulkEditor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
117 117
	    }
118 118
	    table.setHeaderVisible(true);
119 119
	    table.setLinesVisible(true);
120

  
120 121
	    viewer.setCellEditors(editors);
121 122
	    viewer.setColumnProperties(titles);
122 123

  
......
210 211
	    Object object = viewer.getInput();
211 212
	    List<CdmBase> cdmBaseList = new ArrayList<>();
212 213
	    List<CdmBase> saveCandidates = getEditorInput().getSaveCandidates();
213
//	    if(saveCandidates != null && !saveCandidates.isEmpty()){
214
//	        for (CdmBase item: saveCandidates) {
215
//
216
//	            cdmBaseList.add(item);
217
//            }
218
//	    }
214
	    if(saveCandidates != null && !saveCandidates.isEmpty()){
215
	        for (CdmBase item: saveCandidates) {
216

  
217
	            cdmBaseList.add(item);
218
            }
219
	    }
220

  
219 221
	    if (!saveCandidates.isEmpty()){
220 222
	        CdmStore.getService(saveCandidates.get(0)).merge(saveCandidates, true);
221 223
	    }
......
241 243
                }
242 244
            }
243 245
            dirty.setDirty(false);
244
            getEditorInput().dispose();
245
            getEditorInput().bind();
246
//            getEditorInput().dispose();
247
//            getEditorInput().bind();
246 248
            getEditorInput().performSearch(query);
247 249

  
248 250
            viewer.setInput(getEditorInput().getModel());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)