153 |
153 |
@Inject
|
154 |
154 |
private EMenuService menuService;
|
155 |
155 |
|
156 |
|
private DescriptiveDataSet descriptiveDataSet;
|
157 |
|
|
158 |
156 |
private NatTable natTable;
|
159 |
157 |
|
160 |
158 |
private Map<Integer, Feature> indexToFeatureMap = new HashMap<>();
|
... | ... | |
260 |
258 |
GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
|
261 |
259 |
|
262 |
260 |
//update label to current data set
|
263 |
|
toolbar.getWsLabel().setText(descriptiveDataSet.getLabel());
|
|
261 |
toolbar.getWsLabel().setText(getDescriptiveDataSet().getLabel());
|
264 |
262 |
toolbar.getWsLabel().setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
|
265 |
263 |
toolbar.getWsLabel().getParent().layout();
|
266 |
264 |
|
... | ... | |
291 |
289 |
return features;
|
292 |
290 |
}
|
293 |
291 |
|
294 |
|
public void initDescriptiveDataSet(DescriptiveDataSet descriptiveDataSet){
|
295 |
|
this.descriptiveDataSet = descriptiveDataSet;
|
|
292 |
public void initDescriptiveDataSet(){
|
296 |
293 |
//get features/columns stored in descriptive data set
|
297 |
|
TermTree<Feature> tree = descriptiveDataSet.getDescriptiveSystem();
|
|
294 |
TermTree<Feature> tree = getDescriptiveDataSet().getDescriptiveSystem();
|
298 |
295 |
features = initFeatureList(tree.getRoot());
|
299 |
296 |
|
300 |
297 |
//init state data for categorical features
|
... | ... | |
319 |
316 |
private void createLayers(boolean treeView) {
|
320 |
317 |
SortedList<Object> sortedList = new SortedList<>(descriptions, new MatrixRowComparator());
|
321 |
318 |
// wrap the SortedList with the TreeList
|
322 |
|
TreeList<Object> treeList = new TreeList(sortedList, new DescriptionTreeFormat(descriptiveDataSet), TreeList.NODES_START_EXPANDED);
|
|
319 |
TreeList<Object> treeList = new TreeList(sortedList, new DescriptionTreeFormat(getDescriptiveDataSet()), TreeList.NODES_START_EXPANDED);
|
323 |
320 |
/**
|
324 |
321 |
* data provider
|
325 |
322 |
*/
|
... | ... | |
393 |
390 |
|
394 |
391 |
// assemble the column groups
|
395 |
392 |
LinkedList<ColumnGroupWrapper> columnGroups = new LinkedList<>();
|
396 |
|
List<TermNode<Feature>> rootChildren = descriptiveDataSet.getDescriptiveSystem().getRootChildren();
|
|
393 |
List<TermNode<Feature>> rootChildren = getDescriptiveDataSet().getDescriptiveSystem().getRootChildren();
|
397 |
394 |
buildHeader(rootChildren, columnGroups);
|
398 |
395 |
|
399 |
396 |
bodyLayer = new MatrixBodyLayerStack(eventLayer, columnGroups);
|
... | ... | |
755 |
752 |
}
|
756 |
753 |
|
757 |
754 |
public DescriptiveDataSet getDescriptiveDataSet() {
|
758 |
|
return descriptiveDataSet;
|
|
755 |
return part.getDescriptiveDataSet();
|
|
756 |
}
|
|
757 |
|
|
758 |
public void setDescriptiveDataSet(DescriptiveDataSet dataSet) {
|
|
759 |
part.setDescriptiveDataSet(dataSet);
|
759 |
760 |
}
|
760 |
761 |
|
761 |
762 |
public Collection<SpecimenNodeWrapper> getSpecimenCache() {
|
ref #8539 Update local data set after adding specimen