bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
9,710
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
9,711
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
9,712
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
9,713
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
9,714
protected JDialog createDialog(Component parent) throws HeadlessException { Frame toUse = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent); if (toUse == null) toUse = SwingUtilities.getOwnerFrame(); JDialog dialog = new JDialog(toUse); setSelectedFile(null); dialog.getContentPane().add(this); dialog.setModal(true); dialog.invalidate(); dialog.repaint(); return dialog; }
protected JDialog createDialog(Component parent) throws HeadlessException { Frame toUse = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent); if (toUse == null) toUse = (Frame) SwingUtilities.getOwnerFrame(null); JDialog dialog = new JDialog(toUse); setSelectedFile(null); dialog.getContentPane().add(this); dialog.setModal(true); dialog.invalidate(); dialog.repaint(); return dialog; }
9,715
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
9,716
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
9,717
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
9,718
public String toString() { return "GIOP " + version + ", " + (isBigEndian() ? "Big" : "Little") + " endian, " + getTypeString(message_type) + ", " + message_size + " bytes. "; }
public String toString() { return "GIOP " + version + ", " + (isBigEndian() ? "Big" : "Little") + " endian, " + getTypeString(message_type) + ", " + message_size + " bytes. "; }
9,719
protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint(); else { Rectangle repaintRec = rec0.union(rec1); host.repaint(repaintRec.x, repaintRec.y, repaintRec.width, repaintRec.height); } }
protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint(); else { Rectangle repaintRec = SwingUtilities.computeUnion(rec0.x, rec0.y, rec0.width, rec0.height, rec1); host.repaint(repaintRec.x, repaintRec.y, repaintRec.width, repaintRec.height); } }
9,720
public int getNativeFD() { return ch.getPlainSocketImpl().getNativeFD(); }
public int getNativeFD() { try { return ch.getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { return 0; } }
9,723
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
9,725
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
9,726
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
9,727
public String getName() { return (String) getAttribute(NameAttribute); }
public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); }
9,729
protected void blockClose(HTML.Tag t) { printBuffer(); ElementSpec element = new ElementSpec(null, ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); }
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); }
9,730
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); ElementSpec element = new ElementSpec(attr.copyAttributes(), ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffer(); }
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffer(); }
9,731
public void flush() throws BadLocationException { ElementSpec[] elements = new ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); insert(offset, elements); offset += HTMLDocument.this.getLength() - offset; }
public void flush() throws BadLocationException { DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); insert(offset, elements); offset += HTMLDocument.this.getLength() - offset; }
9,732
public String getName() { return (String) getAttribute(NameAttribute); }
public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); }
9,733
public Element getElement(Element e, Object attribute, Object value) { if (e != null) { if (e.getAttributes().containsAttribute(attribute, value)) return e; int count = e.getElementCount(); for (int j = 0; j < count; j++) { Element child = e.getElement(j); if (child.getAttributes().containsAttribute(attribute, value)) return child; return getElement(child, attribute, value); } } return null; }
public Element getElement(Element e, Object attribute, Object value) { if (e != null) { if (e.getAttributes().containsAttribute(attribute, value)) return e; int count = e.getElementCount(); for (int j = 0; j < count; j++) { Element child = e.getElement(j); if (child.getAttributes().containsAttribute(attribute, value)) return child; Element grandChild = getElement(child, attribute, value); if (grandChild != null) return grandChild; } } return null; }
9,734
public JFileChooser() { // TODO } // JFileChooser()
public JFileChooser() { // TODO } // JFileChooser()
9,735
public boolean accept(File file) { return false; // TODO } // accept()
public boolean accept(File file) { return false; // TODO } // accept()
9,736
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
9,737
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
9,738
public void addChoosableFileFilter(FileFilter filter) { // TODO } // addChoosableFileFilter()
public void addChoosableFileFilter(FileFilter filter) { // TODO } // addChoosableFileFilter()
9,739
public void approveSelection() { // TODO } // approveSelection()
public void approveSelection() { // TODO } // approveSelection()
9,740
public void cancelSelection() { // TODO } // cancelSelection()
public void cancelSelection() { // TODO } // cancelSelection()
9,741
public void changeToParentDirectory() { // TODO } // changeToParentDirectory()
public void changeToParentDirectory() { // TODO } // changeToParentDirectory()
9,742
public void ensureFileIsVisible(File file) { // TODO } // ensureFileIsVisible()
public void ensureFileIsVisible(File file) { // TODO } // ensureFileIsVisible()
9,743
protected void fireActionPerformed(String command) { // TODO } // fireActionPerformed()
protected void fireActionPerformed(String command) { // TODO } // fireActionPerformed()
9,744
public FileFilter getAcceptAllFileFilter() { return null; // TODO } // getAcceptAllFileFilter()
public FileFilter getAcceptAllFileFilter() { return null; // TODO } // getAcceptAllFileFilter()
9,745
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext; }
9,746
public JComponent getAccessory() { return null; // TODO } // getAccessory()
public JComponent getAccessory() { return null; // TODO } // getAccessory()
9,747
public ActionListener[] getActionListeners() { return (ActionListener[]) listenerList.getListeners (ActionListener.class); }
public ActionListener[] getActionListeners() { return (ActionListener[]) listenerList.getListeners (ActionListener.class); }
9,748
public int getApproveButtonMnemonic() { return 0; // TODO } // getApproveButtonMnemonic()
public int getApproveButtonMnemonic() { return 0; // TODO } // getApproveButtonMnemonic()
9,749
public String getApproveButtonText() { return null; // TODO } // getApproveButtonText()
public String getApproveButtonText() { return null; // TODO } // getApproveButtonText()
9,750
public String getApproveButtonToolTipText() { return null; // TODO } // getApproveButtonToolTipText()
public String getApproveButtonToolTipText() { return null; // TODO } // getApproveButtonToolTipText()
9,751
public FileFilter[] getChoosableFileFilters() { return null; // TODO } // getChoosableFileFilters()
public FileFilter[] getChoosableFileFilters() { return null; // TODO } // getChoosableFileFilters()
9,752
public boolean getControlButtonsAreShown() { return false; // TODO } // getControlButtonsAreShown()
public boolean getControlButtonsAreShown() { return false; // TODO } // getControlButtonsAreShown()
9,753
public File getCurrentDirectory() { return null; // TODO } // getCurrentDirectory()
public File getCurrentDirectory() { return null; // TODO } // getCurrentDirectory()
9,754
public String getDescription(File file) { return null; // TODO } // getDescription()
public String getDescription(File file) { return null; // TODO } // getDescription()
9,755
public String getDialogTitle() { return null; // TODO } // getDialogTitle()
public String getDialogTitle() { return null; // TODO } // getDialogTitle()
9,756
public int getDialogType() { return 0; // TODO } // getDialogType()
public int getDialogType() { return 0; // TODO } // getDialogType()
9,757
public FileFilter getFileFilter() { return null; // TODO } // getFileFilter()
public FileFilter getFileFilter() { return null; // TODO } // getFileFilter()
9,758
public int getFileSelectionMode() { return 0; // TODO } // getFileSelectionMode()
public int getFileSelectionMode() { return 0; // TODO } // getFileSelectionMode()
9,759
public FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView()
public FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView()
9,760
public FileView getFileView() { return null; // TODO } // getFileView()
public FileView getFileView() { return null; // TODO } // getFileView()
9,761
public Icon getIcon(File file) { return null; // TODO } // getIcon()
public Icon getIcon(File file) { return null; // TODO } // getIcon()
9,762
public String getName(File file) { return null; // TODO } // getName()
public String getName(File file) { return null; // TODO } // getName()
9,763
public File getSelectedFile() { return null; // TODO } // getSelectedFile()
public File getSelectedFile() { return null; // TODO } // getSelectedFile()
9,764
public File[] getSelectedFiles() { return null; // TODO } // getSelectedFiles()
public File[] getSelectedFiles() { return null; // TODO } // getSelectedFiles()
9,765
public String getTypeDescription(File file) { return null; // TODO } // getTypeDescription()
public String getTypeDescription(File file) { return null; // TODO } // getTypeDescription()
9,766
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
9,767
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
9,768
public String getUIClassID() { return uiClassID; } // getUIClassID()
public String getUIClassID() { return uiClassID; } // getUIClassID()
9,769
public boolean isAcceptAllFileFilterUsed() { return false; // TODO } // isAcceptAllFileFilterUsed()
public boolean isAcceptAllFileFilterUsed() { return false; // TODO } // isAcceptAllFileFilterUsed()
9,770
public boolean isDirectorySelectionEnabled() { return false; // TODO } // isDirectorySelectionEnabled()
public boolean isDirectorySelectionEnabled() { return false; // TODO } // isDirectorySelectionEnabled()
9,771
public boolean isFileHidingEnabled() { return false; // TODO } // isFileHidingEnabled()
public boolean isFileHidingEnabled() { return false; // TODO } // isFileHidingEnabled()
9,772
public boolean isFileSelectionEnabled() { return false; // TODO } // isFileSelectionEnabled()
public boolean isFileSelectionEnabled() { return false; // TODO } // isFileSelectionEnabled()
9,773
public boolean isMultiSelectionEnabled() { return false; // TODO } // isMultiSelectionEnabled()
public boolean isMultiSelectionEnabled() { return false; // TODO } // isMultiSelectionEnabled()
9,774
public boolean isTraversable(File file) { return false; // TODO } // isTraversable()
public boolean isTraversable(File file) { return false; // TODO } // isTraversable()
9,775
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return null; // TODO } // paramString()
9,776
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
9,777
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
9,778
public boolean removeChoosableFileFilter(FileFilter filter) { return false; // TODO } // removeChoosableFileFilter()
public boolean removeChoosableFileFilter(FileFilter filter) { return false; // TODO } // removeChoosableFileFilter()
9,779
public void rescanCurrentDirectory() { // TODO } // rescanCurrentDirectory()
public void rescanCurrentDirectory() { // TODO } // rescanCurrentDirectory()
9,780
public void resetChoosableFileFilters() { // TODO } // resetChoosableFileFilters()
public void resetChoosableFileFilters() { // TODO } // resetChoosableFileFilters()
9,781
public void setAcceptAllFileFilterUsed(boolean value) { // TODO } // setAcceptAllFileFilterUsed()
public void setAcceptAllFileFilterUsed(boolean value) { // TODO } // setAcceptAllFileFilterUsed()
9,782
public void setAccessory(JComponent accessory) { // TODO } // setAccessory()
public void setAccessory(JComponent accessory) { // TODO } // setAccessory()
9,783
public void setApproveButtonMnemonic(int mnemonic) { // TODO } // setApproveButtonMnemonic()
public void setApproveButtonMnemonic(int mnemonic) { // TODO } // setApproveButtonMnemonic()
9,784
public void setApproveButtonText(String text) { // TODO } // setApproveButtonText()
public void setApproveButtonText(String text) { // TODO } // setApproveButtonText()
9,785
public void setApproveButtonToolTipText(String text) { // TODO } // setApproveButtonToolTipText()
public void setApproveButtonToolTipText(String text) { // TODO } // setApproveButtonToolTipText()
9,786
public void setControlButtonsAreShown(boolean value) { // TODO } // setControlButtonsAreShown()
public void setControlButtonsAreShown(boolean value) { // TODO } // setControlButtonsAreShown()
9,787
public void setCurrentDirectory(File directory) { // TODO } // setCurrentDirectory()
public void setCurrentDirectory(File directory) { // TODO } // setCurrentDirectory()
9,788
public void setDialogTitle(String title) { // TODO } // setDialogTitle()
public void setDialogTitle(String title) { // TODO } // setDialogTitle()
9,789
public void setDialogType(int type) { // TODO } // setDialogType()
public void setDialogType(int type) { // TODO } // setDialogType()
9,790
public void setFileFilter(FileFilter filter) { // TODO } // setFileFilter()
public void setFileFilter(FileFilter filter) { // TODO } // setFileFilter()
9,791
public void setFileHidingEnabled(boolean enabled) { // TODO } // setFileHidingEnabled()
public void setFileHidingEnabled(boolean enabled) { // TODO } // setFileHidingEnabled()
9,792
public void setFileSelectionMode(int mode) { // TODO } // setFileSelectionMode()
public void setFileSelectionMode(int mode) { // TODO } // setFileSelectionMode()
9,793
public void setFileSystemView(FileSystemView fsv) { // TODO } // setFileSystemView()
public void setFileSystemView(FileSystemView fsv) { // TODO } // setFileSystemView()
9,794
public void setFileView(FileView view) { // TODO } // setFileView()
public void setFileView(FileView view) { // TODO } // setFileView()
9,795
public void setMultiSelectionEnabled(boolean enabled) { // TODO } // setMultiSelectionEnabled()
public void setMultiSelectionEnabled(boolean enabled) { // TODO } // setMultiSelectionEnabled()
9,796
public void setSelectedFile(File file) { // TODO } // setSelectedFile()
public void setSelectedFile(File file) { // TODO } // setSelectedFile()
9,797
public void setSelectedFiles(File[] files) { // TODO } // setSelectedFiles()
public void setSelectedFiles(File[] files) { // TODO } // setSelectedFiles()
9,798
protected void setup(FileSystemView view) { // TODO } // setup()
protected void setup(FileSystemView view) { // TODO } // setup()
9,799
public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog()
public int showDialog(Component parent, String approveButtonText) { return CANCEL_OPTION; // TODO } // showDialog()
9,800
public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog()
public int showOpenDialog(Component parent) { return CANCEL_OPTION; // TODO } // showOpenDialog()
9,801
public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog()
public int showSaveDialog(Component parent) { return CANCEL_OPTION; // TODO } // showSaveDialog()
9,802
public void updateUI() { setUI((FileChooserUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((FileChooserUI) UIManager.get(this)); invalidate(); } // updateUI()
9,803
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExist) { control0 = bk.getNextByte(); control1 = bk.getNextByte(); processCC0(control0); } while (bk.hasNext() && !done) {// pos = bk.getCurrentPos();// int rowc = screen52.getCurrentRow();// int colc = screen52.getCurrentCol(); switch (bk.getNextByte()) { case 1: // SOH - Start of Header Order error = processSOH(); break; case 02: // RA - Repeat to address int row = screen52.getCurrentRow(); int col = screen52.getCurrentCol(); int toRow = bk.getNextByte(); int toCol = bk.getNextByte() & 0xff; if (toRow >= row) { int repeat = bk.getNextByte(); // a little intelligence here I hope if (row == 1 && col == 2 && toRow == screen52.getRows() && toCol == screen52.getCols()) screen52.clearScreen(); else { if (repeat != 0) repeat = getASCIIChar(repeat); int times = ((toRow * screen52.getCols()) + toCol) - ((row * screen52.getCols()) + col); while (times-- >= 0) { screen52.setChar(repeat); } } } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x23," RA invalid"); error =true; } break; case 03: // EA - Erase to address int EArow = screen52.getCurrentRow(); int EAcol = screen52.getCurrentCol(); int toEARow = bk.getNextByte(); int toEACol = bk.getNextByte() & 0xff; int EALength = bk.getNextByte() & 0xff; while (--EALength > 0) { bk.getNextByte(); } char EAAttr = (char)0; // a little intelligence here I hope if (EArow == 1 && EAcol == 2 && toEARow == screen52.getRows() && toEACol == screen52.getCols()) screen52.clearScreen(); else { int times = ((toEARow * screen52.getCols()) + toEACol) - ((EArow * screen52.getCols()) + EAcol); while (times-- >= 0) { screen52.setChar(EAAttr); } } break; case 04: // Command - Escape done = true; break; case 16: // TD - Transparent Data bk.getNextByte(); int j = bk.getNextByte(); // length while (j-- > 0) bk.getNextByte(); break; case 17: // SBA - set buffer address order (row column) int saRow = bk.getNextByte(); int saCol = bk.getNextByte() & 0xff; // make sure it is in bounds if (saRow >= 0 && saRow <= screen52.getRows() && saCol >= 0 && saCol <= screen52.getCols()) { screen52.goto_XY(saRow,saCol); // now set screen position for output } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22,"invalid row/col order" + " saRow = " + saRow + " saRows = " + screen52.getRows() + " saCol = " + saCol); error = true; } break; case 18: // WEA - Extended Attribute bk.getNextByte(); bk.getNextByte(); break; case 19: // IC - Insert Cursor case 20: // MC - Move Cursor int icX = bk.getNextByte(); int icY = bk.getNextByte() & 0xff; if (icX >= 0 && icX <= saRows && icY >= 0 && icY <= saCols)// System.out.println(" IC " + icX + " " + icY); screen52.setPendingInsert(true,icX,icY); else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22," IC/IM position invalid "); error = true; } break; case 21: // WTDSF - Write To Display Structured Field order error = writeToDisplayStructuredField(); break; case 29: // SF - Start of Field int fcw1 = 0; int fcw2 = 0; int ffw1 = 0; int ffw0 = bk.getNextByte(); // FFW if (!isAttribute(ffw0)) { ffw1 = bk.getNextByte(); // FFW 1 fcw1 = bk.getNextByte(); // check for field control word if (!isAttribute(fcw1)) { fcw2 = bk.getNextByte(); // FCW 2 attr = bk.getNextByte(); // attribute field } else { attr = fcw1; // attribute of field fcw1 = 0; } } else { attr = ffw0; } int fLength = (bk.getNextByte() & 0xff) << 8 | bk.getNextByte() & 0xff; screen52.addField(attr,fLength, ffw0,ffw1,fcw1,fcw2); break; default: // all others must be output to screen byte byte0 = bk.getByteOffset(-1); if (isAttribute(byte0)) { screen52.setAttr(byte0); } else { if (!screen52.isStatusErrorCode()) { if (!isData(byte0)) {// if (byte0 == 255) {// sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x42,// " Attempt to send FF to screen");// }// else screen52.setChar(byte0); } else// screen52.setChar(getASCIIChar(byte0)); screen52.setChar(codePage.ebcdic2uni(byte0)); } else { if (byte0 == 0) screen52.setChar(byte0); else screen52.setChar(getASCIIChar(byte0)); } } break; } if (error) done = true; } } catch (Exception e) { System.out.println("write to display " + e.getMessage()); }; processCC1(control1); return error; }
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExist) { control0 = bk.getNextByte(); control1 = bk.getNextByte(); processCC0(control0); } while (bk.hasNext() && !done) {// pos = bk.getCurrentPos();// int rowc = screen52.getCurrentRow();// int colc = screen52.getCurrentCol(); switch (bk.getNextByte()) { case 1: // SOH - Start of Header Order error = processSOH(); break; case 02: // RA - Repeat to address int row = screen52.getCurrentRow(); int col = screen52.getCurrentCol(); int toRow = bk.getNextByte(); int toCol = bk.getNextByte() & 0xff; if (toRow >= row) { int repeat = bk.getNextByte(); // a little intelligence here I hope if (row == 1 && col == 2 && toRow == screen52.getRows() && toCol == screen52.getCols()) screen52.clearScreen(); else { if (repeat != 0) repeat = getASCIIChar(repeat); int times = ((toRow * screen52.getCols()) + toCol) - ((row * screen52.getCols()) + col); while (times-- >= 0) { screen52.setChar(repeat); } } } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x23," RA invalid"); error =true; } break; case 03: // EA - Erase to address int EArow = screen52.getCurrentRow(); int EAcol = screen52.getCurrentCol(); int toEARow = bk.getNextByte(); int toEACol = bk.getNextByte() & 0xff; int EALength = bk.getNextByte() & 0xff; while (--EALength > 0) { bk.getNextByte(); } char EAAttr = (char)0; // a little intelligence here I hope if (EArow == 1 && EAcol == 2 && toEARow == screen52.getRows() && toEACol == screen52.getCols()) screen52.clearScreen(); else { int times = ((toEARow * screen52.getCols()) + toEACol) - ((EArow * screen52.getCols()) + EAcol); while (times-- >= 0) { screen52.setChar(EAAttr); } } break; case 04: // Command - Escape done = true; break; case 16: // TD - Transparent Data bk.getNextByte(); int j = bk.getNextByte(); // length while (j-- > 0) bk.getNextByte(); break; case 17: // SBA - set buffer address order (row column) int saRow = bk.getNextByte(); int saCol = bk.getNextByte() & 0xff; // make sure it is in bounds if (saRow >= 0 && saRow <= screen52.getRows() && saCol >= 0 && saCol <= screen52.getCols()) { screen52.goto_XY(saRow,saCol); // now set screen position for output } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22,"invalid row/col order" + " saRow = " + saRow + " saRows = " + screen52.getRows() + " saCol = " + saCol); error = true; } break; case 18: // WEA - Extended Attribute bk.getNextByte(); bk.getNextByte(); break; case 19: // IC - Insert Cursor case 20: // MC - Move Cursor int icX = bk.getNextByte(); int icY = bk.getNextByte() & 0xff; if (icX >= 0 && icX <= saRows && icY >= 0 && icY <= saCols)// System.out.println(" IC " + icX + " " + icY); screen52.setPendingInsert(true,icX,icY); else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22," IC/IM position invalid "); error = true; } break; case 21: // WTDSF - Write To Display Structured Field order error = writeToDisplayStructuredField(); break; case 29: // SF - Start of Field int fcw1 = 0; int fcw2 = 0; int ffw1 = 0; int ffw0 = bk.getNextByte(); // FFW if (!isAttribute(ffw0)) { ffw1 = bk.getNextByte(); // FFW 1 fcw1 = bk.getNextByte(); // check for field control word if (!isAttribute(fcw1)) { fcw2 = bk.getNextByte(); // FCW 2 attr = bk.getNextByte(); // attribute field } else { attr = fcw1; // attribute of field fcw1 = 0; } } else { attr = ffw0; } int fLength = (bk.getNextByte() & 0xff) << 8 | bk.getNextByte() & 0xff; screen52.addField(attr,fLength, ffw0,ffw1,fcw1,fcw2); break; default: // all others must be output to screen byte byte0 = bk.getByteOffset(-1); if (isAttribute(byte0)) { screen52.setAttr(byte0); } else { if (!screen52.isStatusErrorCode()) { if (!isData(byte0)) {// if (byte0 == 255) {// sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x42,// " Attempt to send FF to screen");// }// else screen52.setChar(byte0); } else// screen52.setChar(getASCIIChar(byte0)); screen52.setChar(codePage.ebcdic2uni(byte0)); } else { if (byte0 == 0) screen52.setChar(byte0); else screen52.setChar(getASCIIChar(byte0)); } } break; } if (error) done = true; } } catch (Exception e) { System.out.println("write to display " + e.getMessage()); }; processCC1(control1); return error; }
9,804
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExist) { control0 = bk.getNextByte(); control1 = bk.getNextByte(); processCC0(control0); } while (bk.hasNext() && !done) {// pos = bk.getCurrentPos();// int rowc = screen52.getCurrentRow();// int colc = screen52.getCurrentCol(); switch (bk.getNextByte()) { case 1: // SOH - Start of Header Order error = processSOH(); break; case 02: // RA - Repeat to address int row = screen52.getCurrentRow(); int col = screen52.getCurrentCol(); int toRow = bk.getNextByte(); int toCol = bk.getNextByte() & 0xff; if (toRow >= row) { int repeat = bk.getNextByte(); // a little intelligence here I hope if (row == 1 && col == 2 && toRow == screen52.getRows() && toCol == screen52.getCols()) screen52.clearScreen(); else { if (repeat != 0) repeat = getASCIIChar(repeat); int times = ((toRow * screen52.getCols()) + toCol) - ((row * screen52.getCols()) + col); while (times-- >= 0) { screen52.setChar(repeat); } } } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x23," RA invalid"); error =true; } break; case 03: // EA - Erase to address int EArow = screen52.getCurrentRow(); int EAcol = screen52.getCurrentCol(); int toEARow = bk.getNextByte(); int toEACol = bk.getNextByte() & 0xff; int EALength = bk.getNextByte() & 0xff; while (--EALength > 0) { bk.getNextByte(); } char EAAttr = (char)0; // a little intelligence here I hope if (EArow == 1 && EAcol == 2 && toEARow == screen52.getRows() && toEACol == screen52.getCols()) screen52.clearScreen(); else { int times = ((toEARow * screen52.getCols()) + toEACol) - ((EArow * screen52.getCols()) + EAcol); while (times-- >= 0) { screen52.setChar(EAAttr); } } break; case 04: // Command - Escape done = true; break; case 16: // TD - Transparent Data bk.getNextByte(); int j = bk.getNextByte(); // length while (j-- > 0) bk.getNextByte(); break; case 17: // SBA - set buffer address order (row column) int saRow = bk.getNextByte(); int saCol = bk.getNextByte() & 0xff; // make sure it is in bounds if (saRow >= 0 && saRow <= screen52.getRows() && saCol >= 0 && saCol <= screen52.getCols()) { screen52.goto_XY(saRow,saCol); // now set screen position for output } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22,"invalid row/col order" + " saRow = " + saRow + " saRows = " + screen52.getRows() + " saCol = " + saCol); error = true; } break; case 18: // WEA - Extended Attribute bk.getNextByte(); bk.getNextByte(); break; case 19: // IC - Insert Cursor case 20: // MC - Move Cursor int icX = bk.getNextByte(); int icY = bk.getNextByte() & 0xff; if (icX >= 0 && icX <= saRows && icY >= 0 && icY <= saCols)// System.out.println(" IC " + icX + " " + icY); screen52.setPendingInsert(true,icX,icY); else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22," IC/IM position invalid "); error = true; } break; case 21: // WTDSF - Write To Display Structured Field order error = writeToDisplayStructuredField(); break; case 29: // SF - Start of Field int fcw1 = 0; int fcw2 = 0; int ffw1 = 0; int ffw0 = bk.getNextByte(); // FFW if (!isAttribute(ffw0)) { ffw1 = bk.getNextByte(); // FFW 1 fcw1 = bk.getNextByte(); // check for field control word if (!isAttribute(fcw1)) { fcw2 = bk.getNextByte(); // FCW 2 attr = bk.getNextByte(); // attribute field } else { attr = fcw1; // attribute of field fcw1 = 0; } } else { attr = ffw0; } int fLength = (bk.getNextByte() & 0xff) << 8 | bk.getNextByte() & 0xff; screen52.addField(attr,fLength, ffw0,ffw1,fcw1,fcw2); break; default: // all others must be output to screen byte byte0 = bk.getByteOffset(-1); if (isAttribute(byte0)) { screen52.setAttr(byte0); } else { if (!screen52.isStatusErrorCode()) { if (!isData(byte0)) {// if (byte0 == 255) {// sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x42,// " Attempt to send FF to screen");// }// else screen52.setChar(byte0); } else// screen52.setChar(getASCIIChar(byte0)); screen52.setChar(codePage.ebcdic2uni(byte0)); } else { if (byte0 == 0) screen52.setChar(byte0); else screen52.setChar(getASCIIChar(byte0)); } } break; } if (error) done = true; } } catch (Exception e) { System.out.println("write to display " + e.getMessage()); }; processCC1(control1); return error; }
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExist) { control0 = bk.getNextByte(); control1 = bk.getNextByte(); processCC0(control0); } while (bk.hasNext() && !done) {// pos = bk.getCurrentPos();// int rowc = screen52.getCurrentRow();// int colc = screen52.getCurrentCol(); switch (bk.getNextByte()) { case 1: // SOH - Start of Header Order error = processSOH(); break; case 02: // RA - Repeat to address int row = screen52.getCurrentRow(); int col = screen52.getCurrentCol(); int toRow = bk.getNextByte(); int toCol = bk.getNextByte() & 0xff; if (toRow >= row) { int repeat = bk.getNextByte(); // a little intelligence here I hope if (row == 1 && col == 2 && toRow == screen52.getRows() && toCol == screen52.getCols()) screen52.clearScreen(); else { if (repeat != 0) repeat = getASCIIChar(repeat); int times = ((toRow * screen52.getCols()) + toCol) - ((row * screen52.getCols()) + col); while (times-- >= 0) { screen52.setChar(repeat); } } } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x23," RA invalid"); error =true; } break; case 03: // EA - Erase to address int EArow = screen52.getCurrentRow(); int EAcol = screen52.getCurrentCol(); int toEARow = bk.getNextByte(); int toEACol = bk.getNextByte() & 0xff; int EALength = bk.getNextByte() & 0xff; while (--EALength > 0) { bk.getNextByte(); } char EAAttr = (char)0; // a little intelligence here I hope if (EArow == 1 && EAcol == 2 && toEARow == screen52.getRows() && toEACol == screen52.getCols()) screen52.clearScreen(); else { int times = ((toEARow * screen52.getCols()) + toEACol) - ((EArow * screen52.getCols()) + EAcol); while (times-- >= 0) { screen52.setChar(EAAttr); } } break; case 04: // Command - Escape done = true; break; case 16: // TD - Transparent Data bk.getNextByte(); int j = bk.getNextByte(); // length while (j-- > 0) bk.getNextByte(); break; case 17: // SBA - set buffer address order (row column) int saRow = bk.getNextByte(); int saCol = bk.getNextByte() & 0xff; // make sure it is in bounds if (saRow >= 0 && saRow <= screen52.getRows() && saCol >= 0 && saCol <= screen52.getCols()) { screen52.goto_XY(saRow,saCol); // now set screen position for output } else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22,"invalid row/col order" + " saRow = " + saRow + " saRows = " + screen52.getRows() + " saCol = " + saCol); error = true; } break; case 18: // WEA - Extended Attribute bk.getNextByte(); bk.getNextByte(); break; case 19: // IC - Insert Cursor case 20: // MC - Move Cursor int icX = bk.getNextByte(); int icY = bk.getNextByte() & 0xff; if (icX >= 0 && icX <= saRows && icY >= 0 && icY <= saCols)// System.out.println(" IC " + icX + " " + icY); screen52.setPendingInsert(true,icX,icY); else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22," IC/IM position invalid "); error = true; } break; case 21: // WTDSF - Write To Display Structured Field order error = writeToDisplayStructuredField(); break; case 29: // SF - Start of Field int fcw1 = 0; int fcw2 = 0; int ffw1 = 0; int ffw0 = bk.getNextByte(); // FFW if (!isAttribute(ffw0)) { ffw1 = bk.getNextByte(); // FFW 1 fcw1 = bk.getNextByte(); // check for field control word if (!isAttribute(fcw1)) { fcw2 = bk.getNextByte(); // FCW 2 attr = bk.getNextByte(); // attribute field } else { attr = fcw1; // attribute of field fcw1 = 0; } } else { attr = ffw0; } int fLength = (bk.getNextByte() & 0xff) << 8 | bk.getNextByte() & 0xff; screen52.addField(attr,fLength, ffw0,ffw1,fcw1,fcw2); break; default: // all others must be output to screen byte byte0 = bk.getByteOffset(-1); if (isAttribute(byte0)) { screen52.setAttr(byte0); } else { if (!screen52.isStatusErrorCode()) { if (!isData(byte0)) {// if (byte0 == 255) {// sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x42,// " Attempt to send FF to screen");// }// else screen52.setChar(byte0); } else// screen52.setChar(getASCIIChar(byte0)); screen52.setChar(codePage.ebcdic2uni(byte0)); } else { if (byte0 == 0) screen52.setChar(byte0); else screen52.setChar(getASCIIChar(byte0)); } } break; } if (error) done = true; } } catch (Exception e) { System.out.println("write to display " + e.getMessage()); }; processCC1(control1); return error; }
9,805
private void doRenameVariables(IRBasicBlock block) { System.out.println("\ndoRenameVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); Operand[] refs = q.getReferencedOps(); if (refs != null) { int n = refs.length; for (int i=0; i<n; i+=1) { SSAStack st = getStack(refs[i]); if (st != null) { refs[i] = st.peek(); } } } if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); aq.setLHS(st.getNewVariable()); } } }
private void doRenameVariables(IRBasicBlock block) { System.out.println("\ndoRenameVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); Operand[] refs = q.getReferencedOps(); if (refs != null) { int n = refs.length; for (int i=0; i<n; i+=1) { SSAStack st = getStack(refs[i]); if (st != null) { refs[i] = st.peek(); } } } if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); aq.setLHS(st.getNewVariable()); } } }
9,806
private void placePhiFunctions() { System.out.println("\nplacePhiFunctions"); for (int i=0; i<bblocks.length; i+=1) { IRBasicBlock b = bblocks[i]; BootableArrayList defList = b.getDefList(); for (int j=0; j<defList.size(); j+=1) { Variable def = (Variable) defList.get(j); List df = b.getDominanceFrontier(); Iterator it = df.iterator(); while (it.hasNext()) { IRBasicBlock dfb = (IRBasicBlock) it.next(); dfb.add(new PhiAssignQuad(dfb, def.getIndex())); } } } }
private void placePhiFunctions() { System.out.println("\nplacePhiFunctions"); for (int i=0; i<bblocks.length; i+=1) { IRBasicBlock b = bblocks[i]; BootableArrayList defList = b.getDefList(); for (int j=0; j<defList.size(); j+=1) { Variable def = (Variable) defList.get(j); List df = b.getDominanceFrontier(); Iterator it = df.iterator(); while (it.hasNext()) { IRBasicBlock dfb = (IRBasicBlock) it.next(); dfb.add(new PhiAssignQuad(dfb, def.getIndex())); } } } }
9,807
private void popVariables(IRBasicBlock block) { System.out.println("\npopVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); st.pop(); } } }
private void popVariables(IRBasicBlock block) { System.out.println("\npopVariables block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof AssignQuad) { AssignQuad aq = (AssignQuad) q; SSAStack st = getStack(aq.getLHS()); st.pop(); } } }
9,808
private void renameVariables(IRBasicBlock block) { System.out.println("\nrenameVariables block: " + block); doRenameVariables(block); Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); rewritePhiParams(b); } it = block.getDominatedBlocks().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); if (b != block) { renameVariables(b); } } popVariables(block); }
private void renameVariables(IRBasicBlock block) { System.out.println("\nrenameVariables block: " + block); doRenameVariables(block); Iterator it = block.getSuccessors().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); rewritePhiParams(b); } it = block.getDominatedBlocks().iterator(); while (it.hasNext()) { IRBasicBlock b = (IRBasicBlock) it.next(); if (b != block) { renameVariables(b); } } popVariables(block); }
9,809
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q; SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); } } } }
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q; SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); } } } }
9,810
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q; SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); } } } }
private void rewritePhiParams(IRBasicBlock block) { if (block == null) { return; } System.out.println("\nrewritePhiParams block: " + block); Iterator it = block.getQuads().iterator(); while (it.hasNext()) { Quad q = (Quad) it.next(); if (q instanceof PhiAssignQuad) { PhiAssignQuad aq = (PhiAssignQuad) q; SSAStack st = getStack(aq.getLHS()); Variable var = st.peek(); if (var != null) { PhiOperand phi = (PhiOperand) aq.getPhiOperand(); phi.addSource(var); } } } }
9,811
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { Object key = e.nextElement(); Object val = tab.get(key); parent.add(new DynamicUtilTreeNode(key, val)); } } else if (children instanceof Vector) { Iterator i = ((Vector) children).iterator(); while (i.hasNext()) { Object n = i.next(); parent.add(new DynamicUtilTreeNode(n, n)); } } else if (children != null && children.getClass().isArray()) { Object[] arr = (Object[]) children; for (int i = 0; i < arr.length; ++i) parent.add(new DynamicUtilTreeNode(arr[i], arr[i])); } }
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { Object key = e.nextElement(); Object val = tab.get(key); parent.add(new DynamicUtilTreeNode(key, val)); } } else if (children instanceof Vector) { Iterator i = ((Vector) children).iterator(); while (i.hasNext()) { Object n = i.next(); parent.add(new DynamicUtilTreeNode(n, n)); } } else if (children != null && children.getClass().isArray()) { Object[] arr = (Object[]) children; for (int i = 0; i < arr.length; ++i) parent.add(new DynamicUtilTreeNode(arr[i], arr[i])); } }
9,812
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { Object key = e.nextElement(); Object val = tab.get(key); parent.add(new DynamicUtilTreeNode(key, val)); } } else if (children instanceof Vector) { Iterator i = ((Vector) children).iterator(); while (i.hasNext()) { Object n = i.next(); parent.add(new DynamicUtilTreeNode(n, n)); } } else if (children != null && children.getClass().isArray()) { Object[] arr = (Object[]) children; for (int i = 0; i < arr.length; ++i) parent.add(new DynamicUtilTreeNode(arr[i], arr[i])); } }
public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { Object key = e.nextElement(); Object val = tab.get(key); parent.add(new DynamicUtilTreeNode(key, val)); } } else if (children instanceof Vector) { Iterator i = ((Vector) children).iterator(); while (i.hasNext()) { Object n = i.next(); parent.add(new DynamicUtilTreeNode(n, n)); } } else if (children != null && children.getClass().isArray()) { Object[] arr = (Object[]) children; for (int i = 0; i < arr.length; ++i) parent.add(new DynamicUtilTreeNode(arr[i], arr[i])); } }
9,813