|
3 | 3 | /* |
4 | 4 | Part of the Processing project - http://processing.org |
5 | 5 |
|
6 | | -Copyright (c) 2012-22 The Processing Foundation |
| 6 | +Copyright (c) 2012-23 The Processing Foundation |
7 | 7 | Copyright (c) 2004-12 Ben Fry and Casey Reas |
8 | 8 | Copyright (c) 2001-04 Massachusetts Institute of Technology |
9 | 9 |
|
|
28 | 28 | import processing.app.Preferences; |
29 | 29 | import processing.app.SketchException; |
30 | 30 | import processing.app.ui.ColorChooser; |
| 31 | +import processing.app.ui.Editor; |
31 | 32 | import processing.core.PApplet; |
32 | 33 | import processing.data.StringDict; |
33 | 34 | import processing.data.StringList; |
@@ -50,12 +51,14 @@ public class ExportPrompt { |
50 | 51 | "https://github.com/processing/processing4/wiki/Exporting-Applications#macos"; |
51 | 52 | static final String EXPORT_VARIANTS = "export.application.variants"; |
52 | 53 |
|
| 54 | + static public final String JAVA_DOWNLOAD_URL = "https://adoptium.net/"; |
| 55 | + |
53 | 56 | final JButton exportButton = new JButton(Language.text("prompt.export")); |
54 | 57 | final JButton cancelButton = new JButton(Language.text("prompt.cancel")); |
55 | 58 |
|
56 | 59 | List<JCheckBox> variantButtons; |
57 | 60 |
|
58 | | - final JavaEditor editor; |
| 61 | + final Editor editor; |
59 | 62 |
|
60 | 63 | static ExportPrompt inst; |
61 | 64 |
|
@@ -212,7 +215,7 @@ protected boolean trigger() throws IOException, SketchException { |
212 | 215 | final String warning2b = |
213 | 216 | "Users will need to "; |
214 | 217 | final String warning3 = |
215 | | - "<a href=\"" + JavaBuild.JAVA_DOWNLOAD_URL + "\">" + |
| 218 | + "<a href=\"" + JAVA_DOWNLOAD_URL + "\">" + |
216 | 219 | "install OpenJDK " + PApplet.javaPlatform + "</a>."; |
217 | 220 |
|
218 | 221 | // both are needed because they change as the user hits the checkbox |
@@ -222,7 +225,7 @@ protected boolean trigger() throws IOException, SketchException { |
222 | 225 | final JLabel warningLabel = new JLabel(embed ? embedWarning : nopeWarning); |
223 | 226 | warningLabel.addMouseListener(new MouseAdapter() { |
224 | 227 | public void mousePressed(MouseEvent event) { |
225 | | - Platform.openURL(JavaBuild.JAVA_DOWNLOAD_URL); |
| 228 | + Platform.openURL(JAVA_DOWNLOAD_URL); |
226 | 229 | } |
227 | 230 | }); |
228 | 231 | warningLabel.setBorder(new EmptyBorder(3, 13, 3, 13)); |
@@ -257,13 +260,13 @@ public void mousePressed(MouseEvent event) { |
257 | 260 | signPanel.setBorder(new TitledBorder(Language.text("export.code_signing"))); |
258 | 261 |
|
259 | 262 | String thePain = |
260 | | - "Applications on macOS must be \u201Csigned\u201D and \u201Cnotarized,\u201D " + |
| 263 | + "Applications on macOS must be “signed” and “notarized,”" + |
261 | 264 | "or they will be reported as damaged or unsafe. "; |
262 | 265 |
|
263 | 266 | //if (false && new File("/usr/bin/codesign_allocate").exists()) { |
264 | 267 | if (JavaBuild.isXcodeInstalled()) { |
265 | 268 | thePain += "<br/>" + |
266 | | - "This application will be \u201Cself-signed\u201D which means that " + |
| 269 | + "This application will be “self-signed” which means that " + |
267 | 270 | "macOS may complain that it comes from an unidentified developer. " + |
268 | 271 | "If the application will not run, try right-clicking the app and " + |
269 | 272 | "selecting Open from the pop-up menu. " + |
|