commit
bc19b3b716
14 changed files with 31 additions and 51 deletions
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
41d368cd63ae76bba69ccb6e967866fe
|
|
@ -1 +0,0 @@
|
|||
96f9c3d3bee336c4653abf42444c025b6dfd1836
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.github.weisj</groupId>
|
||||
<artifactId>darklaf-bcv</artifactId>
|
||||
<version>2.6.2bcv</version>
|
||||
</project>
|
|
@ -1 +0,0 @@
|
|||
74478ea2fe1166fa888c71a79567301d
|
|
@ -1 +0,0 @@
|
|||
d30064114889fe65ffd7c6c27f295351dec57586
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.github.weisj</groupId>
|
||||
<artifactId>darklaf-bcv</artifactId>
|
||||
<versioning>
|
||||
<release>2.6.2bcv</release>
|
||||
<versions>
|
||||
<version>2.6.2bcv</version>
|
||||
</versions>
|
||||
<lastUpdated>20210724002216</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
|
@ -1 +0,0 @@
|
|||
75dd4d459bc5baedf71904887dc0b60e
|
|
@ -1 +0,0 @@
|
|||
cc64fe02e94fab19ada3c4e39a6d984d5bf541b1
|
12
pom.xml
12
pom.xml
|
@ -17,10 +17,6 @@
|
|||
<id>local-maven-repo</id>
|
||||
<url>file:///${project.basedir}/libs</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>sonatype-snapshots</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
</repository> <!-- TODO Remove when DarkLaf is properly updated -->
|
||||
<repository>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
|
@ -86,7 +82,7 @@
|
|||
<dependency>
|
||||
<groupId>org.codehaus.janino</groupId>
|
||||
<artifactId>commons-compiler</artifactId>
|
||||
<version>3.1.4</version>
|
||||
<version>3.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
|
@ -131,7 +127,7 @@
|
|||
<dependency>
|
||||
<groupId>org.codehaus.janino</groupId>
|
||||
<artifactId>janino</artifactId>
|
||||
<version>3.1.4</version>
|
||||
<version>3.1.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.jd</groupId>
|
||||
|
@ -225,8 +221,8 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.weisj</groupId>
|
||||
<artifactId>darklaf-bcv</artifactId>
|
||||
<version>2.6.2bcv</version>
|
||||
<artifactId>darklaf-core</artifactId>
|
||||
<version>2.7.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.weisj</groupId>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package the.bytecode.club.bytecodeviewer.gui.hexviewer;
|
||||
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.RenderingHints;
|
||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
|
@ -160,8 +162,11 @@ public class JHexEditor extends JPanel implements FocusListener, AdjustmentListe
|
|||
fn.getHeight() + 1);
|
||||
}
|
||||
|
||||
protected void printString(Graphics g, String s, int x, int y) {
|
||||
protected void printString(Graphics graphics, String s, int x, int y) {
|
||||
Graphics2D g = (Graphics2D) graphics;
|
||||
FontMetrics fn = getFontMetrics(font);
|
||||
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
|
||||
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
g.drawString(s, ((fn.stringWidth(" ") + 1) * x) + border,
|
||||
((fn.getHeight() * (y + 1)) - fn.getMaxDescent()) + border);
|
||||
}
|
||||
|
|
|
@ -43,17 +43,20 @@ public class ResourceTree extends JTree
|
|||
StringMetricsUtil m = null;
|
||||
|
||||
@Override
|
||||
public void paint(final Graphics g)
|
||||
public void paint(final Graphics graphics)
|
||||
{
|
||||
try
|
||||
{
|
||||
Graphics2D g = (Graphics2D) graphics;
|
||||
super.paint(g);
|
||||
if (m == null)
|
||||
{
|
||||
m = new StringMetricsUtil((Graphics2D) g);
|
||||
m = new StringMetricsUtil(g);
|
||||
}
|
||||
if (treeRoot.getChildCount() < 1)
|
||||
{
|
||||
g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
|
||||
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
g.setColor(new Color(0, 0, 0, 100));
|
||||
g.fillRect(0, 0, getWidth(), getHeight());
|
||||
g.setColor(Color.white);
|
||||
|
@ -63,7 +66,7 @@ public class ResourceTree extends JTree
|
|||
getHeight() / 2);
|
||||
}
|
||||
}
|
||||
catch (InternalError | NullPointerException ignored)
|
||||
catch (InternalError | NullPointerException | ClassCastException ignored)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,16 +73,18 @@ public class ResourceContainerImporter
|
|||
try
|
||||
{
|
||||
//attempt to import using Java ZipInputStream
|
||||
importZipInputStream(false);
|
||||
return importZipInputStream(false);
|
||||
}
|
||||
catch (IOException e)
|
||||
catch (Throwable t)
|
||||
{
|
||||
e.printStackTrace();
|
||||
|
||||
//fallback to apache commons ZipFile
|
||||
importApacheZipFile(false);
|
||||
try {
|
||||
//fallback to apache commons ZipFile
|
||||
return importApacheZipFile(false);
|
||||
} catch (Throwable t1) {
|
||||
t1.addSuppressed(t);
|
||||
throw t1;
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -93,10 +95,10 @@ public class ResourceContainerImporter
|
|||
{
|
||||
//TODO remove this .class check and just look for cafebabe
|
||||
if (name.endsWith(".class"))
|
||||
addClassResource(name, stream);
|
||||
else if(!classesOnly)
|
||||
addResource(name, stream);
|
||||
|
||||
return addClassResource(name, stream);
|
||||
else if (!classesOnly)
|
||||
return addResource(name, stream);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
@ -444,10 +444,10 @@ public class FileDrop {
|
|||
boolean support;
|
||||
try {
|
||||
final Class arbitraryDndClass = Class
|
||||
.forName("DnDConstants");
|
||||
.forName("java.awt.dnd.DnDConstants");
|
||||
support = true;
|
||||
} // end try
|
||||
catch (final Exception e) {
|
||||
catch (final Throwable t) {
|
||||
support = false;
|
||||
} // end catch
|
||||
supportsDnD = support;
|
||||
|
|
Loading…
Reference in a new issue