Static boolean added to Base to disable the library manager.

This commit is contained in:
pesckal
2011-06-17 07:26:09 +00:00
parent c2cd09d0f2
commit e153723448
2 changed files with 10 additions and 7 deletions
+1
View File
@@ -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>();
+9 -7
View File
@@ -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() {