Skip to content

Commit 36dd361

Browse files
committed
Release 0.2.4
1 parent 8aca388 commit 36dd361

38 files changed

Lines changed: 419 additions & 174 deletions

File tree

apps/apps.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Shared apps build
22

3-
version = '0.2.4-SNAPSHOT'
3+
version = '0.2.4'
44
def repositoryName = "bined"
55
def libraryUrl = 'https://bined.exbin.org/editor'
66

apps/bined-editor/build.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ if (!hasProperty('mainClass')) {
2222

2323
def configureExec(task) {
2424
task.mainClass = mainClass
25-
// task.classpath += files(['/home/hajdam/Software/Projekty/exbin/bined/apps/bined-editor/build/classes/java/main',
26-
// '/home/hajdam/Software/Projekty/exbin/bined/apps/bined-editor/build/resources/main',
27-
// '/home/hajdam/Software/Projekty/exbin/bined/modules/exbin-framework-bined-launcher/build/libs/exbin-framework-bined-launcher-0.3.0-SNAPSHOT.jar',
28-
// '/home/hajdam/.gradle/caches/modules-2/files-2.1/org.exbin.framework/exbin-framework/0.3.0-SNAPSHOT/7ff52836111ce7c5c1d777a1299124a636c4728d/exbin-framework-0.3.0-SNAPSHOT.jar',
29-
// '/home/hajdam/.gradle/caches/modules-2/files-2.1/org.exbin.framework/exbin-framework-basic/0.3.0-SNAPSHOT/8bfa5016c63d2e98a380c34218bf8048622561da/exbin-framework-basic-0.3.0-SNAPSHOT.jar',
30-
// 'lib/exbin-framework-language-0.3.0-SNAPSHOT.jar',
31-
// 'lib/exbin-framework-language-api-0.3.0-SNAPSHOT.jar'
32-
// ])
33-
// task.classpath += files(['/home/hajdam/Software/Projekty/exbin/bined/apps/bined-editor/build/classes/java/main', '/home/hajdam/Software/Projekty/exbin/bined/apps/bined-editor/build/resources/main', 'lib/commons-cli-1.2.jar', 'lib/exbin-framework-0.3.0-SNAPSHOT.jar', 'lib/exbin-framework-basic-0.3.0-SNAPSHOT.jar', 'lib/exbin-framework-language-0.3.0-SNAPSHOT.jar', 'lib/exbin-framework-language-api-0.3.0-SNAPSHOT.jar'])
25+
// task.classpath += files(['build/classes/java/main'])
26+
// task.classpath += files([''lib/commons-cli-1.2.jar', ...])
3427
task.classpath = sourceSets.main.runtimeClasspath
3528
if (hasProperty('appArgs')) {
3629
task.args appArgs
@@ -126,6 +119,7 @@ def manifestClassPath() {
126119
launch4j {
127120
outfile = "Bined.exe"
128121
mainClassName = project.mainClass
122+
classpath = ['lib/commons-cli-1.2.jar', 'lib/flatlaf-desktop-3.2.jar', 'lib/exbin-framework-0.3.0-SNAPSHOT.jar', 'lib/exbin-framework-basic-0.3.0-SNAPSHOT.jar']
129123
// jar = "../../build/libs/" + project.name + "-${version}.jar"
130124

131125
productName = "BinEd"
@@ -140,7 +134,7 @@ jar {
140134
manifest {
141135
attributes(
142136
'Main-Class': mainClass,
143-
'Class-Path': 'lib/commons-cli-1.2.jar lib/exbin-framework-0.3.0-SNAPSHOT.jar lib/exbin-framework-basic-0.3.0-SNAPSHOT.jar'
137+
'Class-Path': 'lib/commons-cli-1.2.jar lib/flatlaf-desktop-3.2.jar lib/exbin-framework-0.3.0-SNAPSHOT.jar lib/exbin-framework-basic-0.3.0-SNAPSHOT.jar'
144138
// 'Class-Path': manifestClassPath()
145139
)
146140
}
41.3 KB
Loading
17 KB
Loading

apps/bined-editor/help/manual.html

Lines changed: 55 additions & 40 deletions
Large diffs are not rendered by default.

build.gradle

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
id "nebula.ospackage" version "8.6.3"
1414
}
1515

16-
version = '0.2.4-SNAPSHOT'
16+
version = '0.2.4'
1717

1818
task cleanDeps {
1919
if (gradle.startParameter.taskNames.contains("clean") && !project.gradle.startParameter.projectProperties.containsKey("moduleDep")) {
@@ -136,23 +136,25 @@ ospackage {
136136
}
137137
}
138138
}
139-
// Uncoment for deployment, breaks for Java 8+
140-
/*
141-
buildRpm {
142-
from ('src/ospackage/bined.png') {
143-
// Doesn't propagate correctly from ospackage task, so repeat it here
144-
addParentDirs = false
145-
into '/usr/share/pixmaps'
139+
140+
// Breaks for Java 8+
141+
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
142+
buildRpm {
143+
from ('src/ospackage/bined.png') {
144+
// Doesn't propagate correctly from ospackage task, so repeat it here
145+
addParentDirs = false
146+
into '/usr/share/pixmaps'
147+
}
148+
149+
requires('jre', '1.8.0', GREATER | EQUAL)
146150
}
147151

148-
requires('jre', '1.8.0', GREATER | EQUAL)
152+
buildDeb {
153+
arch = 'all'
154+
requires('default-jre', '1.8.0', GREATER | EQUAL)
155+
}
149156
}
150157

151-
buildDeb {
152-
arch = 'all'
153-
requires('default-jre', '1.8.0', GREATER | EQUAL)
154-
}
155-
*/
156158
task("copyDependencies", type: Copy) {
157159
from(project(':apps:bined-editor').configurations.runtimeClasspath).into("$buildDir/jars")
158160
}

changes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.2.4
1+
0.2.4 (2025-01-22)
22
- Added addon manager
33
- Added keymap overview
44
- Added Base 64 conversion

modules/bined-modules.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Shared modules build
22

3-
version = '0.2.4-SNAPSHOT'
3+
version = '0.2.4'
44
def repositoryName = "bined"
55
def githubProfile = 'exbin'
66
def libraryUrl = 'https://bined.exbin.org/editor'

modules/exbin-framework-bined-inspector/src/main/java/org/exbin/framework/bined/inspector/BinEdComponentInspector.java

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@
1818
import java.awt.BorderLayout;
1919
import java.awt.Font;
2020
import java.awt.font.TextAttribute;
21+
import java.lang.reflect.InvocationTargetException;
2122
import java.util.Map;
23+
import java.util.logging.Level;
24+
import java.util.logging.Logger;
2225
import javax.annotation.Nonnull;
2326
import javax.annotation.ParametersAreNonnullByDefault;
2427
import javax.swing.JScrollPane;
28+
import javax.swing.SwingUtilities;
2529
import org.exbin.bined.swing.section.SectCodeArea;
30+
import org.exbin.framework.App;
2631
import org.exbin.framework.bined.gui.BinEdComponentPanel;
2732
import org.exbin.framework.bined.inspector.gui.BasicValuesPanel;
2833
import org.exbin.framework.bined.inspector.preferences.DataInspectorPreferences;
@@ -46,8 +51,23 @@ public class BinEdComponentInspector implements BinEdComponentPanel.BinEdCompone
4651
@Override
4752
public void onCreate(BinEdComponentPanel componentPanel) {
4853
this.componentPanel = componentPanel;
49-
SectCodeArea codeArea = componentPanel.getCodeArea();
5054

55+
if (SwingUtilities.isEventDispatchThread()) {
56+
onCreateInt();
57+
} else {
58+
try {
59+
SwingUtilities.invokeAndWait(() -> {
60+
onCreateInt();
61+
});
62+
} catch (InterruptedException | InvocationTargetException ex) {
63+
Logger.getLogger(BinEdComponentInspector.class.getName()).log(Level.SEVERE, null, ex);
64+
}
65+
}
66+
setShowParsingPanel(true);
67+
}
68+
69+
private void onCreateInt() {
70+
SectCodeArea codeArea = componentPanel.getCodeArea();
5171
valuesPanel = new BasicValuesPanel();
5272
valuesPanel.setCodeArea(codeArea, null);
5373
if (basicValuesColorModifier != null) {
@@ -56,7 +76,6 @@ public void onCreate(BinEdComponentPanel componentPanel) {
5676

5777
valuesPanelScrollPane = new JScrollPane(valuesPanel);
5878
valuesPanelScrollPane.setBorder(null);
59-
setShowParsingPanel(true);
6079
}
6180

6281
@Override
@@ -75,7 +94,9 @@ public void onInitFromPreferences(BinaryEditorPreferences preferences) {
7594
DataInspectorPreferences dataInspectorPreferences = new DataInspectorPreferences(preferences.getPreferences());
7695
setShowParsingPanel(dataInspectorPreferences.isShowParsingPanel());
7796
boolean useDefaultFont = dataInspectorPreferences.isUseDefaultFont();
78-
if (!useDefaultFont) {
97+
if (useDefaultFont) {
98+
setInputFieldsFont(new Font(Font.SANS_SERIF, Font.PLAIN, 13));
99+
} else {
79100
Map<TextAttribute, Object> fontAttributes = dataInspectorPreferences.getFontAttributes();
80101
setInputFieldsFont(new Font(fontAttributes));
81102
}

modules/exbin-framework-bined-inspector/src/main/java/org/exbin/framework/bined/inspector/BinedInspectorModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.util.ResourceBundle;
2424
import javax.annotation.Nonnull;
2525
import javax.annotation.ParametersAreNonnullByDefault;
26-
import javax.swing.JTextField;
2726
import org.exbin.framework.App;
2827
import org.exbin.framework.Module;
2928
import org.exbin.framework.ModuleUtils;
@@ -75,7 +74,7 @@ public class BinedInspectorModule implements Module {
7574

7675
private EditorProvider editorProvider;
7776

78-
private BasicValuesPositionColorModifier basicValuesColorModifier = new BasicValuesPositionColorModifier();
77+
private BasicValuesPositionColorModifier basicValuesColorModifier;
7978

8079
private DefaultOptionsPage<DataInspectorOptionsImpl> dataInspectorOptionsPage;
8180

@@ -85,6 +84,7 @@ public BinedInspectorModule() {
8584
public void setEditorProvider(EditorProvider editorProvider) {
8685
this.editorProvider = editorProvider;
8786

87+
basicValuesColorModifier = new BasicValuesPositionColorModifier();
8888
BinedModule binedModule = App.getModule(BinedModule.class);
8989
BinEdFileManager fileManager = binedModule.getFileManager();
9090
fileManager.addPainterColorModifier(basicValuesColorModifier);

0 commit comments

Comments
 (0)