mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
cleaning up after i18n patch
This commit is contained in:
@@ -1,90 +0,0 @@
|
||||
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
|
||||
/*
|
||||
Part of the Processing project - http://processing.org
|
||||
|
||||
Copyright (c) 2012 The Processing Foundation
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, version 2.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
package processing.app.tools;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
import processing.app.Base;
|
||||
import processing.app.Editor;
|
||||
import processing.app.Language;
|
||||
import processing.core.PApplet;
|
||||
|
||||
|
||||
public class SerialFixer implements Tool {
|
||||
Editor editor;
|
||||
|
||||
|
||||
public String getMenuTitle() {
|
||||
return Language.text("menu.tools.fix_the_serial_lbrary");
|
||||
}
|
||||
|
||||
|
||||
public void init(Editor editor) {
|
||||
this.editor = editor;
|
||||
}
|
||||
|
||||
|
||||
public void run() {
|
||||
final String primary =
|
||||
"Attempt to fix common serial port problems?";
|
||||
final String secondary =
|
||||
"Click “OK” to perform additional installation steps to enable " +
|
||||
"the Serial library. An administrator password will be required.";
|
||||
|
||||
int result =
|
||||
JOptionPane.showConfirmDialog(editor,
|
||||
"<html> " +
|
||||
"<head> <style type=\"text/css\">"+
|
||||
"b { font: 13pt \"Lucida Grande\" }"+
|
||||
"p { font: 11pt \"Lucida Grande\"; margin-top: 8px }"+
|
||||
"</style> </head>" +
|
||||
"<b>" + primary + "</b>" +
|
||||
"<p>" + secondary + "</p>",
|
||||
"Commander",
|
||||
JOptionPane.OK_CANCEL_OPTION,
|
||||
JOptionPane.QUESTION_MESSAGE);
|
||||
|
||||
if (result == JOptionPane.OK_OPTION) {
|
||||
String shellScript = "mkdir -p /var/lock && chmod 777 /var/lock";
|
||||
String appleScript =
|
||||
"do shell script \"" + shellScript + "\" with administrator privileges";
|
||||
PApplet.exec(new String[] { "osascript", "-e", appleScript });
|
||||
}
|
||||
editor.statusNotice("Finished.");
|
||||
}
|
||||
|
||||
|
||||
static public boolean isNeeded() {
|
||||
if (Base.isMacOS()) {
|
||||
File lockFolder = new File("/var/lock");
|
||||
if (!lockFolder.exists() ||
|
||||
!lockFolder.canRead() ||
|
||||
!lockFolder.canWrite() ||
|
||||
!lockFolder.canExecute()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,15 @@
|
||||
0230 core (3.0a3)
|
||||
|
||||
earlier
|
||||
X PShape disableStyle() does not work with createShape()
|
||||
X https://github.com/processing/processing/issues/1523
|
||||
X multisampled offscreen PGraphics don't clear the screen properly
|
||||
X https://github.com/processing/processing/issues/2679
|
||||
X this was done midway through the 3.0a2 release process
|
||||
|
||||
pull requests
|
||||
X call applet.exit() instead of System.exit() from Present Mode's 'stop'
|
||||
X https://github.com/processing/processing/pull/2680
|
||||
|
||||
|
||||
applet/component
|
||||
|
||||
15
todo.txt
15
todo.txt
@@ -4,11 +4,13 @@ pulls
|
||||
X Add polling to detect file system changes
|
||||
X https://github.com/processing/processing/issues/1939
|
||||
X https://github.com/processing/processing/pull/2628
|
||||
X huge i18n patch
|
||||
X https://github.com/processing/processing/issues/632
|
||||
X https://github.com/processing/processing/pull/2084
|
||||
X http://code.google.com/p/processing/issues/detail?id=593
|
||||
|
||||
|
||||
pending
|
||||
_ huge i18n patch
|
||||
_ https://github.com/processing/processing/pull/2084
|
||||
_ look at the sound library https://github.com/wirsing/ProcessingSound
|
||||
_ sound is not yet supported on Windows
|
||||
_ glw? lwjgl? retina jogl?
|
||||
@@ -915,15 +917,6 @@ _ add proper copyright and license information for all included projects
|
||||
_ http://code.google.com/p/processing/issues/detail?id=185
|
||||
_ list of license issues
|
||||
_ http://code.google.com/p/processing/issues/detail?id=575
|
||||
_ Internationalization
|
||||
_ http://code.google.com/p/processing/issues/detail?id=593
|
||||
_ l10n, i18n of environment/core
|
||||
_ http://docs.oracle.com/javase/tutorial/i18n/format/messageintro.html
|
||||
_ http://docs.oracle.com/javase/tutorial/i18n/format/numberFormat.html
|
||||
_ http://docs.oracle.com/javase/tutorial/i18n/format/choiceFormat.html
|
||||
_ http://docs.oracle.com/javase/tutorial/i18n/format/messageFormat.html
|
||||
_ http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html
|
||||
_ http://docs.oracle.com/javase/tutorial/i18n/intro/checklist.html
|
||||
_ write up code guidelines for project
|
||||
_ make proper Eclipse style prefs to reinforce
|
||||
_ write up guidelines for modes
|
||||
|
||||
Reference in New Issue
Block a user