Skip to content

Commit f362cd1

Browse files
Add support for .class files.
Use JAD installed at /usr/local/bin/jad to decompile.
1 parent e5492ff commit f362cd1

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

Info.plist

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<string>dyn.ah62d4rv4ge81a3df</string>
2121
<string>dyn.ah62d4rv4ge80w5xt</string>
2222
<string>dyn.ah62d4rv4ge80w5xg</string>
23+
<string>com.sun.java-class</string>
2324
</array>
2425
</dict>
2526
</array>
@@ -64,7 +65,7 @@
6465
<key>QLSupportsConcurrentRequests</key>
6566
<true/>
6667
<key>QLThumbnailMinimumSize</key>
67-
<real>32</real>
68+
<integer>8</integer>
6869
<key>UTImportedTypeDeclarations</key>
6970
<array>
7071
<dict>
@@ -714,6 +715,23 @@
714715
</array>
715716
</dict>
716717
</dict>
718+
<dict>
719+
<key>UTTypeConformsTo</key>
720+
<array>
721+
<string>com.sun.java-class</string>
722+
</array>
723+
<key>UTTypeIdentifier</key>
724+
<string>com.sun.java-class</string>
725+
<key>UTTypeDescription</key>
726+
<string>Java Class</string>
727+
<key>UTTypeTagSpecification</key>
728+
<dict>
729+
<key>public.filename-extension</key>
730+
<array>
731+
<string>class</string>
732+
</array>
733+
</dict>
734+
</dict>
717735
</array>
718736
</dict>
719737
</plist>

QLColorCode.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
EA43672515F6C00B009DA6C0 /* English.lproj in Resources */ = {isa = PBXBuildFile; fileRef = EA43672315F6C00B009DA6C0 /* English.lproj */; };
3636
EA43672F15F6C1B8009DA6C0 /* CHANGELOG in Resources */ = {isa = PBXBuildFile; fileRef = EA43672B15F6C1B8009DA6C0 /* CHANGELOG */; };
3737
EA43673015F6C1B8009DA6C0 /* COPYING in Resources */ = {isa = PBXBuildFile; fileRef = EA43672C15F6C1B8009DA6C0 /* COPYING */; };
38-
EA43673115F6C1B8009DA6C0 /* INFO in Resources */ = {isa = PBXBuildFile; fileRef = EA43672D15F6C1B8009DA6C0 /* INFO */; };
3938
EAE9D2CC169E2B3500A67B2F /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = EAE9D2CB169E2B3500A67B2F /* README.md */; };
4039
EAEB7B5815A4FBF7005914E0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAEB7B5715A4FBF7005914E0 /* Foundation.framework */; };
4140
EAEB7B5A15A4FC00005914E0 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAEB7B5915A4FC00005914E0 /* WebKit.framework */; };
@@ -81,7 +80,6 @@
8180
EA43672315F6C00B009DA6C0 /* English.lproj */ = {isa = PBXFileReference; lastKnownFileType = folder; name = English.lproj; path = rsrc/English.lproj; sourceTree = "<group>"; };
8281
EA43672B15F6C1B8009DA6C0 /* CHANGELOG */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CHANGELOG; sourceTree = "<group>"; };
8382
EA43672C15F6C1B8009DA6C0 /* COPYING */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = COPYING; sourceTree = "<group>"; };
84-
EA43672D15F6C1B8009DA6C0 /* INFO */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = INFO; sourceTree = "<group>"; };
8583
EA43673315F6C23F009DA6C0 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8684
EAE9D2CB169E2B3500A67B2F /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
8785
EAEB7B5715A4FBF7005914E0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -114,7 +112,6 @@
114112
children = (
115113
EA43672B15F6C1B8009DA6C0 /* CHANGELOG */,
116114
EA43672C15F6C1B8009DA6C0 /* COPYING */,
117-
EA43672D15F6C1B8009DA6C0 /* INFO */,
118115
EAE9D2CB169E2B3500A67B2F /* README.md */,
119116
08FB77AFFE84173DC02AAC07 /* Source */,
120117
089C167CFE841241C02AAC07 /* Resources */,
@@ -241,7 +238,6 @@
241238
EA43672515F6C00B009DA6C0 /* English.lproj in Resources */,
242239
EA43672F15F6C1B8009DA6C0 /* CHANGELOG in Resources */,
243240
EA43673015F6C1B8009DA6C0 /* COPYING in Resources */,
244-
EA43673115F6C1B8009DA6C0 /* INFO in Resources */,
245241
EAE9D2CC169E2B3500A67B2F /* README.md in Resources */,
246242
);
247243
runOnlyForDeploymentPostprocessing = 0;
0 Bytes
Binary file not shown.

src/colorize.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ case $target in
5050
*.ps )
5151
exit 1
5252
;;
53+
*.class )
54+
lang=java
55+
reader=(/usr/local/bin/jad -ff -dead -noctor -p -t $target)
56+
;;
5357
*.pde )
5458
lang=c
5559
;;

0 commit comments

Comments
 (0)