Skip to content

Commit dbd7096

Browse files
committed
fixes
1 parent 85f381d commit dbd7096

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/main/java/org/kdb/inside/brains/view/chart/ChartingDialog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ private class SpanAction extends CheckboxAction {
267267
private SpanAction(String name, SnapType snapType) {
268268
super(name);
269269
this.snapType = snapType;
270-
getTemplatePresentation().setKeepPopupOnPerform(KeepPopupOnPerform.Never);
270+
// Available only since 2024.2
271+
// getTemplatePresentation().setKeepPopupOnPerform(KeepPopupOnPerform.Never);
271272
}
272273

273274
@Override
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
package org.kdb.inside.brains.view.chart.tools;
22

3-
import com.intellij.openapi.actionSystem.DataProvider;
3+
import org.jetbrains.annotations.NonNls;
4+
import org.jetbrains.annotations.NotNull;
5+
import org.jetbrains.annotations.Nullable;
46

57
import javax.swing.*;
68

7-
public interface DataChartTool extends ChartTool, DataProvider {
9+
public interface DataChartTool extends ChartTool { // DataProvider - override only, by some reason
810
JComponent getComponent();
11+
12+
@Nullable
13+
Object getData(@NotNull @NonNls String dataId);
914
}

0 commit comments

Comments
 (0)