Revision 9c419e9e
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditor.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.bulkeditor; |
12 | 12 |
|
13 |
import org.eclipse.core.commands.operations.IUndoContext; |
|
14 |
import org.eclipse.core.commands.operations.UndoContext; |
|
13 | 15 |
import org.eclipse.core.runtime.IProgressMonitor; |
14 | 16 |
import org.eclipse.jface.action.IMenuManager; |
15 | 17 |
import org.eclipse.jface.dialogs.MessageDialog; |
... | ... | |
71 | 73 |
|
72 | 74 |
private boolean isDirty; |
73 | 75 |
|
76 |
private IUndoContext undoContext; |
|
77 |
|
|
74 | 78 |
public BulkEditor() { |
75 | 79 |
super(CdmStore.createConversation()); |
80 |
undoContext = new UndoContext(); |
|
76 | 81 |
} |
77 | 82 |
|
78 | 83 |
/** {@inheritDoc} */ |
... | ... | |
283 | 288 |
} |
284 | 289 |
conversation.clear(); |
285 | 290 |
conversation.commit(true); |
286 |
|
|
291 |
|
|
287 | 292 |
getEditorInput().dispose(); |
288 | 293 |
getEditorInput().bind(); |
289 | 294 |
getEditorInput().performSearch(query); |
... | ... | |
327 | 332 |
public boolean canAttachMedia() { |
328 | 333 |
return getEditorInput() instanceof TaxonEditorInput?true:false; |
329 | 334 |
} |
335 |
|
|
336 |
public IUndoContext getUndoContext() { |
|
337 |
return undoContext; |
|
338 |
} |
|
330 | 339 |
} |
Also available in: Unified diff
ref #5801 Add IUndoContext to bulk editor