Skip to content
Permalink
Browse files
6939: Time range indicator isn't updated when setting the time range
Reviewed-by: hirt
  • Loading branch information
aptmac committed Apr 13, 2021
1 parent 84fc937 commit 033cc933c6dd191628d551af00831edb91eb7602
@@ -528,7 +528,7 @@ private void useFlavor(IItemStreamFlavor flavor) {
painter.current = range.orElse(null);
canvas.setVisible(painter.current != null);
canvas.setToolTipText(range.map(FlavorSelector::formatRange).orElse(null));
container.layout();
container.redraw();

// FIXME: Always use concurrent if (all?) items can't be displayed on page?
IItemCollection itemsToUse = null;
@@ -206,14 +206,13 @@ private void onFlavorSelected(IItemCollection items, IRange<IQuantity> timeRange
this.timeRange = timeRange;
table.show(getItems());

if (selectionItems != null) {
Object[] tableInput = ((Object[]) table.getManager().getViewer().getInput());
if (tableInput != null) {
table.getManager().getViewer().setSelection(new StructuredSelection(tableInput));
} else {
table.getManager().getViewer().setSelection(null);
}
Object[] tableInput = ((Object[]) table.getManager().getViewer().getInput());
if (selectionItems != null && tableInput != null) {
table.getManager().getViewer().setSelection(new StructuredSelection(tableInput));
} else {
table.getManager().getViewer().setSelection(null);
}
chart.setVisibleRange(timeRange.getStart(), timeRange.getEnd());
}

protected void buildChart() {
@@ -322,14 +322,13 @@ private void onFlavorSelected(IItemCollection items, IRange<IQuantity> timeRange
this.timeRange = timeRange;
table.show(getItems());

if (selectionItems != null) {
Object[] tableInput = (Object[]) table.getManager().getViewer().getInput();
if (tableInput != null) {
table.getManager().getViewer().setSelection(new StructuredSelection(tableInput));
} else {
table.getManager().getViewer().setSelection(null);
}
Object[] tableInput = ((Object[]) table.getManager().getViewer().getInput());
if (selectionItems != null && tableInput != null) {
table.getManager().getViewer().setSelection(new StructuredSelection(tableInput));
} else {
table.getManager().getViewer().setSelection(null);
}
chart.setVisibleRange(timeRange.getStart(), timeRange.getEnd());
}

protected void buildChart(boolean resetLaneHeightControls) {

0 comments on commit 033cc93

Please sign in to comment.