/** A lookup attaches to this object. */ final synchronized void attach (AbstractLookup al) { if (this.al == null) { this.al = al; if (earlyPairs != null) { // we must just add no override! Pair[] p = (Pair[]) earlyPairs.toArray(new Pair[earlyPairs.size()]); for (int i = 0; i<p.length; i++) { addPair(p[i]); } } earlyPairs = null; } else { throw new IllegalStateException ("Trying to use content for " + al + " but it is already used for " + this.al); // NOI18N } }
/** A lookup attaches to this object. */ final synchronized void attach (AbstractLookup al) { if (this.al == null) { this.al = al; if (earlyPairs != null) { // we must just add no override! Pair[] p = (Pair[]) earlyPairs.toArray(new Pair[earlyPairs.size()]); for (int i = 0; i<p.length; i++) { addPair(p[i]); } } earlyPairs = null; } else { throw new IllegalStateException ("Trying to use content for " + al + " but it is already used for " + this.al); // NOI18N } }
AbstractLookup.Content c = new AbstractLookup.Content(); AbstractLookup l = new AbstractLookup(c); c.addPair (new NoNodesPair ()); setLookups (new Lookup[] { l, actionMap }); return;
AbstractLookup.Content c = new AbstractLookup.Content(); AbstractLookup l = new AbstractLookup(c); c.addPair (new NoNodesPair ()); setLookups (new Lookup[] { l, actionMap }); return;