Revision deffae8c
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java | ||
---|---|---|
84 | 84 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
85 | 85 |
|
86 | 86 |
/** |
87 |
*
|
|
87 |
* |
|
88 | 88 |
* @author k.luther |
89 | 89 |
* |
90 | 90 |
*/ |
... | ... | |
162 | 162 |
private String partNameCache; |
163 | 163 |
|
164 | 164 |
//FIXME E4 migrate/delete ater full migration |
165 |
|
|
165 |
|
|
166 | 166 |
private IWorkbenchSiteProgressService service; |
167 | 167 |
|
168 | 168 |
private ITaxonNodeService taxonNodeService; |
... | ... | |
179 | 179 |
|
180 | 180 |
@Inject |
181 | 181 |
private MPart thisPart; |
182 |
|
|
182 |
|
|
183 | 183 |
@Inject |
184 | 184 |
private MDirtyable dirty; |
185 |
|
|
185 |
|
|
186 | 186 |
@Inject |
187 | 187 |
private ESelectionService selService; |
188 | 188 |
|
... | ... | |
229 | 229 |
} |
230 | 230 |
taxonNodeService = CdmStore.getService(ITaxonNodeService.class); |
231 | 231 |
viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION); |
232 |
|
|
232 |
|
|
233 | 233 |
// viewer.addSelectionChangedListener(new ISelectionChangedListener() { |
234 | 234 |
// @Override |
235 | 235 |
// public void selectionChanged(SelectionChangedEvent event) { |
... | ... | |
238 | 238 |
// // do something with it |
239 | 239 |
// } |
240 | 240 |
// |
241 |
// |
|
242 |
// }); |
|
243 |
|
|
241 |
// |
|
242 |
// }); |
|
243 |
|
|
244 |
|
|
244 | 245 |
|
245 |
|
|
246 | 246 |
labelProvider = new ChecklistLabelProvider(this.viewer); |
247 | 247 |
|
248 | 248 |
terms = labelProvider.getNamedAreas(); |
... | ... | |
485 | 485 |
viewer.setInput(checklistEditorInput.getTaxa()); |
486 | 486 |
// Job checkListJob = new ChecklistJob(LOADING_TAXA, selectedTaxonNodes); |
487 | 487 |
// checkListJob.schedule(Job.LONG); |
488 |
|
|
488 |
|
|
489 | 489 |
} |
490 | 490 |
if (taxonNode != null) { |
491 | 491 |
selectedTaxonNodes = taxonNodeService.loadChildNodesOfTaxonNode(taxonNode, NODE_INIT_STRATEGY, true, null); |
... | ... | |
516 | 516 |
/** {@inheritDoc} */ |
517 | 517 |
@Focus |
518 | 518 |
public void setFocus() { |
519 |
if(viewer!=null && viewer.getControl()!=null && !viewer.getControl().isDisposed()) |
|
520 |
viewer.getControl().setFocus(); |
|
519 |
if(viewer!=null && viewer.getControl()!=null && !viewer.getControl().isDisposed()) { |
|
520 |
viewer.getControl().setFocus(); |
|
521 |
} |
|
521 | 522 |
} |
522 | 523 |
|
523 | 524 |
//FIXME E4 migrate |
... | ... | |
677 | 678 |
//propagate selection |
678 | 679 |
selectionChangedListener = (event -> selService.setSelection(event)); |
679 | 680 |
viewer.addSelectionChangedListener(selectionChangedListener); |
680 |
|
|
681 |
|
|
681 | 682 |
|
682 | 683 |
loadDataInput(); |
683 | 684 |
} |
Also available in: Unified diff
ref #6925 Fix part initialisation for open handlers