~ubuntu-branches/ubuntu/jaunty/electric/jaunty

« back to all changes in this revision

Viewing changes to com/sun/electric/database/hierarchy/Library.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2009-01-08 02:05:08 UTC
  • mfrom: (1.1.2 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090108020508-0h3li7zt9mu5gf0i
Tags: 8.08-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    /** Last backup of this Library */                      LibraryBackup backup;
87
87
        /** list of Cells in this library */                                    final TreeMap<CellName,Cell> cells = new TreeMap<CellName,Cell>();
88
88
        /** Preference for cell currently being edited */               private Pref curCellPref;
89
 
    /** preferences for this library */                     Preferences prefs;
 
89
    /** preferences for this library */                     final Preferences prefs;
 
90
    /** preferences group for this library */               private final Pref.Group prefsGroup;
90
91
    /** DELIB cell files. */                                private HashSet<String> delibCellFiles = new HashSet<String>();
91
92
 
92
93
        /** preferences for all libraries */                                    private static Preferences allPrefs = null;
105
106
                if (allPrefs == null) allPrefs = Preferences.userNodeForPackage(getClass());
106
107
        prefs = allPrefs.node(getName());
107
108
        prefs.put("LIB", getName());
 
109
        prefsGroup = new Pref.Group(prefs);
108
110
        }
109
111
 
110
112
        /**
458
460
            // no instance that would create reference found, ok to remove reference
459
461
            synchronized(referencedLibs) {
460
462
                referencedLibs.remove(lib);
461
 
                updateBackup(d, backup.modified, backup.referencedLibs);
 
463
                updateBackup(d, backup.modified, backupReferencedLibs(backup.referencedLibs));
462
464
            }
463
465
        }
464
466
    }
830
832
         * Method to get the Preferences associated with this Library.
831
833
         * @return the Preferences associated with this Library.
832
834
         */
833
 
        public Preferences getPrefs() { return prefs; }
 
835
        public Pref.Group getPrefs() { return prefsGroup; }
834
836
 
835
837
        /**
836
838
         * Low-level method to get the user bits.
1019
1021
        {
1020
1022
                if (curCellPref == null)
1021
1023
                {
1022
 
                        curCellPref = Pref.makeStringPref("CurrentCell", prefs, "");
 
1024
                        curCellPref = Pref.makeStringPref("CurrentCell", getPrefs(), "");
1023
1025
                }
1024
1026
 
1025
1027
        }
1107
1109
 
1108
1110
            Cell onlyWithName = null;
1109
1111
            for (Cell c : cells.values()) {
1110
 
                if (!n.getName().equalsIgnoreCase(c.getName())) continue;
 
1112
                if (!n.getName().equals(c.getName())) continue;
 
1113
//                if (!n.getName().equalsIgnoreCase(c.getName())) continue;
1111
1114
                onlyWithName = c;
1112
1115
                if (n.getView() != c.getView()) continue;
1113
1116
                if (n.getVersion() > 0 && n.getVersion() != c.getVersion()) continue;