bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
|
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
| 10,168
|
public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; }
|
public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; }
| 10,169
|
public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; }
|
public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; }
| 10,170
|
public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; }
|
public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; }
| 10,171
|
public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; }
|
public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; }
| 10,172
|
public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; }
|
public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; }
| 10,173
|
public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; }
|
public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; }
| 10,174
|
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); }
|
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); }
| 10,175
|
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); }
|
public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); }
| 10,176
|
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; }
|
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; }
| 10,177
|
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; }
|
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; }
| 10,178
|
public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; }
|
public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; }
| 10,179
|
public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; }
|
public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; }
| 10,180
|
public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; }
|
public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; }
| 10,181
|
public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; }
|
public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; }
| 10,182
|
public String getText(int offset, int length) throws BadLocationException { return content.getString(offset, length); }
|
public String getText(int offset, int length) throws BadLocationException { return content.getString(offset, length); }
| 10,183
|
public UndoableEditListener[] getUndoableEditListeners() { return (UndoableEditListener[]) getListeners(UndoableEditListener.class); }
|
public UndoableEditListener[] getUndoableEditListeners() { return (UndoableEditListener[]) getListeners(UndoableEditListener.class); }
| 10,184
|
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event); }
|
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event); }
| 10,185
|
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event); }
|
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), DocumentEvent.EventType.INSERT); content.insertString(offset, text); insertUpdate(event, attributes); fireInsertUpdate(event); }
| 10,186
|
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. }
|
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. }
| 10,187
|
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. }
|
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. }
| 10,188
|
protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. }
|
protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. }
| 10,189
|
protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. }
|
protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. }
| 10,190
|
public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); }
|
public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); }
| 10,191
|
public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); }
|
public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); }
| 10,192
|
public void readLock() { }
|
public void readLock() { }
| 10,193
|
public void readUnlock() { }
|
public void readUnlock() { }
| 10,194
|
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
|
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
| 10,195
|
public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); }
|
public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); }
| 10,196
|
public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); }
|
public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); }
| 10,197
|
public void removeUndoableEditListener(UndoableEditListener listener) { listenerList.remove(UndoableEditListener.class, listener); }
|
public void removeUndoableEditListener(UndoableEditListener listener) { listenerList.remove(UndoableEditListener.class, listener); }
| 10,198
|
protected void removeUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may wish to override this. }
|
protected void removeUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may wish to override this. }
| 10,199
|
protected void removeUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may wish to override this. }
|
protected void removeUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may wish to override this. }
| 10,200
|
public void render(Runnable runnable) { // FIXME: Implement me! }
|
public void render(Runnable runnable) { // FIXME: Implement me! }
| 10,201
|
public void render(Runnable runnable) { // FIXME: Implement me! }
|
public void render(Runnable runnable) { // FIXME: Implement me! }
| 10,202
|
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { remove(offset, length); insertString(offset, text, attributes); }
|
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { remove(offset, length); insertString(offset, text, attributes); }
| 10,203
|
public void setAsynchronousLoadPriority(int p) { }
|
public void setAsynchronousLoadPriority(int p) { }
| 10,204
|
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = p; }
|
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = p; }
| 10,205
|
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = p; }
|
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = p; }
| 10,206
|
protected void writeLock() { // FIXME: Implement me. }
|
protected void writeLock() { // FIXME: Implement me. }
| 10,207
|
protected void writeLock() { // FIXME: Implement me. }
|
protected void writeLock() { // FIXME: Implement me. }
| 10,208
|
protected void writeUnlock() { // FIXME: Implement me. }
|
protected void writeUnlock() { // FIXME: Implement me. }
| 10,209
|
protected void writeUnlock() { // FIXME: Implement me. }
|
protected void writeUnlock() { // FIXME: Implement me. }
| 10,210
|
protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); if (!callee.hasKernelSpacePragma()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls method outside KernelSpace: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls method outside KernelSpace: " + callee.getFullName()); } if (callee.isSynchronized()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls synchronized method: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls synchronized method: " + callee.getFullName()); } } }
|
protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace || currentUninterruptible) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); if (!callee.hasKernelSpacePragma()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls method outside KernelSpace: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls method outside KernelSpace: " + callee.getFullName()); } if (callee.isSynchronized()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls synchronized method: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls synchronized method: " + callee.getFullName()); } } }
| 10,212
|
protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); if (!callee.hasKernelSpacePragma()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls method outside KernelSpace: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls method outside KernelSpace: " + callee.getFullName()); } if (callee.isSynchronized()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls synchronized method: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls synchronized method: " + callee.getFullName()); } } }
|
protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRef.getResolvedVmMethod(); if (!callee.hasKernelSpacePragma()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls method outside KernelSpace: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls method outside KernelSpace: " + callee.getFullName()); } if (callee.isSynchronized()) { //throw new ClassFormatError("Method '" + currentMethod + "' calls synchronized method: " + callee); System.out.println("Method '" + currentMethod.getFullName() + "' calls synchronized method: " + callee.getFullName()); } } }
| 10,213
|
public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected + 1); } list.removeElementAt(index); fireIntervalRemoved(this, index, index); }
|
public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) setSelectedItem(getElementAt(selected - 1)); else selectedItem = getElementAt(selected + 1); } list.removeElementAt(index); fireIntervalRemoved(this, index, index); }
| 10,214
|
public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else selectedItem = getElementAt(selected + 1); } list.removeElementAt(index); fireIntervalRemoved(this, index, index); }
|
public void removeElementAt(int index) { int selected = getIndexOf(selectedItem); if (selected == index) // choose a new selected item { if (selected > 0) selectedItem = getElementAt(selected - 1); else setSelectedItem(getElementAt(selected + 1)); } list.removeElementAt(index); fireIntervalRemoved(this, index, index); }
| 10,215
|
public boolean canDisplay (char c){ return peer.canDisplay (this, c); }
|
public boolean canDisplay (char c){ return peer.canDisplay (this, c); }
| 10,216
|
public int canDisplayUpTo (String s){ return peer.canDisplayUpTo (this, new StringCharacterIterator (s), 0, s.length () - 1);}
|
public int canDisplayUpTo (String s){ return peer.canDisplayUpTo (this, new StringCharacterIterator (s), 0, s.length () - 1);}
| 10,217
|
public static Font createFont (int fontFormat, InputStream is) throws FontFormatException, IOException{ return tk().createFont (fontFormat, is);}
|
public static Font createFont (int fontFormat, InputStream is) throws FontFormatException, IOException{ return tk().createFont (fontFormat, is);}
| 10,218
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
| 10,219
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch (NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
| 10,220
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
| 10,221
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
|
public static Font decode (String fontspec){ if (fontspec == null) fontspec = "Dialog-PLAIN-12"; String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "- "); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase().equals("BOLD")) { style = BOLD; continue; } if (token.toUpperCase().equals("ITALIC")) { style = ITALIC; continue; } if (token.toUpperCase().equals("BOLDITALIC")) { style = BOLD | ITALIC; continue; } int tokenval = 0; try { tokenval = Integer.parseInt(token); } catch(NumberFormatException e) { // Ignored. } if (tokenval != 0) size = tokenval; } HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); return getFontFromToolkit (name, attrs);}
| 10,222
|
public Map getAttributes (){ return peer.getAttributes (this);}
|
public Map getAttributes (){ return peer.getAttributes (this);}
| 10,223
|
public AttributedCharacterIterator.Attribute[] getAvailableAttributes(){ return peer.getAvailableAttributes (this);}
|
public AttributedCharacterIterator.Attribute[] getAvailableAttributes(){ return peer.getAvailableAttributes (this);}
| 10,224
|
public byte getBaselineFor (char c){ return peer.getBaselineFor (this, c);}
|
public byte getBaselineFor (char c){ return peer.getBaselineFor (this, c);}
| 10,225
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode (propval); return defval;}
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode (propval); return defval;}
| 10,226
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode (propval); return defval;}
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode(propval); return defval;}
| 10,227
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode (propval); return defval;}
|
public static Font getFont (String propname, Font defval){ String propval = System.getProperty(propname); if (propval != null) return decode (propval); return defval;}
| 10,228
|
static Font getFontFromToolkit(String name, Map attribs) { return tk ().getFont (name, attribs); }
|
static Font getFontFromToolkit(String name, Map attribs) { return tk ().getFont (name, attribs); }
| 10,229
|
public float getItalicAngle (){ return peer.getItalicAngle (this);}
|
public float getItalicAngle (){ return peer.getItalicAngle (this);}
| 10,230
|
public Rectangle2D getMaxCharBounds (FontRenderContext rc){ return peer.getMaxCharBounds (this, rc);}
|
public Rectangle2D getMaxCharBounds (FontRenderContext rc){ return peer.getMaxCharBounds (this, rc);}
| 10,231
|
public int getMissingGlyphCode (){ return peer.getMissingGlyphCode (this);}
|
public int getMissingGlyphCode (){ return peer.getMissingGlyphCode (this);}
| 10,232
|
public int getNumGlyphs (){ return peer.getMissingGlyphCode (this);}
|
public int getNumGlyphs (){ return peer.getMissingGlyphCode (this);}
| 10,233
|
public String getPSName (){ return peer.getPostScriptName (this);}
|
public String getPSName (){ return peer.getPostScriptName (this);}
| 10,234
|
public FontPeer getPeer (){ return peer;}
|
public FontPeer getPeer (){ return peer;}
| 10,235
|
public FontPeer getPeer (){ return peer;}
|
public FontPeer getPeer (){ return peer;}
| 10,236
|
static ClasspathFontPeer getPeerFromToolkit(String name, Map attrs) { return tk ().getClasspathFontPeer (name, attrs); }
|
static ClasspathFontPeer getPeerFromToolkit(String name, Map attrs) { return tk().getClasspathFontPeer(name, attrs); }
| 10,237
|
public boolean hasUniformLineMetrics (){ return peer.hasUniformLineMetrics (this);}
|
public boolean hasUniformLineMetrics (){ return peer.hasUniformLineMetrics (this);}
| 10,238
|
public int hashCode(){ return this.toString().hashCode();}
|
public int hashCode(){ return this.toString().hashCode();}
| 10,239
|
public int hashCode(){ return this.toString().hashCode();}
|
public int hashCode(){ return this.toString().hashCode();}
| 10,240
|
public boolean isBold (){ return peer.isBold (this);}
|
public boolean isBold (){ return peer.isBold (this);}
| 10,241
|
public boolean isItalic (){ return peer.isItalic (this);}
|
public boolean isItalic (){ return peer.isItalic (this);}
| 10,242
|
public boolean isPlain (){ return peer.isPlain (this); }
|
public boolean isPlain (){ return peer.isPlain (this); }
| 10,243
|
public boolean isTransformed (){ return peer.isTransformed (this);}
|
public boolean isTransformed (){ return peer.isTransformed (this);}
| 10,244
|
public GlyphVector layoutGlyphVector (FontRenderContext frc, char[] chars, int start, int limit, int flags){ return peer.layoutGlyphVector (this, frc, chars, start, limit, flags);}
|
public GlyphVector layoutGlyphVector(FontRenderContext frc, char[] chars, int start, int limit, int flags){ return peer.layoutGlyphVector (this, frc, chars, start, limit, flags);}
| 10,245
|
public GlyphVector layoutGlyphVector (FontRenderContext frc, char[] chars, int start, int limit, int flags){ return peer.layoutGlyphVector (this, frc, chars, start, limit, flags);}
|
public GlyphVector layoutGlyphVector (FontRenderContext frc, char[] chars, int start, int limit, int flags){ return peer.layoutGlyphVector (this, frc, chars, start, limit, flags);}
| 10,246
|
static final DoubleWordItem requestDoubleWordRegisters( EmitterContext eContext, int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register lsb = requestRegister(eContext, JvmType.INT, false); final Register msb = requestRegister(eContext, JvmType.INT, false); final DoubleWordItem result = DoubleWordItem.createReg(jvmType, lsb, msb); pool.transferOwnerTo(lsb, result); pool.transferOwnerTo(msb, result); return result; }
|
static final DoubleWordItem requestDoubleWordRegisters( EmitterContext eContext, int jvmType) { final X86RegisterPool pool = eContext.getPool(); final Register lsb = requestRegister(eContext, JvmType.INT, false); final Register msb = requestRegister(eContext, JvmType.INT, false); final DoubleWordItem result = DoubleWordItem.createReg(jvmType, lsb, msb); pool.transferOwnerTo(lsb, result); pool.transferOwnerTo(msb, result); return result; }
| 10,248
|
static final WordItem requestWordRegister(EmitterContext eContext, int jvmType, boolean supportsBits8) { final X86RegisterPool pool = eContext.getPool(); final Register reg = requestRegister(eContext, JvmType.INT, supportsBits8); final WordItem result = WordItem.createReg(jvmType, reg); pool.transferOwnerTo(reg, result); return result; }
|
static final WordItem requestWordRegister(EmitterContext eContext, int jvmType, boolean supportsBits8) { final X86RegisterPool pool = eContext.getPool(); final Register reg = requestRegister(eContext, JvmType.INT, supportsBits8); final WordItem result = WordItem.createReg(jvmType, reg); pool.transferOwnerTo(reg, result); return result; }
| 10,249
|
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } } }; }
|
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValues(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } } }; }
| 10,250
|
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } } }; }
|
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValues(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } } }; }
| 10,251
|
public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } }
|
public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValues(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } }
| 10,252
|
public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValue(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } }
|
public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) { // if the viewport changed, we should update the VSB / HSB // models according to the new vertical and horizontal sizes Rectangle vr = vp.getViewRect(); Dimension vs = vp.getViewSize(); if (vsb != null && (vsb.getMinimum() != 0 || vsb.getMaximum() != vs.height || vsb.getValue() != vr.y || vsb.getVisibleAmount() != vr.height)) vsb.setValue(vr.y, vr.height, 0, vs.height); if (hsb != null && (hsb.getMinimum() != 0 || hsb.getMaximum() != vs.width || hsb.getValue() != vr.width || hsb.getVisibleAmount() != vr.height)) hsb.setValues(vr.x, vr.width, 0, vs.width); } else { // otherwise we got a change update from either the VSB or // HSB model, and we need to update the viewport positions of // both the main viewport and any row or column headers to // match. int xpos = 0; int ypos = 0; if (vsb != null) ypos = vsb.getValue(); if (hsb != null) xpos = hsb.getValue(); Point pt = new Point(xpos, ypos); if (vp != null && vp.getViewPosition() != pt) vp.setViewPosition(pt); pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); } }
| 10,253
|
public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; }
|
public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; }
| 10,254
|
public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; }
|
public SwingListPeer(final List list) { super(); SwingToolkit.add(list, this); SwingToolkit.copyAwtProperties(list, this); final ListModel model = new AbstractListModel() { public int getSize() { return list.getItemCount(); } public Object getElementAt(int idx) { return list.getItem(idx); } }; }
| 10,255
|
public Object getElementAt(int idx) { return list.getItem(idx); }
|
public Object getElementAt(int idx) { return list.getItem(idx); }
| 10,256
|
public int getSize() { return list.getItemCount(); }
|
public int getSize() { return list.getItemCount(); }
| 10,257
|
public void addNodeChangeListener(NodeChangeListener listener) { // XXX }
|
public void addNodeChangeListener(NodeChangeListener listener) { // XXX }
| 10,258
|
public void addPreferenceChangeListener(PreferenceChangeListener listener) { // XXX }
|
public void addPreferenceChangeListener(PreferenceChangeListener listener) { // XXX }
| 10,259
|
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(new String[]{}); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this node again to access the childCache AbstractPreferences subNode; synchronized(this) { subNode = (AbstractPreferences) childCache.get(keys[i]); } // The child could already have been removed from the cache if (subNode != null) { subNode.flushNode(sync); } } } }
|
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(new String[]{}); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this node again to access the childCache AbstractPreferences subNode; synchronized(this) { subNode = (AbstractPreferences) childCache.get(keys[i]); } // The child could already have been removed from the cache if (subNode != null) { subNode.flushNode(sync); } } } }
| 10,260
|
private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; childPath = ""; } else { childName = path.substring(0, nextSlash); childPath = path.substring(nextSlash+1); } // Get the child node AbstractPreferences child; child = (AbstractPreferences)childCache.get(childName); if (child == null) { if (childName.length() > MAX_NAME_LENGTH) throw new IllegalArgumentException(childName); // Not in childCache yet so create a new sub node child = childSpi(childName); // XXX - check if node is new childCache.put(childName, child); } // Lock the child and go down synchronized(child.lock) { return child.getNode(childPath); } }
|
privatePreferencesgetNode(Stringpath){ //ifmarkisdomthengotoend //EmptyString""indicatesthisnode if(path.length()==0) returnthis; //Calculatechildnameandrestofpath StringchildName; StringchildPath; intnextSlash=path.indexOf('/'); if(nextSlash==-1){ childName=path; childPath=""; }else{ childName=path.substring(0,nextSlash);childPath=path.substring(nextSlash+1); } //Getthechildnode AbstractPreferenceschild;child=(AbstractPreferences)childCache.get(childName); if(child==null){ if(childName.length()>MAX_NAME_LENGTH) thrownewIllegalArgumentException(childName); //NotinchildCacheyetsocreateanewsubnode child=childSpi(childName); //XXX-checkifnodeisnew childCache.put(childName,child); } //Lockthechildandgodownsynchronized(child.lock){ returnchild.getNode(childPath); } }
| 10,261
|
private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // purge all children Iterator i = childCache.values().iterator(); while (i.hasNext()) { AbstractPreferences node = (AbstractPreferences) i.next(); synchronized(node) { node.purge(); } } // Cache is empty now childCache.clear(); // remove this node removeNodeSpi(); removed = true; // XXX - check for listeners }
|
private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // purge all children Iterator i = childCache.values().iterator(); while (i.hasNext()) { AbstractPreferences node = (AbstractPreferences) i.next(); synchronized(node) { node.purge(); } } // Cache is empty now childCache.clear(); // remove this node removeNodeSpi(); removed = true; // XXX - check for listeners }
| 10,263
|
private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // purge all children Iterator i = childCache.values().iterator(); while (i.hasNext()) { AbstractPreferences node = (AbstractPreferences) i.next(); synchronized(node) { node.purge(); } } // Cache is empty now childCache.clear(); // remove this node removeNodeSpi(); removed = true; // XXX - check for listeners }
|
if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); privateif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); voidif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); purge()if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); throwsif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); BackingStoreExceptionif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); { //if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); Makeif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); sureif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); allif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); childrenif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); haveif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); anif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); AbstractPreferencesif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); nodeif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); inif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); cache Stringif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); children[]if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); =if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); childrenNamesSpi(); forif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); (intif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); iif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); =if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); 0;if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); iif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); <if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); children.length;if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); i++)if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); { ifif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); (childCache.get(children[i])if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); ==if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); null) childCache.put(children[i],if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); childSpi(children[i])); } //if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); purgeif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); allif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); children Iteratorif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); iif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); =if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); childCache.values().iterator(); whileif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); (i.hasNext())if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); { AbstractPreferencesif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); nodeif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); =if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); (AbstractPreferences)if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); i.next();if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); synchronized(node)if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); { node.purge(); } } //if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); Cacheif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); isif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); emptyif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); now childCache.clear(); //if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); removeif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); thisif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); node removeNodeSpi(); removedif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); =if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); true; //if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); XXXif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); -if (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); checkif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); forif (nodeListeners != null) fire(new NodeChangeEvent(parent, this), false); listeners }
| 10,264
|
public void put(String key, String value) { if (key.length() > MAX_KEY_LENGTH || value.length() > MAX_VALUE_LENGTH) throw new IllegalArgumentException("key (" + key.length() + ")" + " or value (" + value.length() + ")" + " to large"); synchronized(lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); putSpi(key, value); // XXX - fire events } }
|
publicif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); voidif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); put(Stringif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); key,if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); Stringif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); value)if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); {if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ifif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); (key.length()if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); >if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); MAX_KEY_LENGTHif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ||if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); value.length()if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); >if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); MAX_VALUE_LENGTH)if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); throwif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); newif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); IllegalArgumentException("keyif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ("if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); key.length()if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ")"if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); "if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); orif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); valueif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ("if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); value.length()if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); ")"if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); +if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); "if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); toif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); large");if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); synchronized(lock)if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); { ifif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); (isRemoved()) throwif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); newif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); IllegalStateException("Nodeif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); removed"); putSpi(key,if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); value); //if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); XXXif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); -if (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); fireif (preferenceListeners != null) fire(new PreferenceChangeEvent(this, key, value)); events } }
| 10,265
|
public void putBoolean(String key, boolean value) { put(key, String.valueOf(value)); // XXX - Use when using 1.4 compatible Boolean // put(key, Boolean.toString(value)); }
|
public void putBoolean(String key, boolean value) { put(key, String.valueOf(value)); // XXX - Use when using 1.4 compatible Boolean // put(key, Boolean.toString(value)); }
| 10,266
|
public void removeNode() throws BackingStoreException { // Check if it is a root node if (parent == null) throw new UnsupportedOperationException("Cannot remove root node"); synchronized(parent) { synchronized(this) { if (isRemoved()) throw new IllegalStateException("Node Removed"); purge(); } parent.childCache.remove(name); } }
|
public void removeNode() throws BackingStoreException { // Check if it is a root node if (parent == null) throw new UnsupportedOperationException("Cannot remove root node"); synchronized(parent) { synchronized(this) { if (isRemoved()) throw new IllegalStateException("Node Removed"); purge(); } parent.childCache.remove(name); } }
| 10,268
|
public void removeNodeChangeListener(NodeChangeListener listener) { // XXX }
|
public void removeNodeChangeListener(NodeChangeListener listener) { // XXX }
| 10,269
|
public void removePreferenceChangeListener (PreferenceChangeListener listener) { // XXX }
|
public void removePreferenceChangeListener (PreferenceChangeListener listener) { // XXX }
| 10,270
|
public void removePreferenceChangeListener (PreferenceChangeListener listener) { // XXX }
|
public void removePreferenceChangeListener (PreferenceChangeListener listener) { // XXX }
| 10,271
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.