rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return Integer.parseInt((String)appProps.get(prop)); | if (appProps.containsKey(prop)) { try { int i = Integer.parseInt((String)appProps.get(prop)); return i; } catch (NumberFormatException ne) { return 0; } } else return 0; | protected final int getIntProperty(String prop) { return Integer.parseInt((String)appProps.get(prop)); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
setCursorOff(); | private void gotoNextWord() { int pos = lastPos; setCursorOff(); if (screen[lastPos].getChar() > ' ') { advancePos(); // get the next space character while (screen[lastPos].getChar() > ' ' && pos != lastPos ) { advancePos(); } } els... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | private void gotoNextWord() { int pos = lastPos; setCursorOff(); if (screen[lastPos].getChar() > ' ') { advancePos(); // get the next space character while (screen[lastPos].getChar() > ' ' && pos != lastPos ) { advancePos(); } } els... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | private void gotoPrevWord() { int pos = lastPos; setCursorOff(); changePos(-1); // position previous white space character while (screen[lastPos].getChar() <= ' ') { changePos(-1); if (pos == lastPos) break; } changePos(-1); // get the previous space... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | private void gotoPrevWord() { int pos = lastPos; setCursorOff(); changePos(-1); // position previous white space character while (screen[lastPos].getChar() <= ' ') { changePos(-1); if (pos == lastPos) break; } changePos(-1); // get the previous space... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
if (appProps.containsKey("cursorBottOffset")) { cursorBottOffset = getIntProperty("cursorBottOffset"); } | public void loadProps(Properties props) { appProps = props; loadColors(); if (appProps.containsKey("colSeparator")) { if (getStringProperty("colSeparator").equals("Line")) colSepLine = 0; if (getStringProperty("colSeparator").equals("ShortLine")) colSepLine = 1; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected final void pasteMe(boolean special) { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); setCursorOff(); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); String... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected final void pasteMe(boolean special) { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); setCursorOff(); try { StringBuffer sb = new StringBuffer((String)content.getTransferData(DataFlavor.stringFlavor)); String... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
gui.revalidate(); | public void propertyChange(PropertyChangeEvent pce) { String pn = pce.getPropertyName(); boolean resetAttr = false; if (pn.equals("colorBg")) { colorBg = (Color)pce.getNewValue(); resetAttr = true; } if (pn.equals("colorBlue")) { colorBlue = (Color)pce.getNewValue(); ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
if (!cursorActive) 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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
keysBuffered = false; setKBIndicatorOff(); | keysBuffered = false; setKBIndicatorOff(); | 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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked && !isStatusErrorCode() && !done) { | setCursorActive(false); while (!done) { if (strokenizer.hasMoreKeyStrokes()) { | 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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
else { done = true; } } setCursorActive(true); | 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/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | public final void setBounds(int width, int height) { resizeScreenArea(width,height); dirty.setBounds(tArea.getBounds()); if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen resize problem gg2d ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorActive(true); | public final void setBounds(int width, int height) { resizeScreenArea(width,height); dirty.setBounds(tArea.getBounds()); if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen resize problem gg2d ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
updateCursorLoc(); updateCursorLoc = false; | updateCursorLoc(); | public void setCursorOff() { updateCursorLoc(); updateCursorLoc = false; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
updateCursorLoc = true; if (!keysBuffered) updateCursorLoc(); | updateCursorLoc(); | public void setCursorOn() { updateCursorLoc = true;// System.out.println("cursor on"); if (!keysBuffered) updateCursorLoc(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
public void setKeyboardLocked (boolean k) { keyboardLocked = k; if (!keyboardLocked) { if (keysBuffered) { sendKeys(""); } } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
public void setKeyboardLocked (boolean k) { keyboardLocked = k; if (!keyboardLocked) { if (keysBuffered) { sendKeys(""); } } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
setCursorOff(); | protected boolean simulateKeyStroke(char c){// if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) {// if (resetRequired)// return false;// else// resetError();// } boolean updateField = false; boolean numericError = false; boolean up... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateKeyStroke(char c){// if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) {// if (resetRequired)// return false;// else// resetError();// } boolean updateField = false; boolean numericError = false; boolean up... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOff(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
setCursorOn(); | protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
if (updateCursorLoc) { cursorActive = cursorActive ? false:true; | if (cursorActive) { | private void updateCursorLoc() { if (updateCursorLoc) { cursorActive = cursorActive ? false:true; int row = getRow(lastPos); int col = getCol(lastPos); bi.drawCursor(this,row,col, fmWidth,fmHeight, insertMode, crossHair, ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
font); | font,cursorBottOffset); | private void updateCursorLoc() { if (updateCursorLoc) { cursorActive = cursorActive ? false:true; int row = getRow(lastPos); int col = getCol(lastPos); bi.drawCursor(this,row,col, fmWidth,fmHeight, insertMode, crossHair, ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
cursorActive = false; | private void updateCursorLoc() { if (updateCursorLoc) { cursorActive = cursorActive ? false:true; int row = getRow(lastPos); int col = getCol(lastPos); bi.drawCursor(this,row,col, fmWidth,fmHeight, insertMode, crossHair, ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | |
protected synchronized void updateImage(int x, int y , int width, int height) { if (gg2d == null) { gg2d = (Graphics2D)gui.getGraphics();// System.out.println("was null"); } if (bi == null || gg2d == null) return; g2d.setClip(x,y,width,height); if (!cursorActive && x ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
resized = true; | public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) { // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); th... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java | |
protected void getBoundingArea(Rectangle r) { | protected Rectangle getBoundingArea() { | protected void getBoundingArea(Rectangle r) { if((getEndPoint().x > getStartPoint().x) && (getEndPoint().y > getStartPoint().y)) { r.setBounds(getStartPoint().x,getStartPoint().y,getEndPoint().x-getStartPoint().x,getEndPoint().y-getStartPoint().y); } else if((getEndPoint().x < g... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0686de448db01a9cc1b09cae982858a4d418dae8/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java |
if((getEndPoint().x > getStartPoint().x) && (getEndPoint().y > getStartPoint().y)) { r.setBounds(getStartPoint().x,getStartPoint().y,getEndPoint().x-getStartPoint().x,getEndPoint().y-getStartPoint().y); } else if((getEndPoint().x < getStartPoint().x) && (getEndPoint().y < getStartPoint().y)) { r.setBounds(getEndPoint(... | Rectangle r = new Rectangle(); getBoundingArea(r); return r; | protected void getBoundingArea(Rectangle r) { if((getEndPoint().x > getStartPoint().x) && (getEndPoint().y > getStartPoint().y)) { r.setBounds(getStartPoint().x,getStartPoint().y,getEndPoint().x-getStartPoint().x,getEndPoint().y-getStartPoint().y); } else if((getEndPoint().x < g... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0686de448db01a9cc1b09cae982858a4d418dae8/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java |
public int getKeyPos(int pos) { | public int getKeyPos(int row1, int col1) { | public int getKeyPos(int pos) { int y = pos - startPos(); cursorPos = pos; return y; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/ScreenField.java/buggy/tn5250j/src/org/tn5250j/ScreenField.java |
int y = pos - startPos(); cursorPos = pos; | int x = ((row1 * s.getCols()) + col1); int y = x - startPos(); cursorPos = x; | public int getKeyPos(int pos) { int y = pos - startPos(); cursorPos = pos; return y; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/ScreenField.java/buggy/tn5250j/src/org/tn5250j/ScreenField.java |
public boolean isInField(int pos, boolean chgToField) { ScreenField sf; for (int x = 0;x < sizeFields; x++) { sf = screenFields[x]; if (sf.withinField(pos)) { if (chgToField) { currentField = sf; } return true; } } return false; | public boolean isInField(int pos) { return isInField(pos,true); | public boolean isInField(int pos, boolean chgToField) { ScreenField sf; for (int x = 0;x < sizeFields; x++) { sf = screenFields[x]; if (sf.withinField(pos)) { if (chgToField) { currentField = sf; } return true; } } return fals... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/1a742d0be10805d0a2d3a610bd78c953d227d26f/ScreenFields.java/buggy/tn5250j/src/org/tn5250j/ScreenFields.java |
public synchronized void drawImageBuffer(Graphics2D gg2d) { | public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { | public synchronized void drawImageBuffer(Graphics2D gg2d) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
gg2d.drawImage(bi,null,0,0); | gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x + offLeft,y+ offTop); | public synchronized void drawImageBuffer(Graphics2D gg2d) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
public synchronized void drawImageBuffer(Graphics2D gg2d) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) { System.out.println(" we got a null graphic object "); return; } synchronized (lock) { gg2d.drawImage(... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java | ||
resized = true; | public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java | |
log.debug("set "+ keyStrokes); | public void setKeyStrokes (String strokes) { if (strokes != null) { keyStrokes.setLength(0);// System.out.println("set "+ keyStrokes); length = strokes.length(); } else { keyStrokes = new StringBuffer(); length = 0; } keyStrokes.append(strokes); i... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java | |
System.out.println(" mnemonic key was incomplete :1 " + | log.warn(" mnemonic key was incomplete :1 " + | public String nextKeyStroke() { String s = ""; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java |
System.out.println( | log.warn( | public String nextKeyStroke() { String s = ""; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java |
System.out.println( | log.warn( | public String nextKeyStroke() { String s = ""; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java |
System.out.println( | log.warn( | public String nextKeyStroke() { String s = ""; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java |
log.debug("next "+ keyStrokes); | public String nextKeyStroke() { String s = ""; boolean gotOne = false; int start = index; if(length > index) { sb.setLength(0); char c = keyStrokes.charAt(index); switch(c) { case '[': sb.append(c); index++; // we need t... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/KeyStrokenizer.java/buggy/tn5250j/src/org/tn5250j/KeyStrokenizer.java | |
public synchronized StringBuffer insert(int offset, char ch) | public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) | public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; retur... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; | if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchronized(count + len); VMSystem.arraycopy(value, offset, value, offset + len, count - offset); VMSystem.arraycopy(str, str_offset, value, offset, len); count ... | public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; retur... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/68a6301301378680519f2b146daec37812a1bc22/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
public int getHeight(ImageObserver io) { | public int getHeight() { | public int getHeight(ImageObserver io) { synchronized (lock) { // tell waiting threads to wake up lock.notifyAll(); return bi.getHeight(io); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
return bi.getHeight(io); | return bi.getHeight(); | public int getHeight(ImageObserver io) { synchronized (lock) { // tell waiting threads to wake up lock.notifyAll(); return bi.getHeight(io); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/GuiGraphicBuffer.java/buggy/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java |
throw new InvalidMidiDataException ("Invalid status: 0x" + Integer.toHexString(originalStatus)); | throw new InvalidMidiDataException("Invalid status: 0x" + Integer.toHexString(originalStatus)); | protected final int getDataLength(int status) throws InvalidMidiDataException { int originalStatus = status; if ((status & 0xF0) != 0xF0) status &= 0xF0; switch (status) { case NOTE_OFF: case NOTE_ON: case POLY_PRESSURE: case CONTROL_CHANGE: case PITCH_BEND: case SO... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/ShortMessage.java/buggy/core/src/classpath/javax/javax/sound/midi/ShortMessage.java |
public TTFFileInput(RandomAccessFile file) throws IOException { this(file, 0, file.length()); | public TTFFileInput(RandomAccessFile file, long offset, long length) throws IOException { this.ttf = file; this.offset = offset; this.length = length; | public TTFFileInput(RandomAccessFile file) throws IOException { this(file, 0, file.length()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/TTFFileInput.java/clean/gui/src/awt/org/jnode/awt/font/truetype/TTFFileInput.java |
public GrubBootSector(byte[] src) { super(src); | public GrubBootSector(int size) { super(size); | public GrubBootSector(byte[] src) { super(src); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/GrubBootSector.java/clean/fs/src/fs/org/jnode/fs/fat/GrubBootSector.java |
if (insideTimer != null) insideTimer.start(); | public void actionPerformed(ActionEvent event) { showTip(); if (insideTimer != null) insideTimer.start(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
parent.invalidate(); parent.validate(); parent.repaint(); | void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.validate(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
showTip(); | public void mouseEntered(MouseEvent event) { if (currentComponent != null && getContentPaneDeepestComponent(event) == currentComponent) return; currentPoint = event.getPoint(); currentComponent = (Component) event.getSource(); if (exitTimer.isRunning()) { exitTimer.stop(); showTip(); ins... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } | public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } if (enterTime... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
enterTimer.restart(); | enterTimer.restart(); | public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } if (enterTime... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
if (currentComponent == null) currentComponent = (Component) event.getSource(); currentComponent.invalidate(); currentComponent.validate(); currentComponent.repaint(); | public void mousePressed(MouseEvent event) { currentPoint = event.getPoint(); if (enterTimer.isRunning()) enterTimer.restart(); else if (insideTimer.isRunning()) { insideTimer.stop(); hideTip(); } if (currentComponent == null) currentComponent = (Component) event.getSource(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
if (! enabled || currentComponent == null) | if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
if (currentTip == null || currentTip.getComponent() != currentComponent | if (currentTip == null || currentTip.getComponent() != currentComponent | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
if (canToolTipFit(currentTip)) | if (parent instanceof JPopupMenu) setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled()); else setLightWeightPopupEnabled(true); if (isLightWeightPopupEnabled()) | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
JLayeredPane pane = ((JRootPane) SwingUtilities.getAncestorOfClass(JRootPane.class, currentComponent)) .getLayeredPane(); | JLayeredPane pane = ((JRootPane) SwingUtilities. getAncestorOfClass(JRootPane.class, currentComponent)). getLayeredPane(); | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
if (pane == null) return; | if (pane == null) return; if (containerPanel != null) hideTip(); containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
if (containerPanel != null) hideTip(); if (isLightWeightPopupEnabled()) { containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); } else { containerPanel = new JPanel(); containerPanel.add(currentTip); } LayoutManager lm = containerPanel.getLayout... | LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
p = getGoodPoint(p, pane, currentTip, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); pane.revalidate(); pane.repaint(); | p = SwingUtilities.convertPoint(currentComponent, p, pane); p = adjustLocation(p, pane, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); containerPanel.validate(); containerPanel.repaint(); | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
else { SwingUtilities.convertPointToScreen(p, currentComponent); tooltipWindow = new JWindow(); tooltipWindow.getContentPane().add(currentTip); tooltipWindow.setFocusable(false); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); | else if (currentComponent.isShowing()) { SwingUtilities.convertPointToScreen(p, currentComponent); p = adjustLocation(p, SwingUtilities.getWindowAncestor(currentComponent), dims); tooltipWindow = new JDialog(); tooltipWindow.setContentPane(currentTip); tooltipWindow.setUndecorated(true); tooltipWindow.getRootPane(). s... | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java |
currentTip.repaint(); | void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension di... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java | |
FileInputStream in = new FileInputStream(getConfigurationResource()); | FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); | private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { System.out.printl... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/5dce2038407a15b746230ab6f0003e41130af9af/SessionConfig.java/buggy/tn5250j/src/org/tn5250j/SessionConfig.java |
abstract public void saveSettings(String regKey, String fileName, String header); | abstract public void saveSettings(); | abstract public void saveSettings(String regKey, String fileName, String header); | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d176b045eb10d934c5b8bbe4ce787a7bbc5a271e/ConfigureFactory.java/buggy/tn5250j/src/org/tn5250j/interfaces/ConfigureFactory.java |
bad.minor = Minor.Any; | public static InvalidSlot extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (InvalidSlot) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("InvalidSlot expected"); bad.in... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InvalidSlotHelper.java/buggy/core/src/classpath/org/org/omg/PortableInterceptor/InvalidSlotHelper.java | |
if(pcdata != null) writeOut(outputstream, pcdata); | if(pcdata != null) { writeOut(outputstream, pcdata); if (!dontCloseNode) if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) { writeOut(outputstream, "</"+sXDFRootNodeName+">"); } else { writeOut(outputstream, "</"+nodeNameString+">"); } if (sPrettyXDFOutput) writeOut(outputstream, Const... | 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/b5f74590aa4a229b60a4749160322fc01693cd63/BaseObject.java/buggy/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/b5f74590aa4a229b60a4749160322fc01693cd63/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | ||
public void toXDFOutputStream (OutputStream outputstream, String indent) | public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) | public void toXDFOutputStream (OutputStream outputstream, String indent) { // prepare XMLDeclaration Hashtable XMLDeclAttribs = new Hashtable(); XMLDeclAttribs.put("standalone", new String("no")); XMLDeclAttribs.put("version", (String) sXMLSpecVersion); toXDFOutputStream(outputstream, XMLDeclAttr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/161a6723e174f89f58248382a4c2cc6e342e6bb2/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
Hashtable XMLDeclAttribs = new Hashtable(); XMLDeclAttribs.put("standalone", new String("no")); XMLDeclAttribs.put("version", (String) sXMLSpecVersion); toXDFOutputStream(outputstream, XMLDeclAttribs, indent); | String nodeNameString = this.classXDFNodeName; if (newNodeNameString != null) nodeNameString = newNodeNameString; if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { indent = ""; writeXMLDeclToOutputStream(outputstream, XMLDeclAttribs); } if (nodeNameString != null) { if (sPrettyXDFOutput) writeOut(... | public void toXDFOutputStream (OutputStream outputstream, String indent) { // prepare XMLDeclaration Hashtable XMLDeclAttribs = new Hashtable(); XMLDeclAttribs.put("standalone", new String("no")); XMLDeclAttribs.put("version", (String) sXMLSpecVersion); toXDFOutputStream(outputstream, XMLDeclAttr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/161a6723e174f89f58248382a4c2cc6e342e6bb2/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
super(p, q, g); this.x = x; | this(Registry.RAW_ENCODING_ID, p, q, g, x); | public DSSPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x) { super(p, q, g); this.x = x; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java |
throw new IllegalArgumentException("format"); | throw new IllegalArgumentException("Unsupported encoding format: " + format); | public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("format"); } return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java |
public static DSSPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is chea... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java | ||
IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPrivateKey) codec.decodePrivateKey(k); | return (DSSPrivateKey) new DSSKeyPairRawCodec().decodePrivateKey(k); | public static DSSPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is chea... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java |
else | catch (IllegalArgumentException ignored) | public static DSSPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is chea... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java |
throw new IllegalArgumentException("magic"); | public static DSSPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is chea... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java | |
return (DSSPrivateKey) new DSSKeyPairPKCS8Codec().decodePrivateKey(k); | public static DSSPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is chea... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/DSSPrivateKey.java/clean/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.