Skip to content

Commit b45654f

Browse files
committed
#122 fixed
1 parent 7ddc7be commit b45654f

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# KdbInsideBrains Changelog
22

3+
## [6.1.0]
4+
5+
### Changed
6+
7+
- Charting View tools redesigned:
8+
- Crosshair tool supports multiple range axes as well as candlestick
9+
- Values tools supports candlestick
10+
- Enabled tools stored in new optimized format
11+
12+
### Fixed
13+
14+
- #122: QSpec configurable can't be created
15+
316
## [6.0.1]
417

518
### Fixed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pluginJavaVersion=17
1414
#pluginVerifierVersions=2022.3, 2022.3.3, 2023.3.7, 2024.1.5, 2024.3
1515
pluginVerifierVersions=2022.3, 2023.3, 2024.3.5, 2025.1
1616
platformType=IC
17-
#platformVersion=251.14649-EAP-CANDIDATE-SNAPSHOT
17+
#platformVersion=251.1
1818
#platformPlugins=java, PsiViewer:251.175
1919
platformVersion=2024.3.5
2020
platformPlugins=java, PsiViewer:243.7768

src/main/java/org/kdb/inside/brains/lang/qspec/QSpecConfigurable.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
import com.intellij.openapi.ui.TextFieldWithBrowseButton;
99
import com.intellij.openapi.util.text.StringUtil;
1010
import com.intellij.openapi.vfs.VfsUtil;
11-
import com.intellij.openapi.wm.WindowManager;
1211
import org.apache.commons.io.FilenameUtils;
1312
import org.jetbrains.annotations.Nullable;
1413
import org.kdb.inside.brains.UIUtils;
1514
import org.kdb.inside.brains.settings.KdbConfigurable;
1615

1716
import javax.swing.*;
18-
import java.awt.*;
1917

2018
import static com.intellij.openapi.util.text.StringUtil.notNullize;
2119

@@ -32,7 +30,7 @@ public class QSpecConfigurable extends KdbConfigurable {
3230

3331
protected QSpecConfigurable() {
3432
super(SETTINGS_PAGE_ID, "QSpec Framework");
35-
init(guessActiveProject());
33+
init(ProjectManager.getInstance().getDefaultProject());
3634
}
3735

3836
public JComponent init(@Nullable Project project) {
@@ -91,17 +89,6 @@ public void reset() {
9189
customScriptPanel.setText(libraryService.getCustomScript());
9290
}
9391

94-
private Project guessActiveProject() {
95-
Project[] projects = ProjectManager.getInstance().getOpenProjects();
96-
for (Project project : projects) {
97-
Window window = WindowManager.getInstance().suggestParentWindow(project);
98-
if (window != null && window.isActive()) {
99-
return project;
100-
}
101-
}
102-
return null;
103-
}
104-
10592
public static void showConfigurable(Project project) {
10693
// Safe model change here
10794
ShowSettingsUtil.getInstance().showSettingsDialog(project, QSpecConfigurable.class);

src/main/java/org/kdb/inside/brains/view/chart/tools/ChartTool.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ public interface ChartTool extends Overlay {
3232

3333
void chartChanged(ChartView view, SnapType snapType);
3434

35-
default void chartStyleChanged(JFreeChart chart, RendererConfig config, int datasetIndex, int seriesIndex) {
36-
}
3735

3836
default void chartMouseMoved(ChartMouseEvent event, Rectangle2D dataArea) {
3937
}
4038

4139
default void chartMouseClicked(ChartMouseEvent event, Rectangle2D dataArea) {
4240
}
4341

42+
default void chartStyleChanged(JFreeChart chart, RendererConfig config, int datasetIndex, int seriesIndex) {
43+
}
44+
4445
@NotNull
4546
default ActionGroup getToolActions() {
4647
return ActionGroup.EMPTY_GROUP;

version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pluginVersion=6.0.1
1+
pluginVersion=6.1.0

0 commit comments

Comments
 (0)