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
master
seeksthemoon 22 years ago
parent c53a8d1acf
commit 2872b22195
  1. 5
      jode/ChangeLog
  2. 3
      jode/MANIFEST.MF
  3. 2
      jode/build.xml
  4. 2
      jode/props/net/sf/jode/swingui/Resources.properties
  5. 2
      jode/props/net/sf/jode/swingui/Resources_de.properties
  6. 4
      jode/src/net/sf/jode/swingui/Main.java

@ -3,6 +3,11 @@
* net/sf/jode/decompiler/Main.java: Main-window will be centered on startup * 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 <jochen@gnu.org> 2002-06-11 Jochen Hoenicke <jochen@gnu.org>
* net/sf/jode/decompiler/Main.java: New option keep-alive. With * net/sf/jode/decompiler/Main.java: New option keep-alive. With

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: net.sf.jode.swingui.Main
Created-By: SeeksTheMoon

@ -167,7 +167,7 @@
<target name="release" depends="release-bin,release-bin11,release-src,release-javadoc"/> <target name="release" depends="release-bin,release-bin11,release-src,release-javadoc"/>
<target name="release-bindist" depends="build"> <target name="release-bindist" depends="build">
<jar jarfile="${distdir}/jode.jar"> <jar jarfile="${distdir}/jode.jar" compress="true" manifest="${basedir}/MANIFEST.MF">
<fileset dir="${build}" includes="**/*.class"/> <fileset dir="${build}" includes="**/*.class"/>
<fileset dir="${props}" includes="**/*.properties"/> <fileset dir="${props}" includes="**/*.properties"/>
</jar> </jar>

@ -19,6 +19,8 @@ main.decompiling=decompiling
main.exception = \nException while decompiling: main.exception = \nException while decompiling:
menu.file = File menu.file = File
menu.file.save = Save...
menu.file.save.ex = An Exception occured on filewriting!
menu.file.gc = Collect Garbage menu.file.gc = Collect Garbage
menu.file.exit = Exit menu.file.exit = Exit
menu.opt = Options menu.opt = Options

@ -19,6 +19,8 @@ main.decompiling = dekompiliere
main.exception = \nBeim Dekompilieren ist ein Fehler aufgetreten: main.exception = \nBeim Dekompilieren ist ein Fehler aufgetreten:
menu.file = Datei 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.gc = Speicher freiräumen
menu.file.exit = Beenden menu.file.exit = Beenden
menu.opt = Optionen menu.opt = Optionen

@ -284,7 +284,7 @@ public class Main
menu = new JMenu(bundle.getString("menu.file")); menu = new JMenu(bundle.getString("menu.file"));
menu.setMnemonic('f'); 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.setMnemonic('s');
this.saveMenuItem.setEnabled(false); this.saveMenuItem.setEnabled(false);
this.saveMenuItem.addActionListener(new ActionListener() { this.saveMenuItem.addActionListener(new ActionListener() {
@ -317,7 +317,7 @@ public class Main
p.print(sourcecodeArea.getText()); p.print(sourcecodeArea.getText());
p.close(); p.close();
} catch (Exception e) { } catch (Exception e) {
errorArea.setText(bundle.getString("menu.save.ex")); errorArea.setText(bundle.getString("menu.file.save.ex"));
} }
} }
}); });

Loading…
Cancel
Save