Revision 201f1053
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/handler/CreateWorkingSetHandler.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
import eu.etaxonomy.cdm.api.service.IWorkingSetService; |
11 | 11 |
import eu.etaxonomy.cdm.model.description.WorkingSet; |
12 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
|
12 | 13 |
import eu.etaxonomy.taxeditor.editor.workingSet.WorkingSetNavigator; |
13 | 14 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
14 | 15 |
|
... | ... | |
18 | 19 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
19 | 20 |
WorkingSetNavigator navigator = (WorkingSetNavigator) activePart.getObject(); |
20 | 21 |
WorkingSet workingSet = WorkingSet.NewInstance(); |
22 |
workingSet.setLabel(Messages.CreateWorkingSetHandler_NEW_WORKING_SET); |
|
21 | 23 |
CdmStore.getService(IWorkingSetService.class).merge(workingSet, true); |
22 | 24 |
navigator.getConversationHolder().commit(); |
23 | 25 |
navigator.addWorkingSet(workingSet); |
Also available in: Unified diff
ref #7086 Add initial label to created working sets