Add build number to Version class, include as Build ID in About boxes.

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@70 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
lizzardo 2008-04-30 15:57:27 +00:00
parent c8a6e1ac7e
commit 06c7c5d607
4 changed files with 10 additions and 5 deletions

View File

@ -26,6 +26,7 @@ package com.romraider;
public final class Version { public final class Version {
public static final String PRODUCT_NAME = "@name.package@"; public static final String PRODUCT_NAME = "@name.package@";
public static final String VERSION = "@version.major@.@version.minor@.@version.patch@ @version.extra@"; public static final String VERSION = "@version.major@.@version.minor@.@version.patch@ @version.extra@";
public static final String BUILDNUMBER = "@version.buildnumber@";
public static final String SUPPORT_URL = "@supporturl@"; public static final String SUPPORT_URL = "@supporturl@";
public static final String ROM_REVISION_URL = "@romrevisionurl@"; public static final String ROM_REVISION_URL = "@romrevisionurl@";
public static final String ECU_DEFS_URL = "@ecudefsurl@"; public static final String ECU_DEFS_URL = "@ecudefsurl@";

View File

@ -1,5 +1,6 @@
package com.romraider.logger.ecu.ui.swing.menubar.action; package com.romraider.logger.ecu.ui.swing.menubar.action;
import com.romraider.Version;
import com.romraider.logger.ecu.EcuLogger; import com.romraider.logger.ecu.EcuLogger;
import static javax.swing.JOptionPane.INFORMATION_MESSAGE; import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
import static javax.swing.JOptionPane.showMessageDialog; import static javax.swing.JOptionPane.showMessageDialog;
@ -12,6 +13,9 @@ public final class AboutAction extends AbstractAction {
} }
public void actionPerformed(ActionEvent actionEvent) { public void actionPerformed(ActionEvent actionEvent) {
showMessageDialog(logger, "RomRaider ECU Logger\nhttp://www.romraider.com/", "About", INFORMATION_MESSAGE); showMessageDialog(logger,
Version.PRODUCT_NAME + " RomRaider ECU logger\n" + "Version " + Version.VERSION + "\n" +
"Build ID: " + Version.BUILDNUMBER + "\n" + Version.SUPPORT_URL,
"About " + Version.PRODUCT_NAME, INFORMATION_MESSAGE);
} }
} }

View File

@ -303,9 +303,9 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
//TODO: make a separate About class to get a better dialog box //TODO: make a separate About class to get a better dialog box
// with graphic, hyperlink, etc. // with graphic, hyperlink, etc.
showMessageDialog(this, showMessageDialog(this,
Version.PRODUCT_NAME + " ECU Editor\n" + "Version " + Version.VERSION + "\n" + Version.SUPPORT_URL, Version.PRODUCT_NAME + " ECU Editor\n" + "Version " + Version.VERSION + "\n" +
"About " + Version.PRODUCT_NAME, "Build ID: " + Version.BUILDNUMBER + "\n" + Version.SUPPORT_URL,
INFORMATION_MESSAGE); "About " + Version.PRODUCT_NAME, INFORMATION_MESSAGE);
} }
} }

View File

@ -4,7 +4,7 @@
warning.generated-file: DO NOT EDIT. This file is automatically generated. warning.generated-file: DO NOT EDIT. This file is automatically generated.
# basic version name and number properties # basic version name and number properties
# this should be a single word, since it's used for things like the jar file # name.package should be a single word, since it's used for things like the jar file
name.package: RomRaider name.package: RomRaider
description.package: RomRaider ROM Editing Suite description.package: RomRaider ROM Editing Suite
name.organization: RomRaider.com name.organization: RomRaider.com