package org.eclipse.tracecompass.tmf.ui.widgets.timegraph;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
int width = fTimeAlignedComposite.getSize().x;
if (width == 0) {
/* the weigths will be applied when the control is resized */
- fWeights = weights;
+ fWeights = Arrays.copyOf(weights, weights.length);
return;
}
setNameSpace(width * weights[0] / (weights[0] + weights[1]));
private static final int SNAP_WIDTH = 3;
private static final int ARROW_HOVER_MAX_DIST = 5;
- private static double ARROW_RATIO = Math.sqrt(3) / 2; // base to height ratio
+ private static final double ARROW_RATIO = Math.sqrt(3) / 2; // base to height ratio
private static final int NO_STATUS = -1;
private static final int STATUS_WITHOUT_CURSOR_TIME = -2;