rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
g.drawLine(x, y + h, x + w, y + h); | g.drawLine(x, y + h - 1, x + w - 1, y + h - 1); | protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].x; int endgap = rects[selectedI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.setColor(selectedColor); g.drawLine(x + 1, y + h - 3, x + w - 2, y + h - 3); | protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].x; int endgap = rects[selectedI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
int startgap = rects[selectedIndex].y; int endgap = rects[selectedIndex].y + rects[selectedIndex].height; | int startgap = rects[selectedIndex].y - currentScrollOffset; int endgap = rects[selectedIndex].y + rects[selectedIndex].height - currentScrollOffset; | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
int diff = 0; | if (tabPlacement == SwingConstants.LEFT && startgap >= 0) { g.drawLine(x, y, x, startgap); g.drawLine(x, endgap, x, y + h - 1); | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (tabPlacement == SwingConstants.LEFT) { if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { Point p = findPointForIndex(currentScrollLocation); diff = p.y; } g.drawLine(x, y, x, startgap - diff); g.drawLine(x, endgap - diff, x, y + h); | g.setColor(selectedColor); g.drawLine(x, startgap, x, endgap - 1); | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x, y, x, y + h); | g.drawLine(x, y, x, y + h - 1); g.setColor(selectedColor); g.drawLine(x + 1, y + 1, x + 1, y + h - 4); | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
int startgap = rects[selectedIndex].y; int endgap = rects[selectedIndex].y + rects[selectedIndex].height; | int startgap = rects[selectedIndex].y - currentScrollOffset; int endgap = rects[selectedIndex].y + rects[selectedIndex].height - currentScrollOffset; | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
int diff = 0; if (tabPlacement == SwingConstants.RIGHT) { if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) | if (tabPlacement == SwingConstants.RIGHT && startgap >= 0) | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
Point p = findPointForIndex(currentScrollLocation); diff = p.y; } | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
g.drawLine(x + w - 1, y + 1, x + w - 1, startgap - diff); g.drawLine(x + w - 1, endgap - diff, x + w - 1, y + h - 1); | g.drawLine(x + w - 2, y + 1, x + w - 2, startgap); g.drawLine(x + w - 2, endgap, x + w - 2, y + h - 2); | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x + w, y, x + w, startgap - diff); g.drawLine(x + w, endgap - diff, x + w, y + h); | g.drawLine(x + w - 1, y, x + w - 1, startgap); g.drawLine(x + w - 1, endgap, x + w - 1, y + h - 2); g.setColor(selectedColor); g.drawLine(x + w - 2, startgap, x + w - 2, endgap - 1); g.drawLine(x + w - 1, startgap, x + w - 1, endgap - 1); | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1); | g.drawLine(x + w - 2, y + 1, x + w - 2, y + h - 2); | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x + w, y, x + w, y + h); | g.drawLine(x + w - 1, y, x + w - 1, y + h - 2); | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.setColor(selectedColor); g.drawLine(x + w - 3, y + 1, x + w - 3, y + h - 4); | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
int startgap = rects[selectedIndex].x; int endgap = rects[selectedIndex].x + rects[selectedIndex].width; | int startgap = rects[selectedIndex].x - currentScrollOffset; int endgap = rects[selectedIndex].x + rects[selectedIndex].width - currentScrollOffset; | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
int diff = 0; | if (tabPlacement == SwingConstants.TOP && startgap >= 0) { g.drawLine(x, y, startgap, y); g.drawLine(endgap, y, x + w - 1, y); | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (tabPlacement == SwingConstants.TOP) { if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) { Point p = findPointForIndex(currentScrollLocation); diff = p.x; } g.drawLine(x, y, startgap - diff, y); g.drawLine(endgap - diff, y, x + w, y); | g.setColor(selectedColor); g.drawLine(startgap, y, endgap - 1, y); | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.setColor(selectedColor); g.drawLine(x, y + 1, x + w - 1, y + 1); g.drawLine(x, y + 2, x + w - 1, y + 2); | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) { if (tabPane.hasFocus() && isSelected) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | ||
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { Rectangle rect = rects[tabIndex]; boolean isSelected = tabIndex == tabPane.getSelectedIndex(); // Paint background if necessary. if (tabsOpaque || tabP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | ||
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) { Rectangle rect = rects[tabIndex]; boolean isSelected = tabIndex == tabPane.getSelectedIndex(); // Paint background if necessary. if (tabsOpaque || tabP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | ||
Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
paintTab(g, tabPlacement, rects, j, ir, tr); | paintTab(g, tabPlacement, rects, j, tempIconRect, tempTextRect); | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
paintTab(g, tabPlacement, rects, selectedIndex, ir, tr); | paintTab(g, tabPlacement, rects, selectedIndex, tempIconRect, tempTextRect); | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); boolean isScroll = tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT; // Please note: the ordering of the painting is important. // we WANT to pai... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.setColor(Color.LIGHT_GRAY); | g.setColor(selectedColor); | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
bg = Color.GRAY; | bg = Color.LIGHT_GRAY; | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.fillRect(x, y, w, h); | switch (tabPlacement) { case SwingConstants.TOP: g.fillRect(x + 1, y + 1, w - 1, h - 1); break; case SwingConstants.BOTTOM: g.fillRect(x, y, w - 1, h - 1); break; case SwingConstants.LEFT: g.fillRect(x + 1, y + 1, w - 1, h - 2); break; case SwingConstants.RIGHT: g.fillRect(x, y + 1, w - 1, h - 2); break; } | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (! isSelected || tabPlacement != SwingConstants.TOP) | switch (tabPlacement) | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1); | g.drawLine(x + w - 2, y + 2, x + w - 2, y + h); | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x, y + h, x + w, y + h); } | g.drawLine(x + w - 1, y + 2, x + w - 1, y + h); g.drawLine(x + w - 2, y + 1, x + w - 1, y + 2); g.setColor(lightHighlight); g.drawLine(x, y + 3, x, y + h); g.drawLine(x + 3, y, x + w - 3, y); g.drawLine(x, y + 2, x + 2, y); break; case SwingConstants.LEFT: g.setColor(lightHighlight); g.drawLine(x + 3, y, x ... | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (! isSelected || tabPlacement != SwingConstants.LEFT) { | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
g.drawLine(x + w, y, x + w, y + h); | g.drawLine(x + 2, y + h - 1, x + w - 1, y + h - 1); | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1); } | g.drawLine(x + 2, y + h - 2, x + w - 1, y + h - 2); break; case SwingConstants.BOTTOM: g.setColor(shadow); g.drawLine(x + w - 2, y, x + w - 2, y + h - 2); | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (! isSelected || tabPlacement != SwingConstants.RIGHT) { | g.drawLine(x + 2, y + h - 1, x + w - 3, y + h - 1); g.setColor(darkShadow); g.drawLine(x + w - 1, y, x + w - 1, y + h - 3); g.drawLine(x + w - 1, y + h - 2, x + w - 3, y + h); g.drawLine(x + 2, y + h, x + w - 4, y + h); | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x, y, x, y + h); } | g.drawLine(x, y, x, y + h - 3); | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
if (! isSelected || tabPlacement != SwingConstants.BOTTOM) { | g.drawLine(x, y + h - 2, x + 1, y + h - 1); break; case SwingConstants.RIGHT: | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
g.drawLine(x, y, x + w, y); | g.drawLine(x, y, x + w - 3, y); g.setColor(darkShadow); g.drawLine(x + w - 2, y + 1, x + w - 1, y + 2); g.drawLine(x + w - 1, y + 3, x + w - 1, y + h - 3); g.drawLine(x + w - 2, y + h - 2, x + w - 3, y + h - 1); g.drawLine(x, y + h - 1, x + w - 4, y + h - 1); g.setColor(shadow); g.drawLine(x + w - 2, y + 2,... | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (! isSelected || tabPlacement != SwingConstants.TOP) { g.setColor(shadow); g.drawLine(x + 1, y + h - 1, x ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
default: | protected static void rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement) { // Sun's version will happily throw an NPE if params are null, // so I won't check it either. switch (targetPlacement) { case SwingConstants.TOP: targetInsets.top =... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
} | protected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset) { int x = rects[tabIndex].x + rects[tabIndex].width / 2; int y = rects[tabIndex].y + rects[tabIndex].height / 2; switch (tabPlacement) { case SwingConstants.TOP: case SwingConstants.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
tabPane.setSelectedIndex(getNextTabIndex(current)); | current = getNextTabIndex(current); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) scrollTab(current, tabPane.getTabPlacement()); tabPane.setSelectedIndex(current); | protected void selectNextTab(int current) { tabPane.setSelectedIndex(getNextTabIndex(current)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
tabPane.setSelectedIndex(getNextTabIndexInRun(tabPane.getTabCount(), current)); | current = getNextTabIndexInRun(tabPane.getTabCount(), current); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) scrollTab(current, tabPane.getTabPlacement()); tabPane.setSelectedIndex(current); | protected void selectNextTabInRun(int current) { tabPane.setSelectedIndex(getNextTabIndexInRun(tabPane.getTabCount(), current)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
tabPane.setSelectedIndex(getPreviousTabIndex(current)); | current = getPreviousTabIndex(current); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) scrollTab(current, tabPane.getTabPlacement()); tabPane.setSelectedIndex(current); | protected void selectPreviousTab(int current) { tabPane.setSelectedIndex(getPreviousTabIndex(current)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
tabPane.setSelectedIndex(getPreviousTabIndexInRun(tabPane.getTabCount(), current)); | current = getPreviousTabIndexInRun(tabPane.getTabCount(), current); if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) scrollTab(current, tabPane.getTabPlacement()); tabPane.setSelectedIndex(current); | protected void selectPreviousTabInRun(int current) { tabPane.setSelectedIndex(getPreviousTabIndexInRun(tabPane.getTabCount(), current)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
int index = -1; | int index = tabPane.getSelectedIndex(); | public int tabForCoordinate(JTabbedPane pane, int x, int y) { if (! tabPane.isValid()) tabPane.validate(); int tabCount = tabPane.getTabCount(); int index = -1; for (int i = 0; i < tabCount; ++i) { if (rects[i].contains(x, y)) { index = i; break; }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
public int tabForCoordinate(JTabbedPane pane, int x, int y) { if (! tabPane.isValid()) tabPane.validate(); int tabCount = tabPane.getTabCount(); int index = -1; for (int i = 0; i < tabCount; ++i) { if (rects[i].contains(x, y)) { index = i; break; }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | ||
if (incrButton != null) tabPane.remove(incrButton); if (decrButton != null) tabPane.remove(decrButton); if (viewport != null) tabPane.remove(viewport); | protected void uninstallComponents() { // Nothing to be done. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); | selectedColor = null; | protected void uninstallDefaults() { calcRect = null; tabAreaRect = null; contentRect = null; tabRuns = null; contentBorderInsets = null; tabAreaInsets = null; selectedTabPadInsets = null; tabInsets = null; focus = null; darkShadow = null; shadow = null; lightHighlight = null; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java |
throws NotImplementedException | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
SwingUtilities.replaceUIActionMap(tabPane, null); SwingUtilities.replaceUIInputMap(tabPane, JComponent.WHEN_FOCUSED, null); SwingUtilities .replaceUIInputMap(tabPane, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
if (incrButton != null) incrButton.removeMouseListener(mouseListener); if (decrButton != null) decrButton.removeMouseListener(mouseListener); if (panel != null) { panel.removeMouseListener(mouseListener); panel.removeFocusListener(focusListener); } | protected void uninstallListeners() { tabPane.removeFocusListener(focusListener); tabPane.removePropertyChangeListener(propertyChangeListener); tabPane.removeChangeListener(tabChangeListener); tabPane.removeMouseListener(mouseListener); focusListener = null; propertyChangeListener = null; tabCha... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTabbedPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | |
if (sPrettyXDFOutput) { | if (Specification.getInstance().isPrettyXDFOutput()) { | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NE... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DelimitedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/DelimitedXMLDataIOStyle.java |
if (sPrettyXDFOutput) { | if (Specification.getInstance().isPrettyXDFOutput()) { | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NE... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DelimitedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/DelimitedXMLDataIOStyle.java |
nestedToXDF(outputstream, indent + sPrettyXDFOutputIndentation, which, stop); | nestedToXDF(outputstream, indent + Specification.getInstance().getPrettyXDFOutputIndentation(), which, stop); | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NE... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DelimitedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/DelimitedXMLDataIOStyle.java |
if (sPrettyXDFOutput) { | if (Specification.getInstance().isPrettyXDFOutput()) { | private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (sPrettyXDFOutput) { writeOut(outputstream, Constants.NE... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DelimitedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/DelimitedXMLDataIOStyle.java |
sel.clear(); | setSelectionInterval(index0, index1); | public void addSelectionInterval(int index0, int index1) { int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) sel.clear(); // COMPAT: Like Sun (but not like IBM), we allow calls to // addSelectionInterval when se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/DefaultListSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java |
if (selectionMode == SINGLE_SELECTION) index0 = index1; | public void addSelectionInterval(int index0, int index1) { int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) sel.clear(); // COMPAT: Like Sun (but not like IBM), we allow calls to // addSelectionInterval when se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/DefaultListSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
if (selectionMode == SINGLE_SELECTION) setSelectionInterval (leadIndex, leadIndex); | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; if (oldLeadIndex == -1) oldLeadIndex = leadIndex; if (setLeadCalledFromAdd == false) oldSel = sel.clone(); leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.m... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/DefaultListSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultListSelectionModel.java | |
public void menuDragMouseExited(MenuDragMouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void menuDragMouseReleased(MenuDragMouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void menuKeyPressed(MenuKeyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void menuKeyReleased(MenuKeyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void menuKeyTyped(MenuKeyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void mouseMoved(MouseEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
public void propertyChange(PropertyChangeEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
protected void setupPostTimer(JMenu menu) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java | ||
if ( first ) | if (first) | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if (( now - timestamp ) > millisToDecideToPopup ) | if ((now - timestamp) > millisToDecideToPopup) | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ( now - timestamp ) * ( max - min ) / ( progress - min ); | long expected = (progress - min == 0) ? (now - timestamp) * (max - min) : (now - timestamp) * (max - min) / (progress - min); | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( expected > millisToPopup ) | if (expected > millisToPopup) | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
else if ( progressDialog != null ) | else if (progressDialog != null) | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( ( delta * progressBar.getWidth() / (max - min) ) > 0 ) | if ((delta * progressBar.getWidth() / (max - min)) > 0) | public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( progressDialog != null ) | if (progressDialog != null) | public void close() { if ( progressDialog != null ) { progressDialog.setVisible(false); } if ( timer != null ) { timer.stop(); timer = null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( timer != null ) | if (timer != null) | public void close() { if ( progressDialog != null ) { progressDialog.setVisible(false); } if ( timer != null ) { timer.stop(); timer = null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( noteLabel != null ) | if (noteLabel != null) | public void setNote(String note) { if ( noteLabel != null ) { noteLabel.setText(note); } else { this.note = note; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( timer == null && progressDialog == null ) | if (timer == null && progressDialog == null) | public void setProgress(int progress) { this.progress = progress; // Initializes and starts a timer with a task // which measures the duration and displays // a progress dialog if neccessary. if ( timer == null && progressDialog == null ) { timer = new Timer(25, null); timer.addActi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ( progressBar != null && this.progress >= progressBar.getMaximum() ) | if (progressBar != null && this.progress >= progressBar.getMaximum()) | public void setProgress(int progress) { this.progress = progress; // Initializes and starts a timer with a task // which measures the duration and displays // a progress dialog if neccessary. if ( timer == null && progressDialog == null ) { timer = new Timer(25, null); timer.addActi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java |
if ((r && isRollover()) || (!r && !isRollover())) | if (r == isRollover()) | public void setRollover(boolean r) { // if this call does not represent a CHANGE in state, then return if ((r && isRollover()) || (!r && !isRollover())) return; // cannot set ROLLOVER property unless button is enabled if (!isEnabled()) return; // make the change if (r) stateMask ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
null, ItemEvent.SELECTED)); | this, ItemEvent.SELECTED)); | public void setSelected(boolean s) { // if this call does not represent a CHANGE in state, then return if ((s && isSelected()) || (!s && !isSelected())) return; // make the change if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED); // notify interes... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
null, ItemEvent.DESELECTED)); | this, ItemEvent.DESELECTED)); | public void setSelected(boolean s) { // if this call does not represent a CHANGE in state, then return if ((s && isSelected()) || (!s && !isSelected())) return; // make the change if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED); // notify interes... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
protected DSSKey(BigInteger p, BigInteger q, BigInteger g) | protected DSSKey(int defaultFormat, BigInteger p, BigInteger q, BigInteger g) | protected DSSKey(BigInteger p, BigInteger q, BigInteger g) { super(); this.p = p; this.q = q; this.g = g; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKey.java |
this.defaultFormat = defaultFormat <= 0 ? Registry.RAW_ENCODING_ID : defaultFormat; | protected DSSKey(BigInteger p, BigInteger q, BigInteger g) { super(); this.p = p; this.q = q; this.g = g; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKey.java | |
return null; | return KeyPairCodecFactory.getEncodingShortName(defaultFormat); | public String getFormat() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKey.java |
if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null) | int height = c.getHeight(); if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null && c.getBackground() instanceof UIResource && height > 2) | public void update(Graphics g, JComponent c) { if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null) { MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, "MenuBar.gradient"); paint(g, c); } else super.upd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalMenuBarUI.java |
MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), | MetalUtils.paintGradient(g, 0, 0, c.getWidth(), height - 2, | public void update(Graphics g, JComponent c) { if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null) { MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, "MenuBar.gradient"); paint(g, c); } else super.upd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalMenuBarUI.java |
public void update(Graphics g, JComponent c) { if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null) { MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, "MenuBar.gradient"); paint(g, c); } else super.upd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalMenuBarUI.java | ||
if (_instance == null) { initialize(); _instance = this; } | System.setProperty("python.cachedir", System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator); if (_instance == null) { initialize(); _instance = this; } | public GlobalConfigure() { if (_instance == null) { // initialize the settings information initialize(); // set our instance to this one. _instance = this; } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/63b0804bbee8ab522882657f6165f24106032f8c/GlobalConfigure.java/buggy/tn5250j/src/org/tn5250j/GlobalConfigure.java |
if (!thisValueList.getIsDelimitedCase() ) | if ( !thisValueList.getIsDelimitedCase() ) | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if (noWhiteSpaceList.length() > 0) Log.errorln("Got non-whitespace character data for algorithm valueList. Ignoring."); return; | if (noWhiteSpaceList.length() > 0) { Log.errorln("Got non-whitespace character data for valueList with size attribute! Ignoring."); return; } else { Log.warnln("Got size attribute set on delimited valueList. Ignoring attribute."); } | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // IF we get here, we have the delmited case for populating // a value list. // 1. set up information we need // our string that we will parse String valueListString = new String (buf,... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
CurrentValueList.init(attribListToHashtable(attrs)); | Hashtable attribs = attribListToHashtable(attrs); CurrentValueList.init(attribs); | public Object action (SaxDocumentHandler handler, Attributes attrs) { // 1. re-init CurrentValueList = new ValueList(); // 2. populate ValueListparameters from attribute list CurrentValueList.init(attribListToHashtable(attrs)); // 3. populate ValueListparameter... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
CurrentValueList.setIsDelimitedCase(false); | if (attribs.containsKey("size")) CurrentValueList.setIsDelimitedCase(false); else CurrentValueList.setIsDelimitedCase(true); | public Object action (SaxDocumentHandler handler, Attributes attrs) { // 1. re-init CurrentValueList = new ValueList(); // 2. populate ValueListparameters from attribute list CurrentValueList.init(attribListToHashtable(attrs)); // 3. populate ValueListparameter... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); | ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); | private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
int myValue = convertBytesToInteger (bytes_to_add, endian, data, bytes_added); CurrentArray.setData(location, myValue); | switch (bytes_to_add) { case 1: { short val = convert1byteToShort (data, bytes_added); CurrentArray.setData(location, val); break; } case 2: { short val = convert2bytesToShort (endian, data, bytes_added); CurrentArray.setData(location, val); break; } case 3: { int val = convert3bytesToInt (endian, data, bytes_ad... | private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); int bytes_... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
*/ | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {// this stuff slows down the... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
return convert1byteToInteger (bb, sbyte); | return convert1byteToInt (bb, sbyte); | private int convertBytesToInteger (int numOfBytes, String endianStyle, byte[] bb, int sbyte) { // is it better to use a dispatch table here? switch (numOfBytes) { case 1: // 8-bit return convert1byteToInteger (bb, sbyte); case 2: // 16-bit return convert... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
return convert2bytesToInteger (endianStyle, bb, sbyte); | return convert2bytesToInt (endianStyle, bb, sbyte); | private int convertBytesToInteger (int numOfBytes, String endianStyle, byte[] bb, int sbyte) { // is it better to use a dispatch table here? switch (numOfBytes) { case 1: // 8-bit return convert1byteToInteger (bb, sbyte); case 2: // 16-bit return convert... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
return convert3bytesToInteger (endianStyle, bb, sbyte); | return convert3bytesToInt (endianStyle, bb, sbyte); | private int convertBytesToInteger (int numOfBytes, String endianStyle, byte[] bb, int sbyte) { // is it better to use a dispatch table here? switch (numOfBytes) { case 1: // 8-bit return convert1byteToInteger (bb, sbyte); case 2: // 16-bit return convert... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
return convert4bytesToInteger (endianStyle, bb, sbyte); | return convert4bytesToInt (endianStyle, bb, sbyte); | private int convertBytesToInteger (int numOfBytes, String endianStyle, byte[] bb, int sbyte) { // is it better to use a dispatch table here? switch (numOfBytes) { case 1: // 8-bit return convert1byteToInteger (bb, sbyte); case 2: // 16-bit return convert... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4035c5a51b3bdc31ccdedb295e2a28165e6d9cd1/SaxDocumentHandler.java/clean/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
else | else | public void setCompression (String strCompression) { if (!Utility.isValidDataCompression(strCompression)) Log.warnln("Data compression value is not valid, ignoring request to set it."); else ((XMLAttribute) attribHash.get("compression")).setAttribValue(strCompression); } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DataCube.java/clean/src/gov/nasa/gsfc/adc/xdf/DataCube.java |
else | else | public void setEncoding (String strEncoding) { if (!Utility.isValidDataEncoding(strEncoding)) Log.warnln("Encoding is not valid, ignoring request to setEncoding."); else ((XMLAttribute) attribHash.get("encoding")).setAttribValue(strEncoding); } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DataCube.java/clean/src/gov/nasa/gsfc/adc/xdf/DataCube.java |
boolean niceOutput = sPrettyXDFOutput; | boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String strIndent, boolean dontCloseNode, String newNodeNameStri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/DataCube.java/clean/src/gov/nasa/gsfc/adc/xdf/DataCube.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.