rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\"" + axisId + "\"" + " tag = \"" + tag + "\"/>");
writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\""); writeOutAttribute(outputstream, axisId); writeOut(outputstream, "\""); writeOut(outputstream, " tag = \""); writeOutAttribute(outputstream, tag); writeOut(outputstream, "\"");
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/TaggedXMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/TaggedXMLDataIOStyle.java
String strValue = new String(data, bytes_added, bytes_to_add); Log.debugln("AddByteData READCELL string(off:"+bytes_added+" len:"+bytes_to_add+") => ["+strValue+"]");
private void addByteDataToCurrentArray ( Locator location, byte[] data, int startByte, int endByte, int amount, ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/7e20ed4aa3d6ccd2e6b6e4fd041fa33b78c7221b/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public ButtonGroup() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ButtonGroup.java/buggy/core/src/classpath/javax/javax/swing/ButtonGroup.java
Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg);
Thread printerThread = new PrinterThread(screen, font, numCols, numRows, colorBg, (Session)gui);
public final void printMe() { Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg); printerThread.start(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6e49e9704132c8bb33f34764328d917eb8305cf3/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6e49e9704132c8bb33f34764328d917eb8305cf3/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
setCursorOn();
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6e49e9704132c8bb33f34764328d917eb8305cf3/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
if (!keysBuffered)
public void setCursorOn() { updateCursorLoc = true;// System.out.println("cursor on"); updateCursorLoc(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6e49e9704132c8bb33f34764328d917eb8305cf3/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2;
int arrowSize = comboBox.getHeight(); int editorWidth = comboBox.getBounds().width - arrowSize;
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
editor.setBounds(borderInsets.left, borderInsets.top, editorWidth, comboBox.getBounds().height - borderInsets.left - borderInsets.top); arrowButton.setBounds(editorWidth, 2, arrowButtonWidth, comboBox.getBounds().height - 4);
editor.setBounds(0, 0, editorWidth, comboBox.getBounds().height); arrowButton.setBounds(editorWidth, 0, arrowSize, arrowSize);
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); d.width += largestItemSize.getWidth(); d.height += largestItemSize.getHeight(); d.width += arrowButtonWidth; d.width += borderInsets.left + borderInsets.right; d.height += borderInsets.left + borderInsets.righ...
return getPreferredSize((JComponent) parent);
public Dimension preferredLayoutSize(Container parent) { Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); // add size for the area that will display selected item d.width += largestItemSize.getWidth(); d.height += largestItemSize.get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
int start = e.getIndex0(); int end = e.getIndex1();
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
if (largestItemSize == null) largestItemSize = new Dimension(0, 0);
if (displaySize == null) displaySize = getDisplaySize(); if (displaySize.width < getDefaultSize().width) displaySize.width = getDefaultSize().width; if (displaySize.height < getDefaultSize().height) displaySize.height = getDefaultSize().height;
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
for (int i = start; i < end; i++) { Object item = model.getElementAt(i); Component comp = renderer.getListCellRendererComponent(new JList(), item, -1, false, false); if (comp.getPreferredSize().getWidth() > largestItemSize.getWidth()) largestItemSize = comp.getPreferredSize(); }
comboBox.repaint();
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
largestItemSize = getLargestItemSize();
displaySize = getDisplaySize();
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. largestItemSize = getLargestItemSize(); comboBox.repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
{ if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenClose(); }
toggleOpenClose();
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) { if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenC...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
else if (e.getPropertyName().equals("font")) { Font font = (Font) e.getNewValue(); editor.setFont(font); listBox.setFont(font); arrowButton.setFont(font); comboBox.revalidate(); comboBox.repaint(); }
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
arrowButton.addMouseListener(mouseListener);
arrowButton.setEnabled(comboBox.isEnabled()); arrowButton.setFont(comboBox.getFont()); arrowButton.setMargin(new Insets(0, 0, 0, 0));
public void configureArrowButton() { arrowButton.addMouseListener(mouseListener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
editor.setFont(comboBox.getFont()); comboBox.getEditor().setItem(comboBox.getSelectedItem());
protected void configureEditor() { // FIXME: Need to implement. Set font and add listeners. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
return new Dimension(6, 17);
return new Dimension(100, 5);
protected Dimension getDefaultSize() { return new Dimension(6, 17); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
return null;
return MAXIMUM_SIZE;
public Dimension getMaximumSize(JComponent c) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
return null;
Dimension d = getDisplaySize(); Dimension arrowDim = arrowButton.getPreferredSize(); Dimension result = new Dimension(d.width + arrowDim.width, Math.max(d.height, arrowDim.height)); return result;
public Dimension getMinimumSize(JComponent c) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
return null;
return getMinimumSize(c);
public Dimension getPreferredSize(JComponent c) { // return null to indicate that combo box's layout will determin its // preferred size return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
configureArrowButton();
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
Color background = arrowButton.getBackground(); listBox.setBackground(background); listBox.setSelectionBackground(background.darker()); Color foreground = arrowButton.getForeground(); listBox.setForeground(foreground); listBox.setSelectionForeground(foreground);
protected void installComponents() { // create and install arrow button arrowButton = createArrowButton(); comboBox.add(arrowButton); // Set list that will be used by BasicComboBoxRender // in order to determine the right colors when rendering listBox = new JList(); Color background = arrowButt...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground"));
if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox.foreground"));
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
shadow = defaults.getColor("Button.shadow"); darkShadow = defaults.getColor("Button.darkShadow"); lightHighlight = defaults.getColor("Button.light"); highlight = defaults.getColor("Button.highlight");
if (comboBox.getBackground() instanceof UIResource) comboBox.setBackground(defaults.getColor("ComboBox.background")); shadow = defaults.getColor("ComboBox.buttonShadow"); darkShadow = defaults.getColor("ComboBox.buttonDarkShadow"); highlight = defaults.getColor("ComboBox.buttonHighlight");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground")); // Set default color tha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
comboBox.addMouseListener(mouseListener);
arrowButton.addMouseListener(mouseListener);
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
configureArrowButton();
protected void installListeners() { // install combo box's listeners propertyChangeListener = createPropertyChangeListener(); comboBox.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); comboBox.addFocusListener(focusListener); itemListener = createItemListene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
if (comboBox.isEditable())
if (!comboBox.isEditable())
public boolean isFocusTraversable(JComboBox c) { if (comboBox.isEditable()) return true; return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); }
Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus);
public void paint(Graphics g, JComponent c) { if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c; paintBorder(g, comboBox.getBounds(), hasFocus); Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
Component comp = comboBox.getRenderer() .getListCellRendererComponent(listBox, (currentValue != null ? currentValue : ""), -1, isPressed, hasFocus); if (! comboBox.isEnabled()) comp.setEnabled(false); g.translate(borderInsets.left, borderInsets.top); comp.setBounds(0, 0, bounds.width, bounds.height); comp.paint(g); g....
Component comp = comboBox.getRenderer().getListCellRendererComponent( listBox, (currentValue != null ? currentValue : ""), -1, isPressed, hasFocus); if (! comboBox.isEnabled()) { comp.setBackground(UIManager.getLookAndFeelDefaults().getColor( "ComboBox.disabledBackground")); comp.setForeground(UIManager.getLookAndFeelD...
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { if (! comboBox.isEditable()) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selecte...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
Rectangle cbBounds = comboBox.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, cbBounds.y + borderInsets.top, cbBounds.width - arrowButtonWidth - borderInsets.left - borderInsets.right, cbBounds.height - borderInsets.top - borderInsets.bottom);
Rectangle cbBounds = SwingUtilities.getLocalBounds(comboBox); Rectangle abBounds = arrowButton.getBounds(); Rectangle rectForCurrentValue = new Rectangle(cbBounds.x, cbBounds.y, cbBounds.width - abBounds.width, cbBounds.height);
protected Rectangle rectangleForCurrentValue() { Rectangle cbBounds = comboBox.getBounds(); // Subtract width or the arrow button and border insets Rectangle rectForCurrentValue = new Rectangle(cbBounds.x + borderInsets.left, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
arrowButton.removeMouseListener(mouseListener);
public void unconfigureArrowButton() { arrowButton.removeMouseListener(mouseListener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
if (comboBox.getFont() instanceof UIResource) comboBox.setFont(null);
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null);
if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(null); if (comboBox.getBackground() instanceof UIResource) comboBox.setBackground(null);
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
lightHighlight = null;
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); comboBox.setBackground(null); comboBox.setFont(null); comboBox.setForeground(null); shadow = null; darkShadow = null; lightHighlight = null; highlight = null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
comboBox.removeMouseListener(mouseListener);
arrowButton.removeMouseListener(mouseListener);
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
unconfigureArrowButton();
protected void uninstallListeners() { comboBox.removePropertyChangeListener(propertyChangeListener); propertyChangeListener = null; comboBox.removeFocusListener(focusListener); focusListener = null; comboBox.removeItemListener(itemListener); itemListener = null; comboBox.removeKeyListener(keyLis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
InputMap im = new InputMap ();
InputMapUIResource im = new InputMapUIResource ();
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/UIDefaults.java/buggy/core/src/classpath/javax/javax/swing/UIDefaults.java
im.put (KeyStroke.getKeyStroke ((String) bind[2*i]),
Object curr = bind[2*i]; if (curr instanceof KeyStroke) im.put((KeyStroke) curr, bind[2*i+1]); else im.put(KeyStroke.getKeyStroke((String) curr),
public Object createValue(UIDefaults table) { InputMap im = new InputMap (); for (int i = 0; 2*i+1 < bind.length; ++i) { im.put (KeyStroke.getKeyStroke ((String) bind[2*i]), bind[2*i+1]); } return im; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/UIDefaults.java/buggy/core/src/classpath/javax/javax/swing/UIDefaults.java
public ViewportUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ViewportUI.java/clean/core/src/classpath/javax/javax/swing/plaf/ViewportUI.java
super();
public FocusManager() { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/FocusManager.java/clean/core/src/classpath/javax/javax/swing/FocusManager.java
return null;
KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (fm instanceof FocusManager) return (FocusManager) fm; else { System.err.println("The Swing FocusManager API has been obsoleted by"); System.err.println("the new KeyboardFocusManager system."); System.err.println("You should either not ...
public static FocusManager getCurrentManager() { return null; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/FocusManager.java/clean/core/src/classpath/javax/javax/swing/FocusManager.java
KeyboardFocusManager.setCurrentKeyboardFocusManager(manager);
public static void setCurrentManager(FocusManager manager) { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/FocusManager.java/clean/core/src/classpath/javax/javax/swing/FocusManager.java
setFocusable(false);
public BasicArrowButton(int direction) { super(); setDirection(direction); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
return MAXIMUM_SIZE;
return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
public Dimension getMaximumSize() { return MAXIMUM_SIZE; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
return MINIMUM_SIZE;
return new Dimension(5, 5);
public Dimension getMinimumSize() { return MINIMUM_SIZE; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
return PREFERRED_SIZE;
return new Dimension(16, 16);
public Dimension getPreferredSize() { return PREFERRED_SIZE; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4;
int height = getHeight(); int size = height / 4; int x = (getWidth() - size) / 2; int y = (height - size) / 2;
public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
public void paint(Graphics g) { super.paint(g); Rectangle bounds = getBounds(); int size = bounds.height / 4; int x = bounds.x + (bounds.width - size) / 2; int y = (bounds.height - size) / 4; ButtonModel m = getModel(); if (m.isArmed()) { x++; y++; } paintTriangle(g, x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicArrowButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicArrowButton.java
synchronized(obj.openGroupNodeHash) {
synchronized(this.openGroupNodeHash) {
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
Iterator iter = obj.openGroupNodeHash.iterator();
Iterator iter = this.openGroupNodeHash.iterator();
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
obj.openGroupNodeHash.remove(openGroup);
this.openGroupNodeHash.remove(openGroup);
private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.openGroupNodeHash.iterator(); /...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
synchronized(obj.openGroupNodeHash) {
synchronized(this.openGroupNodeHash) {
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if(!obj.openGroupNodeHash.contains(memberGroup)) {
if(!this.openGroupNodeHash.contains(memberGroup)) {
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
indent.concat(sPrettyXDFOutputIndentation); memberGroup.toXDFOutputStream(outputstream, indent); obj.openGroupNodeHash.add(memberGroup);
newIndent.append(sPrettyXDFOutputIndentation); memberGroup.toXDFOutputStream(outputstream, new Hashtable(), newIndent.toString(), true, null, null); this.openGroupNodeHash.add(memberGroup);
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
return indent;
return newIndent.toString();
private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(obj.openGroupNodeHash) { Iterator iter = obj.groupMemberHash.iterator(); // ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
{ writeOut(outputstream,"<" + sXDFRootNodeName); } else { writeOut(outputstream,"<" + nodeNameString); }
nodeNameString = sXDFRootNodeName; writeOut(outputstream,"<" + nodeNameString);
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName == null){ writeOut(outputstream, "></" + nodeNameString + ">"); if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); return ; }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if ((sPrettyXDFOutput) && (pcdata == null) && (childObjs.size() !=0)) writeOut(outputstream, Constants.NEW_LINE);
if ((sPrettyXDFOutput) && (pcdata == null)) writeOut(outputstream, Constants.NEW_LINE);
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
dealWithOpeningGroupNodes(containedObj, outputstream, indent); dealWithClosingGroupNodes(containedObj, outputstream, indent);
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
dealWithOpeningGroupNodes(containedObj, outputstream, indent); dealWithClosingGroupNodes(containedObj, outputstream, indent);
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if (!dontCloseNode) if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream, "</"+sXDFRootNodeName+">"); } else { writeOut(outputstream, "</"+nodeNameString+">"); } if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); return ;
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
writeOut(outputstream, "</"+nodeNameString + ">");
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
return ;
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if (sPrettyXDFOutput) writeOut(outputstream, indent); if (!dontCloseNode) if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream, "</"+sXDFRootNodeName+">"); } else {
indent = dealWithClosingGroupNodes((BaseObject) this, outputstream, indent); if (sPrettyXDFOutput && pcdata == null) writeOut(outputstream, indent); if (!dontCloseNode)
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
}
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if(dontCloseNode) {
if (dontCloseNode) {
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
writeOut(outputstream, ">");
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1a33479dd4b4f19dcf42a74d4661bb72af284082/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
String t = new Date(e.getWhen()).toString();
public void actionPerformed(ActionEvent e) { String t = new Date(e.getWhen()).toString(); Session ses; for (int x = 0; x < sessions.size(); x++) { try { ses = (Session)sessions.get(x); if (ses.isConnected() && ses.isSendKeepAlive()) { ses.getVT().sendHeartBe...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5ddb0053bbb8afa1940704f1fe03fe3b5bee4661/Sessions.java/clean/tn5250j/src/org/tn5250j/Sessions.java
protected void uninstallDefaults(JComponent c) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicViewportUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicViewportUI.java
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalScrollBarUI instance; if (o == null) { instance = new MetalScrollBarUI(); instances.put(component, instance); } else instance = (MetalScrollBarUI) o; return instance;
return new MetalScrollBarUI();
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalScrollBarUI instance; if (o == null) { instance = new MetalScrollBarUI(); instances.put(component, instance); } else instance ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/MetalScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java
g.setColor(thumbDarkShadowColor); g.drawRect(thumbBounds.x, thumbBounds.y, thumbBounds.width - 1, thumbBounds.height - 1);
int hAdj = 1; int wAdj = 1; if (scrollbar.getOrientation() == HORIZONTAL) hAdj++; else wAdj++; g.setColor(new Color(102, 102, 153)); g.drawRect(thumbBounds.x, thumbBounds.y, thumbBounds.width - wAdj, thumbBounds.height - hAdj);
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/MetalScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java
thumbHighlightColor, thumbDarkShadowColor);
thumbHighlightColor, new Color(102, 102, 153));
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/MetalScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollBarUI.java
return ftpFile.getTimestamp().getTimeInMillis();
return ftpFile.lastModified().getTime();
public long getLastModified() throws IOException { //return ftpFile.lastModified().getTime(); return ftpFile.getTimestamp().getTimeInMillis(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7bedbedab739f364e6ba4d4ce6644de8332fbdf9/FTPFSEntry.java/buggy/fs/src/fs/org/jnode/fs/ftpfs/FTPFSEntry.java
return ftpFile.isDirectory();
return ftpFile.isDir();
public boolean isDirectory() { return ftpFile.isDirectory(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7bedbedab739f364e6ba4d4ce6644de8332fbdf9/FTPFSEntry.java/buggy/fs/src/fs/org/jnode/fs/ftpfs/FTPFSEntry.java
return !ftpFile.isFile();
return !ftpFile.isDir() && !ftpFile.isLink();
public boolean isFile() { return !ftpFile.isFile(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7bedbedab739f364e6ba4d4ce6644de8332fbdf9/FTPFSEntry.java/buggy/fs/src/fs/org/jnode/fs/ftpfs/FTPFSEntry.java
styleTable.put(DEFAULT_STYLE, defaultStyle);
public StyleContext() { listenerList = new EventListenerList(); styleTable = new Hashtable(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/StyleContext.java/clean/core/src/classpath/javax/javax/swing/text/StyleContext.java
(sb.charAt(len) <= ' ' || sb.charAt(len) >= '\uff20' )) {
(sb.charAt(len) < ' ' || sb.charAt(len) >= '\uff20' )) {
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/ScreenFields.java/buggy/tn5250j/src/org/tn5250j/ScreenFields.java
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/ScreenFields.java/buggy/tn5250j/src/org/tn5250j/ScreenFields.java
if (sf.isSignedNumeric() && sb.charAt(sb.length() - 1) == '-') {
if (sf.isSignedNumeric() && sb.length() > 0 && sb.charAt(sb.length() - 1) == '-') {
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/ScreenFields.java/buggy/tn5250j/src/org/tn5250j/ScreenFields.java
protected void readFormatTable(ByteArrayOutputStream baosp,int readType, CodePage codePage) { ScreenField sf; boolean isSigned = false; char c; if (masterMDT) { StringBuffer sb = new StringBuffer(); for (int x = 0; x < sizeFields; x++) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/ScreenFields.java/buggy/tn5250j/src/org/tn5250j/ScreenFields.java
jarClassPaths = userDir + File.separator + "jython.jar";
jarClassPaths = "." + File.pathSeparator + "jython.jar" + File.pathSeparator + "jt400.jar" + File.pathSeparator + "itext.jar"; if (sessions.contains("scriptClassPath")) { jarClassPaths += File.pathSeparator + sessions.getProperty("scriptClassPath"); }
private void initJarPaths() { String userDir = System.getProperty("user.dir"); if (new File(userDir + File.separator + "jython.jar").exists()) { jarClassPaths = userDir + File.separator + "jython.jar"; } if (jarClassPaths != null) System.setProperty("python.path",jarClassPaths); ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5789c79c96d12348465fdde2a7ac1b78573fc81d/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
Locale.setDefault(parseLocal(getParm("-L",args))); LangTool.init(); if (args[0].startsWith("-")) { m.sessionArgs = null; } else { m.splash.updateProgress(++m.step); m.frame1.setVisible(true); m.splash.setVisible(false); m.frame1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); LangTool.init(); m.sessionAr...
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5789c79c96d12348465fdde2a7ac1b78573fc81d/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
}
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5789c79c96d12348465fdde2a7ac1b78573fc81d/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5789c79c96d12348465fdde2a7ac1b78573fc81d/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5789c79c96d12348465fdde2a7ac1b78573fc81d/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent t = getTextComponent(event); if (t != null && t.isEnabled() && t.isEditable()) t.replaceSelection(event.getActionCommand());
JTextComponent target = getTextComponent(event); if ((target != null) && (event != null)) { if ((target.isEditable()) && (target.isEnabled())) { String content = event.getActionCommand(); int mod = event.getModifiers(); if ((content != null) && (content.length() > 0) && (mod & ActionEvent.ALT_MASK) == 0 && (mod & Acti...
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
public AccessibleJTextComponent() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTextComponent.java/clean/core/src/classpath/javax/javax/swing/text/JTextComponent.java
screen.pasteMe(false);
screen.sendKeys(MNEMONIC_PASTE);
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
screen.copyMe();
screen.sendKeys(MNEMONIC_COPY);
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
screen.pasteMe(false);
screen.sendKeys(MNEMONIC_PASTE);
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
screen.pasteMe(false);
screen.sendKeys(MNEMONIC_PASTE);
public void actionPerformed(ActionEvent e) { screen.pasteMe(false); getFocusForMe(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
screen.copyMe();
screen.sendKeys(MNEMONIC_COPY);
public void actionPerformed(ActionEvent e) { screen.copyMe(); getFocusForMe(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
screen.pasteMe(false);
screen.sendKeys(MNEMONIC_PASTE);
public void actionPerformed(ActionEvent e) { screen.pasteMe(false); getFocusForMe(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
stopMacro = false;
stopMacro = !macroRunning;
public void setMacroRunning(boolean mr) { macroRunning = mr; if (macroRunning) screen.setSRIndicatorOn(); else screen.setSRIndicatorOff(); stopMacro = false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
setMacroRunning(true); macroRunning = false;
setMacroRunning(false);
public void setStopMacroRequested () { setMacroRunning(true); macroRunning = false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/edbd20fc6413ca98c2853301af5c236b8710c276/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java
System.out.println(srcFile + " not found !");
log.warn(srcFile + " not found !");
private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java
System.out.println("Global io-error !");
log.warn("Global io-error !");
private void copyConfigs(String sesFile) { /** Copy the config-files to the user's home-dir */ String srcFile = System.getProperty("user.dir") + File.separator + sesFile; String dest = System.getProperty("user.home") + File.separator + ".tn5250j" + File.separator + sesFile; File rmvFil...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/GlobalConfigure.java/clean/tn5250j/src/org/tn5250j/GlobalConfigure.java