bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ... | protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ... | 14,633 |
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; } | protected boolean isToggleEvent(MouseEvent event) { // FIXME: Not implemented. return true; } | 14,634 |
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; } | protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. boolean toggle = false; if (SwingUtilities.isLeftMouseButton(event)) { int clickCount = tree.getToggleClickCount(); if (clickCount > 0 && event.getClickCount() == clickCount) toggle = true; } return t... | 14,635 |
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. } | protected void prepareForUIInstall() { // TODO: Implement this properly. } | 14,636 |
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. } | protected void prepareForUIUninstall() { // TODO: Implement this properly. } | 14,638 |
protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { // The event selects or unselects the clicked row. if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); ... | protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { // The event selects or unselects the clicked row. if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); ... | 14,639 |
protected void setModel(TreeModel model) { tree.setModel(model); treeModel = tree.getModel(); treeState.setModel(treeModel); } | protected void setModel(TreeModel model) { completeEditing(); if (treeModel != null && treeModelListener != null) treeModel.removeTreeModelListener(treeModelListener); treeModel = tree.getModel(); treeState.setModel(treeModel); } | 14,640 |
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); } | protected void setShowsRootHandles(boolean newValue) { completeEditing(); updateDepthOffset(); if (treeState != null) { treeState.invalidateSizes(); updateSize(); } } | 14,642 |
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; uninstallComponents(); completeUIUninstall(); } | public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); uninstallComponents(); completeUIUninstall(); } | 14,643 |
protected void updateLayoutCacheExpandedNodes() { if (treeModel != null) updateExpandedDescendants(new TreePath(treeModel.getRoot())); } | protected void updateLayoutCacheExpandedNodes() { if (treeModel != null && treeModel.getRoot() != null) updateExpandedDescendants(new TreePath(treeModel.getRoot())); } | 14,644 |
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); } | public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } | 14,647 |
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,... | public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,... | 14,648 |
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } | public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } | 14,649 |
public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); } | public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); } | 14,650 |
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ... | public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ... | 14,651 |
protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } } | protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } } | 14,652 |
static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h, Color light, Color dark) { //if (g instanceof Graphics2D) if (false /* we don't have propper g2d in jnode yet, use the simple graphics here*/ && g instanceof Graphics2D) fillMetalPat... | static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h, Color light, Color dark) { //if (g instanceof Graphics2D) if (false /* we don't have propper g2d in jnode yet, use the simple graphics here*/ && g instanceof Graphics2D) fillMetalPat... | 14,653 |
public void write_value(Serializable value) { ValueBaseHelper.write(this, value); } | public void write_value(Serializable value) { Vio.write(this, value); } | 14,654 |
public String getCharsetName () { return getMessage (); } | public String getCharsetName () { return charsetName; } | 14,655 |
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } } | public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomDOMException e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } } | 14,656 |
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } } | public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DOMException.NOT_FOUND_ERR) { throw e; } } } | 14,657 |
public void removeAttributeNS(String namespace, String localPart) { if (attributes == null) { throw new DomEx(DomEx.NOT_FOUND_ERR, localPart, null, 0); } attributes.removeNamedItemNS (namespace, localPart); } | public void removeAttributeNS(String namespace, String localPart) { if (attributes == null) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, localPart, null, 0); } attributes.removeNamedItemNS (namespace, localPart); } | 14,658 |
public Attr removeAttributeNode(Attr node) { if (attributes == null) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, node, 0); } return (Attr) attributes.removeNamedItem(node.getNodeName()); } | public Attr removeAttributeNode(Attr node) { if (attributes == null) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, node, 0); } return (Attr) attributes.removeNamedItem(node.getNodeName()); } | 14,659 |
public void setAttributeNS(String uri, String aname, String value) { if (("xmlns".equals (aname) || aname.startsWith ("xmlns:")) && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals (uri)) { throw new DomEx(DomEx.NAMESPACE_ERR, "setting xmlns attribute to illegal value", this, ... | public void setAttributeNS(String uri, String aname, String value) { if (("xmlns".equals (aname) || aname.startsWith ("xmlns:")) && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals (uri)) { throw new DomDOMException(DOMException.NAMESPACE_ERR, "setting xmlns attribute to illeg... | 14,660 |
public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (isId) { if (userIdAttrs == null) ... | public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (isId) { if (userIdA... | 14,661 |
public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (isId) { if (userIdAttrs == null) ... | public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomDOMException(DOMException.NOT_FOUND_ERR); } if (isId) { if (userIdA... | 14,662 |
public DefaultBoundedRangeModel() { setRangeProperties(0, 0, 0, 100, false); } // DefaultBoundedRangeModel() | public DefaultBoundedRangeModel() { setRangeProperties(0, 0, 0, 100, false); } // DefaultBoundedRangeModel() | 14,663 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listener... | protected void fireStateChanged() { Object[] listeners; // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (Chan... | 14,664 |
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listener... | protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listener... | 14,665 |
public EventListener[] getListeners(Class c) { return listenerList.getListeners(c); } // getListeners() | public EventListener[] getListeners(Class c) { return listenerList.getListeners(c); } // getListeners() | 14,666 |
public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent() | public void setExtent(int extent) { extent = Math.max(extent, 0); if (value + extent > maximum) extent = maximum - value; // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set ... | 14,667 |
public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent() | public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent() | 14,668 |
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaxim... | public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaxim... | 14,669 |
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaxim... | public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum minimum = Math.min(this.minimum, maximum); extent = Math.min(this.extent, m... | 14,670 |
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaxim... | public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaxim... | 14,671 |
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setM... | public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setM... | 14,672 |
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setM... | public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); maximum = Math.max(minimum, this.maximum); value = Math.max(minimum, this.value); setRangePropertie... | 14,673 |
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = valu... | public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = valu... | 14,674 |
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = valu... | public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = valu... | 14,675 |
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue() | public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue() | 14,676 |
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue() | public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue() | 14,677 |
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting() | public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting() | 14,678 |
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting() | public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting() | 14,679 |
public String toString() { return null; // TODO } // toString() | public String toString() { return null; // TODO } // toString() | 14,680 |
public Process exec(String[] cmdarray, String[] envp) throws IOException { String command = cmdarray[0]; SecurityManager s = System.getSecurityManager(); if (s != null) s.checkExec(command); if (envp == null) { envp = new String[0]; } String mainClassName = cmdarray[0]; String[] cmdArgs = new String[cmdarra... | public Process exec(String[] cmdarray, String[] envp) throws IOException { String command = cmdarray[0]; SecurityManager s = System.getSecurityManager(); if (s != null) s.checkExec(command); if (envp == null) { envp = new String[0]; } String mainClassName = cmdarray[0]; String[] cmdArgs = new String[cmdarra... | 14,681 |
static void write(OutputStream ostream, short value) { ostream.write_short(value); } | public static void write(OutputStream ostream, short value) { ostream.write_short(value); } | 14,682 |
private void defineLabel(String label, X86Assembler asm) { try { Label lab = new Label(label); labels.put(label, lab); NativeStream.ObjectRef ref = asm.setObjectRef(lab); assembler.putConstant(label, ref.getOffset()); } catch (Exception e) { e.pri... | private void defineLabel(String label, X86Assembler asm) { try { Label lab = new Label(label); labels.put(label, lab); NativeStream.ObjectRef ref = asm.setObjectRef(lab); assembler.putConstant(label, ref.getOffset() + (int)asm.getBaseAddr()); } catch (Except... | 14,683 |
public DefaultTextField(Border border) { this.border = border; } | public DefaultTextField(Border aBorder) { this.border = border; } | 14,684 |
public DefaultTextField(Border border) { this.border = border; } | public DefaultTextField(Border border) { border = aBorder; } | 14,685 |
public void doLayout() { if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout(); } | public void doLayout() { if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout(); } | 14,686 |
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | 14,687 |
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; ... | 14,688 |
public void actionPerformed(ActionEvent e) { if (lastPath != null && tPath != null && tPath.equals(lastPath)) { tree.startEditingAtPath(lastPath); timer.stop(); } } | public void actionPerformed(ActionEvent e) { if (lastPath != null && tPath != null && tPath.equals(lastPath)) { tree.startEditingAtPath(lastPath); timer.stop(); } } | 14,689 |
public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } } | public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } } | 14,690 |
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; } | protected TreeCellEditor createTreeCellEditor() { DefaultCellEditor editor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; } | 14,692 |
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; } | protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); editor.addCellEditorListener(new RealEditorListener()); editor.setClickCountToStart(CLICK_COUNT_TO_STA... | 14,693 |
public Object getCellEditorValue() { return editingComponent; } | public Object getCellEditorValue() { return realEditor.getCellEditorValue(); } | 14,694 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEditor... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getT... | 14,695 |
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently... | public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently... | 14,696 |
protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); } | protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); } | 14,698 |
public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { timer.stop(); return true; } return false; } | public boolean stopCellEditing() { if (editingComponent != null) { timer.stop(); return true; } return false; } | 14,699 |
public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { timer.stop(); return true; } return false; } | public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; } | 14,700 |
public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); configureEditingComponent(tree, renderer, realEditor); } | public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); } | 14,701 |
protected String paramString() { return "JCheckBox"; } | protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; } | 14,702 |
public int getNumGlyphs() { return peer.getMissingGlyphCode(this); } | public int getNumGlyphs() { return peer.getNumGlyphs(this); } | 14,703 |
Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, gnuPOA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; } | Obj(gnuServantObject _object, byte[] _key, Servant _servant, gnuPOA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; } | 14,704 |
private final void resolve8(int addr, int offset) { final int distance = offset - get8(addr); if (!X86Utils.isByte(distance)) { throw new IllegalArgumentException("Jump out of byte-range (" + distance + ")"); } if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe... | private final void resolve8(int addr, int offset) { final int distance = offset - addr - 1; if (!X86Utils.isByte(distance)) { throw new IllegalArgumentException("Jump out of byte-range (" + distance + ")"); } if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe9)... | 14,705 |
protected void createDefaultTheme() { setCurrentTheme(new OceanTheme()); } | protected void createDefaultTheme() { setCurrentTheme(new DefaultMetalTheme()); } | 14,706 |
public String getUIClassID() { // Returns a string that specifies the name of the l&f class that renders this component. return "JTextComponent"; } | public String getUIClassID() { // Returns a string that specifies the name of the l&f class that renders this component. return "TextComponentUI"; } | 14,707 |
public List<VmInterpretedExceptionHandler> getExceptionHandlers() { if (eTable == null) { return Collections.EMPTY_LIST; } else { return Arrays.asList(eTable); } } | public List<VmInterpretedExceptionHandler> getExceptionHandlers() { if (eTable == null) { return Collections.emptyList(); } else { return Arrays.asList(eTable); } } | 14,708 |
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { if (context == null) context = new ColorPaintContext(value);... | public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { if (context == null) context = new ColorPaintContext(value);... | 14,709 |
public int getAlpha() { // Do not inline getRGB() to value, because of SystemColor. return (getRGB() & ALPHA_MASK) >> 24; } | public int getAlpha() { // Do not inline getRGB() to value, because of SystemColor. return (getRGB() & ALPHA_MASK) >>> 24; } | 14,710 |
public String toString() { return getClass().getName() + "(top=" + top + ",bottom=" + bottom + ",left=" + left + ",right=" + right + ')'; } | public String toString() { return getClass().getName() + "(top=" + top + ",bottom=" + bottom + ",left=" + left + ",right=" + right + ')'; } | 14,711 |
public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); } | public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); } | 14,712 |
public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); } | public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); } | 14,713 |
public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); } | public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); } | 14,714 |
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... | public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) { throw new SAXNotSupportedException("alre... | 14,715 |
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... | public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... | 14,716 |
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... | public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("alrea... | 14,717 |
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; boolean read = ((mode & FileChannelImpl.READ) == FileChannelImpl.READ); boolean write = ((mode & FileChannelImpl.WRITE) == FileChannelImpl.WRITE); boolean append = ((mode... | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; boolean read = ((mode & FileChannelImpl.READ) == FileChannelImpl.READ); boolean write = ((mode & FileChannelImpl.WRITE) == FileChannelImpl.WRITE); boolean append = ((mode... | 14,719 |
public String toString() { return "" + m; } | public String toString() { if (this == READ_ONLY) return "READ_ONLY"; else if (this == READ_WRITE) return "READ_WRITE"; return "PRIVATE"; } | 14,722 |
protected void addImpl(Component c, Object constraints, int index) { // TODO } // addImpl() | protected void addImpl(Component c, Object constraints, int index) { if (!isAncestorOf(c)) { super.addImpl(c, constraints, index); } // TODO } // addImpl() | 14,735 |
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // TODO } // paintComponent() | public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { addImpl(c, null, 0); graphics.translate(x, y); c.setBounds(0, 0, w, h); if (shouldValidate) { c.validate(); } c.paint(graphics); graphics.translate(-x, -y); // TODO } // paintC... | 14,736 |
public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,737 |
public DynAny create_dyn_any(org.omg.CORBA.Any a) { throw new NO_IMPLEMENT(); }; | public DynAny create_dyn_any(org.omg.CORBA.Any a) { throw new NO_IMPLEMENT(); } | 14,738 |
public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,739 |
public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,740 |
public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,741 |
public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,742 |
public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }; | public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 14,743 |
public abstract void setTransform(AffineTransform Tx); | public abstract void setTransform(AffineTransform transform); | 14,744 |
public abstract void transform(AffineTransform Tx); | public abstract void transform(AffineTransform transform); | 14,745 |
public Object getParameter(String name) throws DOMException { if ("discard-default-content".equals(name)) { return discardDefaultContent ? "true" : "false"; } else if ("xml-declaration".equals(name)) { return xmlDeclaration ? "true" : "false"; } else { throw ... | public Object getParameter(String name) throws DOMException { if ("discard-default-content".equals(name)) { return discardDefaultContent ? "true" : "false"; } else if ("xml-declaration".equals(name)) { return xmlDeclaration ? "true" : "false"; } else { throw ... | 14,746 |
public void setParameter(String name, Object value) throws DOMException { if ("discard-default-content".equals(name)) { discardDefaultContent = "true".equals(value.toString()); } else if ("xml-declaration".equals(name)) { xmlDeclaration = "false".equals(value.toString()); }... | public void setParameter(String name, Object value) throws DOMException { if ("discard-default-content".equals(name)) { discardDefaultContent = "true".equals(value.toString()); } else if ("xml-declaration".equals(name)) { xmlDeclaration = "false".equals(value.toString()); }... | 14,747 |
public boolean write(Node node, LSOutput output) throws LSException { OutputStream out = output.getByteStream(); try { if (out == null) { String systemId = output.getSystemId(); try { URL url = new URL(systemId); URLConnec... | public boolean write(Node node, LSOutput output) throws LSException { OutputStream out = output.getByteStream(); try { if (out == null) { String systemId = output.getSystemId(); try { URL url = new URL(systemId); URLConnec... | 14,748 |
protected void paintComponent(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(Color.WHITE); for (int i = 0; i < SCREEN_HEIGHT; i++) { int offset = i * SCREEN_WIDTH; int lenght = SCREEN_WIDT... | protected void paintComponent(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(Color.WHITE); for (int i = 0; i < SCREEN_HEIGHT; i++) { int offset = i * SCREEN_WIDTH; int lenght = SCREEN_WIDT... | 14,749 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | public boolean matches(Node node, int pos, int len) switch (node.getNodeType()) case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(n... | 14,750 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | 14,751 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | 14,752 |
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals... | 14,753 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.