mirror of https://github.com/rusefi/RomRaider.git
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:
parent
c8a6e1ac7e
commit
06c7c5d607
|
@ -26,6 +26,7 @@ package com.romraider;
|
|||
public final class Version {
|
||||
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 BUILDNUMBER = "@version.buildnumber@";
|
||||
public static final String SUPPORT_URL = "@supporturl@";
|
||||
public static final String ROM_REVISION_URL = "@romrevisionurl@";
|
||||
public static final String ECU_DEFS_URL = "@ecudefsurl@";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.romraider.logger.ecu.ui.swing.menubar.action;
|
||||
|
||||
import com.romraider.Version;
|
||||
import com.romraider.logger.ecu.EcuLogger;
|
||||
import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
|
||||
import static javax.swing.JOptionPane.showMessageDialog;
|
||||
|
@ -12,6 +13,9 @@ public final class AboutAction extends AbstractAction {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -303,9 +303,9 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
|
|||
//TODO: make a separate About class to get a better dialog box
|
||||
// with graphic, hyperlink, etc.
|
||||
showMessageDialog(this,
|
||||
Version.PRODUCT_NAME + " ECU Editor\n" + "Version " + Version.VERSION + "\n" + Version.SUPPORT_URL,
|
||||
"About " + Version.PRODUCT_NAME,
|
||||
INFORMATION_MESSAGE);
|
||||
Version.PRODUCT_NAME + " ECU Editor\n" + "Version " + Version.VERSION + "\n" +
|
||||
"Build ID: " + Version.BUILDNUMBER + "\n" + Version.SUPPORT_URL,
|
||||
"About " + Version.PRODUCT_NAME, INFORMATION_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
warning.generated-file: DO NOT EDIT. This file is automatically generated.
|
||||
|
||||
# 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
|
||||
description.package: RomRaider ROM Editing Suite
|
||||
name.organization: RomRaider.com
|
||||
|
|
Loading…
Reference in New Issue