mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Static boolean added to Base to disable the library manager.
This commit is contained in:
@@ -53,6 +53,7 @@ public class Base {
|
||||
/** True if heavy debugging error/log messages are enabled */
|
||||
static public boolean DEBUG = false;
|
||||
// static public boolean DEBUG = true;
|
||||
static public boolean ENABLE_LIBRARY_MANAGER = false;
|
||||
|
||||
static HashMap<Integer, String> platformNames =
|
||||
new HashMap<Integer, String>();
|
||||
|
||||
@@ -800,13 +800,15 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
sketchMenu.add(mode.getImportMenu());
|
||||
|
||||
item = new JMenuItem("Install Library...");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
base.handleAddOrRemoveLibrary();
|
||||
}
|
||||
});
|
||||
sketchMenu.add(item);
|
||||
if (Base.ENABLE_LIBRARY_MANAGER) {
|
||||
item = new JMenuItem("Install Library...");
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
base.handleAddOrRemoveLibrary();
|
||||
}
|
||||
});
|
||||
sketchMenu.add(item);
|
||||
}
|
||||
|
||||
item = Base.newJMenuItem("Show Sketch Folder", 'K');
|
||||
item.addActionListener(new ActionListener() {
|
||||
|
||||
Reference in New Issue
Block a user