mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
update copyright years in processing.app.ui package
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2014 The Processing Foundation
|
Copyright (c) 2014-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
@@ -53,7 +53,7 @@ public class Preferences {
|
|||||||
static final String PREFS_FILE = "preferences.txt"; //$NON-NLS-1$
|
static final String PREFS_FILE = "preferences.txt"; //$NON-NLS-1$
|
||||||
|
|
||||||
static Map<String, String> defaults;
|
static Map<String, String> defaults;
|
||||||
static Map<String, String> table = new HashMap<String, String>();
|
static Map<String, String> table = new HashMap<>();
|
||||||
static File preferencesFile;
|
static File preferencesFile;
|
||||||
|
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ public class Preferences {
|
|||||||
|
|
||||||
// Clone the defaults, then override any them with the user's preferences.
|
// Clone the defaults, then override any them with the user's preferences.
|
||||||
// This ensures that any new/added preference will be present.
|
// This ensures that any new/added preference will be present.
|
||||||
defaults = new HashMap<String, String>(table);
|
defaults = new HashMap<>(table);
|
||||||
|
|
||||||
// other things that have to be set explicitly for the defaults
|
// other things that have to be set explicitly for the defaults
|
||||||
setColor("run.window.bgcolor", SystemColor.control); //$NON-NLS-1$
|
setColor("run.window.bgcolor", SystemColor.control); //$NON-NLS-1$
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-15 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
|||||||
@@ -1,3 +1,24 @@
|
|||||||
|
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
|
Copyright (c) 2012-19 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 version 2
|
||||||
|
as published by the Free Software Foundation.
|
||||||
|
|
||||||
|
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.
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
package processing.app.ui;
|
package processing.app.ui;
|
||||||
|
|
||||||
import java.awt.event.WindowEvent;
|
import java.awt.event.WindowEvent;
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2006-14 Ben Fry and Casey Reas
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
|
Copyright (c) 2006-12 Ben Fry and Casey Reas
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-15 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
Copyright (c) 2015 The Processing Foundation
|
|
||||||
|
Copyright (c) 2015-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-17 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
@@ -233,8 +233,8 @@ public class EditorConsole extends JScrollPane {
|
|||||||
// https://github.com/processing/processing/issues/5462
|
// https://github.com/processing/processing/issues/5462
|
||||||
// Some discussion on the Apple's developer forums seems to suggest that is not serious:
|
// Some discussion on the Apple's developer forums seems to suggest that is not serious:
|
||||||
// https://forums.developer.apple.com/thread/105244
|
// https://forums.developer.apple.com/thread/105244
|
||||||
} else if (err && what.contains("NSWindow drag regions should only be invalidated on the Main Thread")) {
|
} else if (err && what.contains("NSWindow drag regions should only be invalidated on the Main Thread")) {
|
||||||
// Keep hiding warnings triggered by JOGL on recent macOS versions (this is from 10.14 onwards I think).
|
// Keep hiding warnings triggered by JOGL on recent macOS versions (this is from 10.14 onwards I think).
|
||||||
} else if (err && what.contains("Make pbuffer:")) {
|
} else if (err && what.contains("Make pbuffer:")) {
|
||||||
// Remove initalization warning from LWJGL.
|
// Remove initalization warning from LWJGL.
|
||||||
} else if (err && what.contains("XInitThreads() called for concurrent")) {
|
} else if (err && what.contains("XInitThreads() called for concurrent")) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2015 The Processing Foundation
|
Copyright (c) 2015-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2015 The Processing Foundation
|
Copyright (c) 2015-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2013-15 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-13 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2011-12 Ben Fry and Casey Reas
|
Copyright (c) 2011-12 Ben Fry and Casey Reas
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-18 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyirght (c) 2012-15 The Processing Foundation
|
Copyirght (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
Copyright (c) 2012-15 The Processing Foundation
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2013-15 The Processing Foundation
|
Copyright (c) 2013-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
@@ -424,10 +425,10 @@ public class FindReplace extends JFrame {
|
|||||||
*/
|
*/
|
||||||
public void replace(boolean isCompoundEdit) {
|
public void replace(boolean isCompoundEdit) {
|
||||||
editor.setSelectedText(replaceField.getText(), isCompoundEdit);
|
editor.setSelectedText(replaceField.getText(), isCompoundEdit);
|
||||||
|
|
||||||
editor.getSketch().setModified(true); // This necessary- calling replace()
|
editor.getSketch().setModified(true); // This necessary- calling replace()
|
||||||
// doesn't seem to mark a sketch as modified
|
// doesn't seem to mark a sketch as modified
|
||||||
|
|
||||||
setFound(false);
|
setFound(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
Copyright (c) 2012-16 The Processing Foundation
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-17 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
Copyright (c) 2004-12 Ben Fry and Casey Reas
|
||||||
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
Copyright (c) 2001-04 Massachusetts Institute of Technology
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
Copyright (c) 2011-12 Ben Fry and Casey Reas
|
Copyright (c) 2011-12 Ben Fry and Casey Reas
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
@@ -77,7 +78,7 @@ public class Recent {
|
|||||||
|
|
||||||
|
|
||||||
static protected void load() throws IOException {
|
static protected void load() throws IOException {
|
||||||
records = new ArrayList<Record>();
|
records = new ArrayList<>();
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
BufferedReader reader = PApplet.createReader(file);
|
BufferedReader reader = PApplet.createReader(file);
|
||||||
String version = reader.readLine();
|
String version = reader.readLine();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2013-15 The Processing Foundation
|
Copyright (c) 2013-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2012-15 The Processing Foundation
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2015 The Processing Foundation
|
Copyright (c) 2015-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2015 The Processing Foundation
|
Copyright (c) 2015-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2017-18 The Processing Foundation
|
Copyright (c) 2017-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
|
|
||||||
Copyright (c) 2017 The Processing Foundation
|
Copyright (c) 2017-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Part of the Processing project - http://processing.org
|
Part of the Processing project - http://processing.org
|
||||||
Copyright (c) 2012-16 The Processing Foundation
|
|
||||||
|
Copyright (c) 2012-19 The Processing Foundation
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License version 2
|
it under the terms of the GNU General Public License version 2
|
||||||
|
|||||||
Reference in New Issue
Block a user