提交 066c0151 编写于 作者: S serge-rider

Charts bundle build fix

上级 0e27176b
......@@ -20,6 +20,7 @@ package org.jkiss.dbeaver.ui.charts;
import org.eclipse.jface.resource.ColorRegistry;
import org.eclipse.swt.graphics.Color;
import org.jfree.chart.plot.DefaultDrawingSupplier;
import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.ui.UIUtils;
import java.awt.*;
......@@ -34,6 +35,8 @@ public class BaseChartDrawingSupplier extends DefaultDrawingSupplier {
public static final String COLOR_PREF_ID_PREFIX = "org.jkiss.dbeaver.ui.data.chart.color.";
private static final Log log = Log.getLog(BaseChartDrawingSupplier.class);
public BaseChartDrawingSupplier() {
super(getChartColorsDefinitions(),
DEFAULT_FILL_PAINT_SEQUENCE,
......@@ -55,6 +58,7 @@ public class BaseChartDrawingSupplier extends DefaultDrawingSupplier {
}
if (result.isEmpty()) {
// Something went wrong - no color constants
log.warn("Chart colors configuration not found");
Collections.addAll(result, BaseChartConstants.DBEAVER_DEFAULT_COLOR_SERIES);
}
return result.toArray(new Paint[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册