Project

General

Profile

« Previous | Next » 

Revision 8939a1ff

Added by Katja Luther almost 3 years ago

ref #9587: clicking on an already open taxon only set the focus

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java
231 231
        	if(part.getObject() instanceof TaxonNameEditorE4
232 232
                    && ((TaxonNameEditorE4) part.getObject()).getTaxon()!=null
233 233
                    && ((TaxonNameEditorE4) part.getObject()).getTaxon().getUuid().equals(input.getTaxon().getUuid())){
234
        	    if (part.isDirty()){
235
        	        boolean doSave = forceUserSaveE4Editor(((TaxonNameEditorE4) part.getObject()), getShell());
236
        	        if (doSave){
237
        	            input = TaxonEditorInputE4.NewInstance(input.getTaxonNode().getUuid());
238
        	        }else {
239
        	            return;
240
        	        }
241
        	    }
242
                partService.hidePart(part);
243
                break;
234
        	    partService.activate(part, true);
235
        	    return;
236

  
244 237
            }
245 238
        }
246 239
        MPart part = showPart(NAME_EDITOR_ID, modelService, partService, application);

Also available in: Unified diff