Project

General

Profile

« Previous | Next » 

Revision 5129bf4e

Added by Patrick Plitzner over 5 years ago

ref #7887 Prompt user if editor is dirty

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/handler/CreateTermVocabularyHandlerE4.java
35 35
    public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart activePart,
36 36
            MMenuItem menuItem,
37 37
            UISynchronize sync) {
38

  
39 38
        DefinedTermEditorE4 termEditor = (DefinedTermEditorE4) activePart.getObject();
40

  
39
        if(!termEditor.checkDirty()){
40
            return;
41
        }
41 42
        String label = menuItem.getLocalizedLabel();
42 43
        IUndoContext undoContext = StoreUtil.getUndoContext();
43 44

  

Also available in: Unified diff