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(), D... | 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(), D... | 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(), D... | 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(), D... | 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(); ... | protected final void verifyInvoke(VmConstMethodRef methodRef) { if (currentKernelSpace || currentUninterruptible) { // May only call methods with kernelspace pragma. methodRef.resolve(currentMethod.getDeclaringClass().getLoader()); final VmMethod callee = methodRe... | 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(); ... | 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(); ... | 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.removeElemen... | 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.removeElem... | 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.removeElemen... | 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.removeElem... | 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) { ... | 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) { ... | 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) { ... | 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) { ... | 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) { ... | 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) { ... | 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) { ... | 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) { ... | 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 = Do... | 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 = Do... | 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(r... | 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(r... | 10,249 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | 10,250 |
ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | 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) ... | 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) ... | 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) ... | 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) ... | 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++) { ... | 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++) { ... | 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; c... | 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.s... | 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])); } // p... | 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])); } // p... | 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])); } // p... | 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 (nodeListe... | 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 (" ... | 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 P... | 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"); pur... | 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"); pur... | 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.