Standard prototypes are now correctly constructed even if
the directories don't exist.
This commit is contained in:
parent
6c883367e7
commit
17b82f0d43
1 changed files with 41 additions and 40 deletions
|
@ -129,6 +129,7 @@ public class TypeManager {
|
|||
String pname = (String) it.next();
|
||||
if (prototypes.get (pname) == null) {
|
||||
Prototype proto = new Prototype (pname, app);
|
||||
registerPrototype (pname, new File (appDir, pname), proto, false);
|
||||
prototypes.put (pname, proto);
|
||||
}
|
||||
}
|
||||
|
@ -221,14 +222,14 @@ public class TypeManager {
|
|||
// show the type checker thread that there has been type activity
|
||||
idleSeconds = 0;
|
||||
|
||||
String list[] = dir.list();
|
||||
HashMap ntemp = new HashMap ();
|
||||
HashMap nfunc = new HashMap ();
|
||||
HashMap nact = new HashMap ();
|
||||
HashMap nskins = new HashMap ();
|
||||
HashMap updatables = new HashMap (list.length);
|
||||
HashMap updatables = new HashMap ();
|
||||
|
||||
if (update) {
|
||||
String list[] = dir.list();
|
||||
for (int i=0; i<list.length; i++) {
|
||||
File tmpfile = new File (dir, list[i]);
|
||||
int dot = list[i].indexOf (".");
|
||||
|
|
Loading…
Add table
Reference in a new issue