From b03da1c3b373049c8ba985ba8a8d58e945e78262 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Mon, 27 Aug 2012 11:09:30 +0300 Subject: [PATCH] Added support of viewing the compiled Java files (*.class). Signed-off-by: Slava Zanko --- misc/ext.d/misc.sh.in | 3 +++ misc/mc.ext.in | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/misc/ext.d/misc.sh.in b/misc/ext.d/misc.sh.in index 4a8103567..80776bf0c 100644 --- a/misc/ext.d/misc.sh.in +++ b/misc/ext.d/misc.sh.in @@ -45,6 +45,9 @@ do_view_action() { torrent) ctorrent -x "${MC_EXT_FILENAME}" 2>/dev/null ;; + javaclass) + jad -p "${MC_EXT_FILENAME}" 2>/dev/null + ;; *) ;; esac diff --git a/misc/mc.ext.in b/misc/mc.ext.in index 9f65f1f00..0636d2bfc 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -592,6 +592,10 @@ regex/i/\.djvu?$ ### Miscellaneous ### +# Compiled Java classes +shell/.class + View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass + # Makefile regex/[Mm]akefile$ Open=make -f %f %{Enter parameters}