From 2872b22195b0b9cda50915f9b72a3409f80847ef Mon Sep 17 00:00:00 2001 From: seeksthemoon Date: Wed, 11 Jun 2003 10:54:06 +0000 Subject: [PATCH] Added MANIFEST.MF to be able to create executable jar-file. The executable release-jar will now be compressed. Added i18n for new saveMenuItem. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1377 379699f6-c40d-0410-875b-85095c16579e --- jode/ChangeLog | 5 +++++ jode/MANIFEST.MF | 3 +++ jode/build.xml | 2 +- jode/props/net/sf/jode/swingui/Resources.properties | 2 ++ jode/props/net/sf/jode/swingui/Resources_de.properties | 2 ++ jode/src/net/sf/jode/swingui/Main.java | 4 ++-- 6 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 jode/MANIFEST.MF diff --git a/jode/ChangeLog b/jode/ChangeLog index aea3a12..fa6cead 100644 --- a/jode/ChangeLog +++ b/jode/ChangeLog @@ -3,6 +3,11 @@ * net/sf/jode/decompiler/Main.java: Main-window will be centered on startup + * build.xml: + (release): Added MANIFEST.MF to target and enabled compressed jar-file + + * MANIFEST.MF: Added this file to be able to create an executable jar-file + 2002-06-11 Jochen Hoenicke * net/sf/jode/decompiler/Main.java: New option keep-alive. With diff --git a/jode/MANIFEST.MF b/jode/MANIFEST.MF new file mode 100644 index 0000000..f5d4544 --- /dev/null +++ b/jode/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: net.sf.jode.swingui.Main +Created-By: SeeksTheMoon diff --git a/jode/build.xml b/jode/build.xml index d22a039..1daddd1 100644 --- a/jode/build.xml +++ b/jode/build.xml @@ -167,7 +167,7 @@ - + diff --git a/jode/props/net/sf/jode/swingui/Resources.properties b/jode/props/net/sf/jode/swingui/Resources.properties index 729dfb1..b57889a 100644 --- a/jode/props/net/sf/jode/swingui/Resources.properties +++ b/jode/props/net/sf/jode/swingui/Resources.properties @@ -19,6 +19,8 @@ main.decompiling=decompiling main.exception = \nException while decompiling: menu.file = File +menu.file.save = Save... +menu.file.save.ex = An Exception occured on filewriting! menu.file.gc = Collect Garbage menu.file.exit = Exit menu.opt = Options diff --git a/jode/props/net/sf/jode/swingui/Resources_de.properties b/jode/props/net/sf/jode/swingui/Resources_de.properties index a2d33b9..8e39b9f 100644 --- a/jode/props/net/sf/jode/swingui/Resources_de.properties +++ b/jode/props/net/sf/jode/swingui/Resources_de.properties @@ -19,6 +19,8 @@ main.decompiling = dekompiliere main.exception = \nBeim Dekompilieren ist ein Fehler aufgetreten: menu.file = Datei +menu.file.save = Speichern... +menu.file.save.ex = Beim Schreiben der Datei trat eine Ausnahme auf! menu.file.gc = Speicher freiräumen menu.file.exit = Beenden menu.opt = Optionen diff --git a/jode/src/net/sf/jode/swingui/Main.java b/jode/src/net/sf/jode/swingui/Main.java index a228a77..7468c95 100644 --- a/jode/src/net/sf/jode/swingui/Main.java +++ b/jode/src/net/sf/jode/swingui/Main.java @@ -284,7 +284,7 @@ public class Main menu = new JMenu(bundle.getString("menu.file")); menu.setMnemonic('f'); - this.saveMenuItem = new JMenuItem(bundle.getString("menu.save")); + this.saveMenuItem = new JMenuItem(bundle.getString("menu.file.save")); this.saveMenuItem.setMnemonic('s'); this.saveMenuItem.setEnabled(false); this.saveMenuItem.addActionListener(new ActionListener() { @@ -317,7 +317,7 @@ public class Main p.print(sourcecodeArea.getText()); p.close(); } catch (Exception e) { - errorArea.setText(bundle.getString("menu.save.ex")); + errorArea.setText(bundle.getString("menu.file.save.ex")); } } });