Revision 0b8d8887
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/WorkingSetEditor.java | ||
---|---|---|
16 | 16 |
import org.eclipse.swt.widgets.Composite; |
17 | 17 |
import org.eclipse.swt.widgets.Display; |
18 | 18 |
|
19 |
import eu.etaxonomy.cdm.model.description.WorkingSet; |
|
19 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
20 | 21 |
|
21 | 22 |
/** |
... | ... | |
25 | 26 |
*/ |
26 | 27 |
public class WorkingSetEditor { |
27 | 28 |
|
29 |
private WorkingSetComposite composite; |
|
30 |
|
|
28 | 31 |
@PostConstruct |
29 | 32 |
public void create(Composite parent, IEclipseContext context){ |
30 | 33 |
CdmFormFactory cdmFormFactory = new CdmFormFactory(Display.getCurrent()); |
31 | 34 |
ContextInjectionFactory.inject(cdmFormFactory, context); |
32 |
WorkingSetComposite composite = new WorkingSetComposite(parent, SWT.NONE); |
|
35 |
composite = new WorkingSetComposite(parent, SWT.NONE); |
|
36 |
} |
|
37 |
|
|
38 |
public void init(WorkingSet workingSet) { |
|
39 |
composite.getTxt_label().setText(workingSet.getLabel()); |
|
33 | 40 |
} |
34 | 41 |
|
35 | 42 |
} |
Also available in: Unified diff
ref #7086 Open WS editor via selection dialog