Skip to content

Commit c264e36

Browse files
committed
JHexEditor replaced with BinEd Hexadecimal viewer library
1 parent ec6db5c commit c264e36

13 files changed

Lines changed: 2178 additions & 709 deletions

File tree

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<annotations.version>22.0.0</annotations.version>
1717
<apktool.version>2.5.0bcv2</apktool.version>
1818
<asm.version>9.2</asm.version>
19+
<bined.version>0.2.0</bined.version>
1920
<cfr.version>0.151</cfr.version>
2021
<cloning.version>1.9.12</cloning.version>
2122
<commons-cli.version>1.4</commons-cli.version>
@@ -35,6 +36,7 @@
3536
<byteanalysis.version>1.0bcv</byteanalysis.version>
3637
<jgraphx.version>3.4.1.3</jgraphx.version>
3738
<objenesis.version>3.2</objenesis.version>
39+
<paged_data.version>0.2.0</paged_data.version>
3840
<procyon.version>0.5.36</procyon.version>
3941
<rsyntaxtextarea.version>3.1.3</rsyntaxtextarea.version>
4042
<slf4j.version>1.7.32</slf4j.version>
@@ -103,6 +105,21 @@
103105
<artifactId>asm-util</artifactId>
104106
<version>${asm.version}</version>
105107
</dependency>
108+
<dependency>
109+
<groupId>org.exbin.bined</groupId>
110+
<artifactId>bined-core</artifactId>
111+
<version>${bined.version}</version>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.exbin.bined</groupId>
115+
<artifactId>bined-swing</artifactId>
116+
<version>${bined.version}</version>
117+
</dependency>
118+
<dependency>
119+
<groupId>org.exbin.bined</groupId>
120+
<artifactId>bined-highlight-swing</artifactId>
121+
<version>${bined.version}</version>
122+
</dependency>
106123
<dependency>
107124
<groupId>org.benf</groupId>
108125
<artifactId>cfr</artifactId>
@@ -204,6 +221,11 @@
204221
<artifactId>objenesis</artifactId>
205222
<version>${objenesis.version}</version>
206223
</dependency>
224+
<dependency>
225+
<groupId>org.exbin.auxiliary</groupId>
226+
<artifactId>paged_data</artifactId>
227+
<version>${paged_data.version}</version>
228+
</dependency>
207229
<dependency>
208230
<groupId>org.bitbucket.mstrobel</groupId>
209231
<artifactId>procyon-core</artifactId>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package the.bytecode.club.bytecodeviewer.gui.hexviewer;
2+
3+
import javax.annotation.ParametersAreNonnullByDefault;
4+
import org.exbin.bined.CodeAreaCaretPosition;
5+
import org.exbin.bined.EditMode;
6+
import org.exbin.bined.EditOperation;
7+
import org.exbin.bined.SelectionRange;
8+
9+
/**
10+
* Binary editor status interface.
11+
*
12+
* @author hajdam
13+
*/
14+
@ParametersAreNonnullByDefault
15+
public interface BinaryStatusApi {
16+
17+
/**
18+
* Reports cursor position.
19+
*
20+
* @param cursorPosition cursor position
21+
*/
22+
void setCursorPosition(CodeAreaCaretPosition cursorPosition);
23+
24+
/**
25+
* Sets current selection.
26+
*
27+
* @param selectionRange current selection
28+
*/
29+
void setSelectionRange(SelectionRange selectionRange);
30+
31+
/**
32+
* Reports currently active edit mode.
33+
*
34+
* @param mode edit mode
35+
* @param operation edit operation
36+
*/
37+
void setEditMode(EditMode mode, EditOperation operation);
38+
39+
/**
40+
* Sets current document size.
41+
*
42+
* @param documentSize document size
43+
* @param initialDocumentSize document size when file was opened
44+
*/
45+
void setCurrentDocumentSize(long documentSize, long initialDocumentSize);
46+
}

0 commit comments

Comments
 (0)