rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if ( (attrib=getCount()) !=null) writeOut( outputstream, " count=\"" + attrib + "\""); | if ( (attrib=getCount()) !=null) { writeOut( outputstream, " count=\""); writeOutAttribute(outputstream, ((Integer) attrib).toString()); writeOut(outputstream, "\""); } | protected void specificIOStyleToXDF( OutputStream outputstream, String indent) { synchronized (attribHash) { //open the node writeOut(outputstream, "<" + classXDFNodeName); //writeOutAttributes Object attrib=null; if ( (attrib=getCount()) !=null) writeOut( outputstream, " count=\"" ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/SkipCharFormattedIOCmd.java/clean/src/gov/nasa/gsfc/adc/xdf/SkipCharFormattedIOCmd.java |
writeOut(outputstream, " output=\"" + attrib + "\""); | { writeOut(outputstream, " output=\""); writeOutAttribute(outputstream, (String) attrib); writeOut(outputstream, "\""); } | protected void specificIOStyleToXDF( OutputStream outputstream, String indent) { synchronized (attribHash) { //open the node writeOut(outputstream, "<" + classXDFNodeName); //writeOutAttributes Object attrib=null; if ( (attrib=getCount()) !=null) writeOut( outputstream, " count=\"" ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/SkipCharFormattedIOCmd.java/clean/src/gov/nasa/gsfc/adc/xdf/SkipCharFormattedIOCmd.java |
public abstract PageFormat pageDialog(PageFormat page_format); | public abstract PageFormat pageDialog(PageFormat page_format) throws HeadlessException; | public abstract PageFormat pageDialog(PageFormat page_format); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e7ba6ccc0138cc0edd9484ef9d447008e8271fd1/PrinterJob.java/clean/core/src/classpath/java/java/awt/print/PrinterJob.java |
public abstract boolean printDialog(); | public abstract boolean printDialog() throws HeadlessException; | public abstract boolean printDialog(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e7ba6ccc0138cc0edd9484ef9d447008e8271fd1/PrinterJob.java/clean/core/src/classpath/java/java/awt/print/PrinterJob.java |
bad.minor = Minor.Any; | public static FormatMismatch extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (FormatMismatch) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("FormatMismatch expected"); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/FormatMismatchHelper.java/clean/core/src/classpath/org/org/omg/IOP/CodecPackage/FormatMismatchHelper.java | |
public RequestSenseData requestSense() throws SCSIException, | public SenseData requestSense() throws SCSIException, | public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af3e25629c7bca20276f004befd3b45af9fa6102/SCSITest.java/buggy/fs/src/test/org/jnode/test/fs/SCSITest.java |
return new RequestSenseData(data); | return new SenseData(data); | public RequestSenseData requestSense() throws SCSIException, TimeoutException, InterruptedException { final byte[] data = new byte[ 256]; final CDB cdb = new CDBRequestSense(data.length); api.executeCommand(cdb, data, 0, 5000); return new RequestSenseData(data); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af3e25629c7bca20276f004befd3b45af9fa6102/SCSITest.java/buggy/fs/src/test/org/jnode/test/fs/SCSITest.java |
System.out.println("getKeyStrokeText " + lastKeyMnemonic); | public final static String getKeyStrokeText(KeyEvent ke) { if (!workStroke.equals(ke)) { workStroke.setAttributes(ke); lastKeyMnemonic = (String)mappedKeys.get(workStroke); } System.out.println("getKeyStrokeText " + lastKeyMnemonic); return lastKeyMnemonic; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4ed35c78ee827f45bb5502203df2dec84e0fabe/KeyMapper.java/clean/tn5250j/src/org/tn5250j/tools/KeyMapper.java | |
if (locked) { throw new RuntimeException("Locked"); } | private final synchronized int alloc(byte type, int length) { final int idx = next; types[idx] = type; next += length; return idx; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
if (locked) { throw new RuntimeException("Locked"); } | final void setInt(int idx, int value) { if (types[idx] != TYPE_INT) { throw new IllegalArgumentException("Type error " + types[idx]); } statics[idx] = value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
if (locked) { throw new RuntimeException("Locked"); } | final void setLong(int idx, long value) { if (types[idx] != TYPE_LONG) { throw new IllegalArgumentException("Type error " + types[idx]); } if (lsbFirst) { statics[idx + 0] = (int) (value & 0xFFFFFFFFL); statics[idx + 1] = (int) ((value >>> 32) & 0xFFFFFFFFL); } else { statics[idx + 1] = (int) (value & 0xFF... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
if (locked) { throw new RuntimeException("Locked"); } | final void setMethod(int idx, VmMethod value) { if (types[idx] != TYPE_METHOD) { throw new IllegalArgumentException("Type error " + types[idx]); } setRawObject(idx, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
if (locked) { throw new RuntimeException("Locked"); } | final void setObject(int idx, Object value) { if (types[idx] != TYPE_OBJECT) { throw new IllegalArgumentException("Type error " + types[idx]); } setRawObject(idx, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
System.out.println("VmStatics#verifyBeforeEmit"); | System.out.println("VmStatics#verifyBeforeEmit " + slotLength + ", " + resolver); | public void verifyBeforeEmit() { System.out.println("VmStatics#verifyBeforeEmit"); final int max = statics.length; for (int i = 0; i < max; i++) { final Object value = objects[i]; if (value != null) { if (slotLength == 1) { statics[i] = resolver.addressOf32(value); } else { final long lvalue = res... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java |
objects = null; locked = true; System.out.println("VmStatics#verifyBeforeEmit count=" + count); | public void verifyBeforeEmit() { System.out.println("VmStatics#verifyBeforeEmit"); final int max = statics.length; for (int i = 0; i < max; i++) { final Object value = objects[i]; if (value != null) { if (slotLength == 1) { statics[i] = resolver.addressOf32(value); } else { final long lvalue = res... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c51b2252b587e401cd3a2b2e553206263541af7/VmStatics.java/clean/core/src/core/org/jnode/vm/classmgr/VmStatics.java | |
bad.minor = Minor.Any; | public static NameValuePair extract(Any any) { try { return ((NameValuePairHolder) any.extract_Streamable()).value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("NameValuePair expected"); bad.initCause(cex); throw bad; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NameValuePairHelper.java/buggy/core/src/classpath/org/org/omg/DynamicAny/NameValuePairHelper.java | |
bad.minor = Minor.Any; | public static NameComponent[] extract(Any a) { try { return ((NameHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Name expected"); bad.initCause(ex); throw bad; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NameHelper.java/clean/core/src/classpath/org/org/omg/CosNaming/NameHelper.java | |
if (! allowsChildren) throw new IllegalStateException(); | if (isNodeAncestor(child)) throw new IllegalArgumentException("Cannot add ancestor node."); | public void add(MutableTreeNode child) { if (child == null) throw new IllegalArgumentException(); if (! allowsChildren) throw new IllegalStateException(); children.add(child); child.setParent(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
try { return super.clone(); } catch (CloneNotSupportedException e) { return null; } | return new DefaultMutableTreeNode(this.userObject, this.allowsChildren); | public Object clone() { try { return super.clone(); // TODO: Do we need to do more here ? } catch (CloneNotSupportedException e) { // This never happens. return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
if (node == null || node.getParent() != this) | if (node == null || node.getParent() != this) | public TreeNode getChildAfter(TreeNode node) { if (node == null || node.getParent() != this) throw new IllegalArgumentException(); int index = getIndex(node) + 1; if (index == getChildCount()) return null; return getChildAt(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
if (node == null || node.getParent() != this) | if (node == null || node.getParent() != this) | public TreeNode getChildBefore(TreeNode node) { if (node == null || node.getParent() != this) throw new IllegalArgumentException(); int index = getIndex(node) - 1; if (index < 0) return null; return getChildAt(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
if (node == null) throw new IllegalArgumentException("Null 'node' argument."); | public int getIndex(TreeNode node) { return children.indexOf(node); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | |
if (parent == null) | DefaultMutableTreeNode sibling = getNextSibling(); if (sibling != null) return sibling.getFirstLeaf(); if (parent != null) return ((DefaultMutableTreeNode) parent).getNextLeaf(); | public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildAfter(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
return null; | public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildAfter(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | |
if (parent == null) return null; | DefaultMutableTreeNode sibling = getPreviousSibling(); if (sibling != null) return sibling.getLastLeaf(); if (parent != null) return ((DefaultMutableTreeNode) parent).getPreviousLeaf(); | public DefaultMutableTreeNode getPreviousLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildBefore(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
public DefaultMutableTreeNode getPreviousLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildBefore(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | ||
if (! allowsChildren) throw new IllegalStateException(); if (node == null) throw new IllegalArgumentException("Null 'node' argument."); if (isNodeAncestor(node)) throw new IllegalArgumentException("Cannot insert ancestor node."); | public void insert(MutableTreeNode node, int index) { children.insertElementAt(node, index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | |
while (current != null && current != node) | while (current != null && current != node) | public boolean isNodeAncestor(TreeNode node) { if (node == null) return false; TreeNode current = this; while (current != null && current != node) current = current.getParent(); return current == node; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
if (node == this) return true; | public boolean isNodeSibling(TreeNode node) { if (node == null) return false; return (node.getParent() == getParent() && getParent() != null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | |
children.remove(index); | MutableTreeNode child = (MutableTreeNode) children.remove(index); child.setParent(null); | public void remove(int index) { children.remove(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
children.removeAllElements(); | for (int i = getChildCount() - 1; i >= 0; i--) remove(i); | public void removeAllChildren() { children.removeAllElements(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java |
if (!allowsChildren) removeAllChildren(); | public void setAllowsChildren(boolean allowsChildren) { this.allowsChildren = allowsChildren; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | |
Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, height + ins.top + ins.bottom); | if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, height + ins.top + ins.bottom); } | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, heigh... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/417cdc0f9bdf9ed19e1cc7871345bef876ddcefc/SwingFramePeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingFramePeer.java |
componentToLayer = new Hashtable (); | componentToLayer = new Hashtable(); | public JLayeredPane() { componentToLayer = new Hashtable (); setLayout(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), | if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return null; | return new Rectangle(x, y, 0, 0); | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (!tree.isRootVisible() && tree.isExpanded(new TreePath(( (DefaultMutableTreeNode) mod.getRoot()).getPath()))) | if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(( (DefaultMutableTreeNode) mod.getRoot... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
&& tree.isExpanded(new TreePath(((DefaultMutableTreeNode) root) .getPath()))) | && tree.isExpanded(new TreePath(root))) | public Rectangle getPathBounds(JTree tree, TreePath path) { if (path != null) { Object cell = path.getLastPathComponent(); TreeModel mod = tree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode) mod.getRoot(); if (!tree.isRootVisible() && tree.isE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public int getRightChildIndent(int newAmount) | public int getRightChildIndent() | public int getRightChildIndent(int newAmount) { return rightChildIndent; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.expandPath(new TreePath(((DefaultMutableTreeNode) (tree.getModel()).getRoot()).getPath())); | tree.expandPath(new TreePath(tree.getModel().getRoot())); | public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; setModel(tree.getModel()); tree.setRootVisible(true); tree.expandPath(new TreePath(((DefaultMutableTreeNode) (tree.getModel()).getRoot()).getPath())); treeSelectionModel = tree.getSelectio... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); | tree.expandPath(new TreePath(root)); | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreePath lead = tree.getLeadSelectionPath(); if (lead != null && tree.isPathSelected(lead)) { Rectangle cell = getPathBounds(tree, lead); g.setColor(UIManager.getLookAndFeelDefaults().getColor( "Tree.selectionBorderColor")); g.drawRect(cell.x + rightChildIndent - 4, cell.y, cell.width + 4, cell.height); } | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(((DefaultMutableTreeNode) root) .getPath())); paintRecursive(g, 0, 0, 0, 0, tree... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
g.fillRect(cell.x + rightChildIndent - 4, cell.y, cell.width + 4, | g.fillRect(cell.x + icon.getIconWidth()/2, cell.y, cell.width, | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; if (tree.isVisible(curr)) { DefaultTreeCellRend... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
else rendererPane.paintComponent(g, c, c.getParent(), getCellBounds(x, y, node)); } | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(((DefaultMutableTreeNode) node).getPath()); boolean selected = tree.isPathSelected(curr); boolean expanded = false; if (tree.isVisible(curr)) { DefaultTreeCellRend... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.getCellEditor().removeCellEditorListener(cellEditorListener); | protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.getModel().removeTreeModelListener(treeModelListener); | TreeCellEditor tce = tree.getCellEditor(); if (tce != null) tce.removeCellEditorListener(cellEditorListener); TreeModel tm = tree.getModel(); if (tm != null) tm.removeTreeModelListener(treeModelListener); | protected void uninstallListeners() { tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionListener); tree.removeMouseListener(mouseInputListener); tree.removeKeyListener(keyListener); tree.removePropertyChangeListener(s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
throw new BAD_OPERATION(); | BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; | public static NotFound extract(Any a) { try { return ((NotFoundHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NotFoundHelper.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/NotFoundHelper.java |
StringWriter sw = new StringWriter(); jnasmppInput(new PrintWriter(sw)); ReInit(new StringReader(sw.toString())); | public void print(Writer w){ try{ jnasmppInput(new PrintWriter(w)); } catch (Exception pe){ pe.printStackTrace(); System.exit(-1); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e727d6606dc41007a4c8a634745258064e343d5f/Preprocessor.java/buggy/builder/src/builder/org/jnode/jnasm/preprocessor/Preprocessor.java | |
public Object getCellEditorValue() { // TODO: should be getting the updated value from the editorComp return value; } // getCellEditorValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java | ||
} | } | public Object getCellEditorValue() { // TODO: should be getting the updated value from the editorComp return value; } // getCellEditorValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public void setValue(Object value) | public void setValue(Object aValue) | public void setValue(Object value) { // TODO: should be setting the value in the editorComp this.value = value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
this.value = value; | value = aValue; | public void setValue(Object value) { // TODO: should be setting the value in the editorComp this.value = value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
} | } | public boolean shouldSelectCell(EventObject event) { // return true to indicate that the editing cell may be selected return true; } // shouldSelectCell() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
clickCountToStart = 3; | clickCountToStart = 2; delegate = new JTextFieldDelegate(); textfield.addActionListener(delegate); | public DefaultCellEditor(JTextField textfield) { editorComponent = textfield; clickCountToStart = 3; } // DefaultCellEditor() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
if (editorComponent instanceof JTextField) { ((JTextField)editorComponent).setText(value.toString()); delegate = new EditorDelegate(); ((JTextField)editorComponent).addActionListener(delegate); } else { } | delegate.setValue(value); | public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { // NOTE: as specified by Sun, we don't call new() everytime, we return // editorComponent on each call... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/DefaultCellEditor.java/buggy/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
String getDTDType(); | QName getDTDType(); | String getDTDType(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/Attribute.java/buggy/core/src/classpath/javax/javax/xml/stream/events/Attribute.java |
int [] idx = getSelectedIndices(); Object [] v = new Object[idx.length]; | int[] idx = getSelectedIndices(); Object[] v = new Object[idx.length]; | public Object[] getSelectedValues() { int [] idx = getSelectedIndices(); Object [] v = new Object[idx.length]; for (int i = 0; i < idx.length; ++i) v[i] = getModel().getElementAt(i); return v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java |
v[i] = getModel().getElementAt(i); | v[i] = getModel().getElementAt(idx[i]); | public Object[] getSelectedValues() { int [] idx = getSelectedIndices(); Object [] v = new Object[idx.length]; for (int i = 0; i < idx.length; ++i) v[i] = getModel().getElementAt(i); return v; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java |
tree.revalidate(); | public void editingCanceled(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) tree.remove(editingComponent.getParent()); editingComponent = null; if (cellEditor != null) { if (cellEditor i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.revalidate(); | public void editingStopped(ChangeEvent e) { editingPath = null; editingRow = -1; stopEditingInCompleteEditing = false; if (editingComponent != null) { tree.remove(editingComponent.getParent()); editingComponent = null; } if (cellEditor != null) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void propertyChange(PropertyChangeEvent event) { if ((event.getPropertyName()).equals("rootVisible")) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void treeExpanded(TreeExpansionEvent event) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void treeNodesChanged(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void treeNodesInserted(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); tree.revalidate(); | public void treeNodesRemoved(TreeModelEvent e) { validCachedPreferredSize = false; updateCurrentVisiblePath(); tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); | public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); updateCurrentVisiblePath(); validCachedPreferredSize = false; tree.revalidate(); tree.repai... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.revalidate(); | public void treeStructureChanged(TreeModelEvent e) { if (e.getPath().length == 1 && !e.getPath()[0].equals(treeModel.getRoot())) tree.expandPath(new TreePath(treeModel.getRoot())); updateCurrentVisiblePath(); validCachedPreferredSize = false; tree.revalidate(); tree.repai... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
TreePath path = new TreePath(mod.getRoot()); | Object root = mod.getRoot(); if (root != null) { TreePath path = new TreePath(root); | public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeMode... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeMode... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (currentVisiblePath == null) | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; if (currentVisiblePath == null) updateCurrentVisiblePath(); Rectangle clip = g.getClipBounds(); Insets insets = tree.getInsets(); if (clip != null && treeModel != null && currentVisiblePath != null) { int startIndex... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.revalidate(); | protected void pathWasCollapsed(TreePath path) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.revalidate(); | protected void pathWasExpanded(TreePath path) { validCachedPreferredSize = false; tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.revalidate(); | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); Tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
updateCurrentVisiblePath(); | protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); updateCurrentVisiblePath(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (next == null) return; | void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); TreePath rootPath = new TreePath(next); Rectangle bounds = getPathBounds(tree, rootPath); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
toolBar.setBorder(new ToolBarBorder()); | toolBar.setBorder(defaults.getBorder("ToolBar.border")); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); toolBar.setBorder(new ToolBarBorder()); toolBar.setBackground(defaults.getColor("ToolBar.background")); toolBar.setForeground(defaults.getColor("ToolBar.foreground")); toolBar.setFont(defaults.getFont("ToolBar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java |
if (tex instanceof SyntaxError) { | if (tex instanceof SyntaxErrorException) { | public void invoke(String cmdLineStr) { final CommandLine cmdLine = new CommandLine(cmdLineStr); if (!cmdLine.hasNext()) return; String cmdName = cmdLine.next(); commandShell.addCommandToHistory(cmdLineStr); // System.err.println("Got command: "+cmdLineStr+", name="+cmdName... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/DefaultCommandInvoker.java/buggy/shell/src/shell/org/jnode/shell/DefaultCommandInvoker.java |
private boolean loadConfig(String name) throws Exception {// boolean rc = false;// SMTPProperties = new java.util.Properties();// if (name == null || name == "")// name = ConfigureFactory.getInstance().settingsDirectory()// + "SMTPProperties.cfg";//// t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java | ||
if (from != null && from.length() > 0) msg.setFrom(new InternetAddress(from)); | if (from == null) from = SMTPProperties.getProperty("mail.smtp.from"); if (from != null && from.length() > 0) { pers = SMTPProperties.getProperty("mail.smtp.realname"); if (pers != null) msg.setFrom(new InternetAddress(from, pers)); } | public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
public boolean send() throws Exception { try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Multipart mp = new MimeMultipart();... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java | ||
for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; | if (ia != null) { for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; } | private void showFailedException(SendFailedException sfe) { String error = sfe.getMessage() + "\n"; Address[] ia = sfe.getInvalidAddresses(); for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; } JTextArea ea = new JTextArea(error,6,50); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
public HostNameArgument(String _name, String _description) | public HostNameArgument(String _name, String _description, boolean _multi) | public HostNameArgument(String _name, String _description) { super(_name, _description); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/HostNameArgument.java/buggy/net/src/net/org/jnode/net/command/HostNameArgument.java |
super(_name, _description); | super(_name, _description, _multi); | public HostNameArgument(String _name, String _description) { super(_name, _description); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/HostNameArgument.java/buggy/net/src/net/org/jnode/net/command/HostNameArgument.java |
public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java | ||
return; | return; | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
min = new Dimension(0, 0); | min = new Dimension(0, 0); | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
switch (direction) { case NORTH: cacheRect.setBounds(b.x, Math.min(b.y + y, b.y + b.height - min.height), b.width, b.height - y); break; case NORTH_EAST: cacheRect.setBounds(b.x, Math.min(b.y + y, b.y + b.height - min.height), x, b.height - y); break; case EAST: cacheRect.setBounds(b.x, b.y, x, b.height); break; case S... | switch (direction) { case NORTH: cacheRect.setBounds(b.x, Math.min(b.y + y, b.y + b.height - min.height), b.width, b.height - y); break; case NORTH_EAST: cacheRect.setBounds(b.x, Math.min(b.y + y, b.y + b.height - min.height), x, b.height - y); break; case EAST: cacheRect.setBounds(b.x, b.y, x, b.height); break; case S... | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
Rectangle fBounds = frame.getBounds(); | Rectangle fBounds = frame.getBounds(); | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
dm.dragFrame(frame, e.getX() - xOffset + b.x, e.getY() - yOffset + b.y); | dm.dragFrame(frame, e.getX() - xOffset + b.x, e.getY() - yOffset + b.y); | public void mouseDragged(MouseEvent e) { // If the frame is maximized, there is nothing that // can be dragged around. if (frame.isMaximum()) return; DesktopManager dm = getDesktopManager(); Rectangle b = frame.getBounds(); Dimension min = frame.getMinimumSize(); if (min == nu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
direction = sectionOfClick(x, y); dm.beginResizingFrame(frame, direction); | direction = sectionOfClick(x, y); dm.beginResizingFrame(frame, direction); | public void mousePressed(MouseEvent e) { activateFrame(frame); DesktopManager dm = getDesktopManager(); int x = e.getX(); int y = e.getY(); Insets insets = frame.getInsets(); if (e.getSource() == frame && frame.isResizable()) { direction = sectionOfClick(x, y); dm.beginRe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
Rectangle tBounds = titlePane.getBounds(); | Rectangle tBounds = titlePane.getBounds(); | public void mousePressed(MouseEvent e) { activateFrame(frame); DesktopManager dm = getDesktopManager(); int x = e.getX(); int y = e.getY(); Insets insets = frame.getInsets(); if (e.getSource() == frame && frame.isResizable()) { direction = sectionOfClick(x, y); dm.beginRe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
xOffset = e.getX() - tBounds.x + insets.left; yOffset = e.getY() - tBounds.y + insets.top; | xOffset = e.getX() - tBounds.x + insets.left; yOffset = e.getY() - tBounds.y + insets.top; | public void mousePressed(MouseEvent e) { activateFrame(frame); DesktopManager dm = getDesktopManager(); int x = e.getX(); int y = e.getY(); Insets insets = frame.getInsets(); if (e.getSource() == frame && frame.isResizable()) { direction = sectionOfClick(x, y); dm.beginRe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
dm.beginDraggingFrame(frame); | dm.beginDraggingFrame(frame); | public void mousePressed(MouseEvent e) { activateFrame(frame); DesktopManager dm = getDesktopManager(); int x = e.getX(); int y = e.getY(); Insets insets = frame.getInsets(); if (e.getSource() == frame && frame.isResizable()) { direction = sectionOfClick(x, y); dm.beginRe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
dm.endResizingFrame(frame); | dm.endResizingFrame(frame); | public void mouseReleased(MouseEvent e) { DesktopManager dm = getDesktopManager(); xOffset = 0; yOffset = 0; if (e.getSource() == frame && frame.isResizable()) dm.endResizingFrame(frame); else if (e.getSource() == titlePane) dm.endDraggingFrame(frame); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
dm.endDraggingFrame(frame); | dm.endDraggingFrame(frame); | public void mouseReleased(MouseEvent e) { DesktopManager dm = getDesktopManager(); xOffset = 0; yOffset = 0; if (e.getSource() == frame && frame.isResizable()) dm.endResizingFrame(frame); else if (e.getSource() == titlePane) dm.endDraggingFrame(frame); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
return NORTH_WEST; | return NORTH_WEST; | private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.right && y > b.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
return NORTH_EAST; | return NORTH_EAST; | private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.right && y > b.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
return SOUTH_EAST; | return SOUTH_EAST; | private int sectionOfClick(int x, int y) { Insets insets = frame.getInsets(); Rectangle b = frame.getBounds(); if (x < insets.left && y < insets.top) return NORTH_WEST; else if (x > b.width - insets.right && y < insets.top) return NORTH_EAST; else if (x > b.width - insets.right && y > b.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.