Project

General

Profile

« Previous | Next » 

Revision c11a2278

Added by Katja Luther over 5 years ago

fix delete of not persisted data in bulk editor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
126 126
        }
127 127
    }
128 128

  
129
    public void save(IProgressMonitor monitor, boolean resetMerge, boolean rememberSelection) {
130
        if (!input.getCdmEntitySession().isActive()){
131
            input.getCdmEntitySession().bind();
132
        }
133
        input.saveModel(resetMerge);
134

  
135
        IStructuredSelection selection = getSelection();
136

  
137
        dirty.setDirty(false);
138
        input.dispose();
139
        input.bind();
140
        conversation.commit(true);
141

  
142
        if (lastQuery != null && rememberSelection){
143
            bulkEditorComposite.performSearch(lastQuery, selection);
144
        }
145
    }
146

  
147

  
129 148
	@Focus
130 149
	public void setFocus() {
131 150
        //make sure to bind again if maybe in another view the conversation was unbound
......
189 208
        setDirty(true);
190 209
    }
191 210

  
211
    @Override
192 212
    public boolean isDirty() {
193 213
        return dirty.isDirty();
194 214
    }

Also available in: Unified diff