Revision 1de7515f
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixPart.java | ||
---|---|---|
24 | 24 |
import org.eclipse.core.runtime.IProgressMonitor; |
25 | 25 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
26 | 26 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
27 |
import org.eclipse.e4.core.services.events.IEventBroker; |
|
27 | 28 |
import org.eclipse.e4.ui.di.Focus; |
28 | 29 |
import org.eclipse.e4.ui.di.Persist; |
29 | 30 |
import org.eclipse.e4.ui.model.application.ui.MDirtyable; |
... | ... | |
53 | 54 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
54 | 55 |
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin; |
55 | 56 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
57 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
|
56 | 58 |
import eu.etaxonomy.taxeditor.model.IDirtyMarkable; |
57 | 59 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
58 | 60 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
... | ... | |
110 | 112 |
@Inject |
111 | 113 |
private MPart thisPart; |
112 | 114 |
|
115 |
@Inject |
|
116 |
private IEventBroker eventBroker; |
|
117 |
|
|
113 | 118 |
private CharacterMatrix matrix; |
114 | 119 |
|
115 | 120 |
private StackLayout stackLayout; |
... | ... | |
205 | 210 |
result.includeResult(CdmStore.getService(IDescriptiveDataSetService.class).removeDescriptions(matrix.getDescriptionsToDelete().get(config), matrix.getDescriptiveDataSet().getUuid(), config)); |
206 | 211 |
} |
207 | 212 |
matrix.getDescriptionsToDelete().clear(); |
213 |
|
|
208 | 214 |
} |
209 | 215 |
List<MergeResult<DescriptionBase>> results = CdmStore.getService(IDescriptionService.class).mergeDescriptions(descriptions, matrix.getDescriptiveDataSet().getUuid(), true); |
210 | 216 |
conversation.commit(); |
... | ... | |
222 | 228 |
} |
223 | 229 |
} |
224 | 230 |
// matrix.loadDescriptions(getDescriptiveDataSet().getUuid(), false); |
225 |
|
|
231 |
eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, null); |
|
226 | 232 |
dirty.setDirty(false); |
227 | 233 |
} |
228 | 234 |
|
Also available in: Unified diff
ref #8785: smaller issues in character matrix - add and remove descriptions