rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
Log.debug("in Locator(Array)"); | public Locator(Array array) { Log.debug("in Locator(Array)"); parentArray = array; List axisList = parentArray.getAxisList(); /**now, since we KNOW _parentArray is defined * (has to be instanciated via Array ONLY) * we can proceed to initialize the axis, index positions * to the origin (ie ind... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d092155f0ab3b3467584c230e4f4537297a35954/Locator.java/clean/src/gov/nasa/gsfc/adc/xdf/Locator.java | |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJWindow(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java |
public PrinterThread (char[] sc, Font font, int cols, int rows, | public PrinterThread (Screen5250 scr, Font font, int cols, int rows, | public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new ch... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java |
screen = new char[sc.length]; System.arraycopy(sc, 0, screen, 0, sc.length); | int len = scr.getScreenLength(); screen = new char[len]; screenAttr = new char[len]; int ret = scr.GetScreen(screen, len, PLANE_TEXT); ret = scr.GetScreen(screenAttr, len, PLANE_EXTENDED); | public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new ch... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java |
int len = sc.length; | public PrinterThread (char[] sc, Font font, int cols, int rows, Color colorBg, boolean toDefaultPrinter, Session ses) { setPriority(1); session = ses; session.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); config = ses.getConfiguration(); screen = new ch... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | |
if (screen[getPos(m,i)] >= ' ') { | if (screen[getPos(m,i)] >= ' ' && ((screen[getPos(m,i)] & EXTENDED_5250_NON_DSP) == 0)) { | public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java |
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | ||
public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | ||
if ((screenAttr[getPos(m,i)] & EXTENDED_5250_UNDERLINE) == 1) g.drawLine(x, (int)(y + (h1 - l.getLeading()-3)), (int)(x + w1), (int)(y + (h1 - l.getLeading())-3)); | public int print (Graphics g, PageFormat pageFormat, int page) { Graphics2D g2; //--- Validate the page number, we only print the first page if (page == 0) { //--- Create a graphic2D object and set the default parameters g2 = (Graphics2D) g; g2.setColor (Color.black); /... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | |
screen = null; screenAttr = null; | public void run () {// Toolkit tk = Toolkit.getDefaultToolkit();//int [][] range = new int[][] {//new int[] { 1, 1 }//};// JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL, JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NONE, "file", 1, 1, JobAttributes.Multi... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/c5eb8e840b5f3356b24c8dd991c0b6247ecf6849/PrinterThread.java/buggy/tn5250j/src/org/tn5250j/PrinterThread.java | |
public void actionPerformed(ActionEvent event) { | public void actionPerformed(ActionEvent event) { | public void actionPerformed(ActionEvent event) { // TODO } // actionPerformed() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public void cancelCellEditing() { | public void cancelCellEditing() { | public void cancelCellEditing() { // TODO } // cancelCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public Object getCellEditorValue() { | public Object getCellEditorValue() { | public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public void itemStateChanged(ItemEvent event) { | public void itemStateChanged(ItemEvent event) { | public void itemStateChanged(ItemEvent event) { // TODO } // itemStateChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean startCellEditing(EventObject event) { | public boolean startCellEditing(EventObject event) { | public boolean startCellEditing(EventObject event) { return false; // TODO } // startCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean stopCellEditing() { | public boolean stopCellEditing() { | public boolean stopCellEditing() { return false; // TODO } // stopCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public void cancelCellEditing() { | public void cancelCellEditing() { | public void cancelCellEditing() { // TODO } // cancelCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public Object getCellEditorValue() { | public Object getCellEditorValue() { | public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public Component getComponent() { | public Component getComponent() { | public Component getComponent() { return null; // TODO } // getComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { | public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { | public Component getTableCellEditorComponent(JTable tree, Object value, boolean isSelected, int row, int column) { return null; // TODO } // getTableCellEditorComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { return null; // TODO } // getTreeCellEditorComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
public boolean stopCellEditing() { | public boolean stopCellEditing() { | public boolean stopCellEditing() { return false; // TODO } // stopCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultCellEditor.java/clean/core/src/classpath/javax/javax/swing/DefaultCellEditor.java |
bad.minor = Minor.Any; | public static NoServant extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (NoServant) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("NoServant expected"); bad.initCaus... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NoServantHelper.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/NoServantHelper.java | |
descr = new PluginDescriptorModel(root); | if (root.getName().equals("plugin")) { descr = new PluginDescriptorModel(root); } else if (root.getName().equals("fragment")) { descr = new FragmentDescriptorModel(root); } else { throw new BuildException("Unknown root tag " + root.getName()); } | protected PluginDescriptorModel readDescriptor(File descriptor) { final PluginDescriptorModel descr; try { final XMLElement root = new XMLElement(new Hashtable(), true, false); try { final FileReader r = new FileReader(descriptor); try { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c9da92f17091366813e44b0c356f979da1c945e9/AbstractPluginTask.java/buggy/builder/src/builder/org/jnode/build/AbstractPluginTask.java |
Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); | Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
InternetAddress[] toAddrs = null, ccAddrs = null; | InternetAddress[] toAddrs = null, ccAddrs = null; | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
ccAddrs = InternetAddress.parse(cc, false); | ccAddrs = InternetAddress.parse(cc, false); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
msg.setSubject(subject.trim()); | msg.setSubject(subject.trim()); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
msg.setFrom(new InternetAddress(from)); | msg.setFrom(new InternetAddress(from)); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
MimeBodyPart mbp = new MimeBodyPart(); | MimeBodyPart mbp = new MimeBodyPart(); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
mbp.setText(message,"us-ascii"); | mbp.setText(message,"us-ascii"); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); | Multipart mp = new MimeMultipart(); mp.addBodyPart(mbp); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
msg.setContent(mp); | msg.setContent(mp); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
Transport.send(msg); | Transport.send(msg); | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
} | } | public void send() throws IOException { try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); Message msg = new MimeMessage(session); InternetAddress[] toAddrs = null, ccAddrs = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9e3f98202f0eb0ef5207f9793209ab3f13916f81/SendEMail.java/buggy/tn5250j/src/org/tn5250j/mailtools/SendEMail.java |
pendingUnlock =false; | public final boolean disconnect() { if (me != null && me.isAlive()) { me.interrupt(); keepTrucking = false; pthread.interrupt(); } screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,"X - Disconnected"); screen52.setKeyboardLocked(false); try { ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
screen52.setKeyboardLocked(false); | pendingUnlock = true; | private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1:... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java |
else pendingUnlock =false; | private void processCC0 (byte byte0) {// System.out.println(" Control byte0 " + Integer.toBinaryString(byte0 & 0xff)); boolean lockKeyboard = true; boolean resetMDT=false; boolean resetMDTAll = false; boolean nullMDT = false; boolean nullAll = false; // Bits 3 to 6 are reserved and... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
pendingUnlock = false; | private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen5... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
screen52.setKeyboardLocked(false); | pendingUnlock = true; | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java |
if (pendingUnlock) screen52.setKeyboardLocked(false); | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
pendingUnlock = false; | public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen52.STAT... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ec83ee5cb44579b417e5f46e342abb6c99c93d78/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
public BasicTextAreaUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTextAreaUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextAreaUI.java | ||
super("ttf"); | public TTFontProvider() { log.debug("new TTFontProvider"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/TTFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java | |
final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); | protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCac... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/TTFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java | |
if (false || renderer.equals("new")) { | protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCac... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/TTFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java | |
} else { r = new TTFSimpleTextRenderer(getFontData(font), font.getSize()); } | protected TextRenderer createTextRenderer(RenderCache renderCache, Font font) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); TextRenderer r; if (false || renderer.equals("new")) { r = new TTFTextRenderer(renderCac... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27da370c3e05f80083e8c618351850b1d1d108b6/TTFontProvider.java/buggy/gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java | |
this(10); | this(DEFAULT_BUFSIZE); | public GapContent() { this(10); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
{ return new Position() { int off = offset; | { return new Position() { int off = offset; | public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
public int getOffset() { return off; } }; } | public int getOffset() { return off; } }; } | public Position createPosition(final int offset) throws BadLocationException { return new Position() { int off = offset; public int getOffset() { return off; } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
{ return off; } | { return off; } | public int getOffset() { return off; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
txt.array = new char[len]; | int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + len) > length) throw new BadLocationException("len plus where cannot be greater" + " than the content length", len + where); | public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; | if ((where < gapStart) && ((gapStart - where) < len)) { char[] copy = new char[len]; int lenFirst = gapStart - where; System.arraycopy(buffer, where, copy, 0, lenFirst); System.arraycopy(buffer, gapEnd, copy, lenFirst, len - lenFirst); txt.array = copy; | public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
} | txt.count = len; } else { txt.array = buffer; if (where < gapStart) txt.offset = where; else txt.offset = where + (gapEnd - gapStart); txt.count = len; } } | public void getChars(int where, int len, Segment txt) throws BadLocationException { txt.array = new char[len]; System.arraycopy(buf.toString().toCharArray(), where, txt.array, 0, len); txt.count = len; txt.offset = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
return buf.substring(where, where+len); | Segment seg = new Segment(); getChars(where, len, seg); return new String(seg.array, seg.offset, seg.count); | public String getString(int where, int len) throws BadLocationException { return buf.substring(where, where+len); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
buf.insert(where, str); | int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((gapEnd - gapStart) < strLen) shiftEnd(strLen + DEFAULT_BUFSIZE); if (where != gapStart) shiftGap(where); System.arraycopy(str.... | public UndoableEdit insertString(int where, String str) throws BadLocationException { buf.insert(where, str); return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
return buf.length(); | return buffer.length - (gapEnd - gapStart); | public int length() { return buf.length(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
buf.delete(where, where + nitems); | int length = length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) throw new BadLocationException("where + nitems cannot be greater" + " than the content length", where + nitems); if (where != gapStar... | public UndoableEdit remove(int where, int nitems) throws BadLocationException { buf.delete(where, where + nitems); return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java |
super.setPropertiesFromAttributes(); | protected void setPropertiesFromAttributes() { // FIXME: Implement this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/InlineView.java/buggy/core/src/classpath/javax/javax/swing/text/html/InlineView.java | |
TreeNode last = null; | Object last = null; | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
last = (TreeNode) start.getLastPathComponent(); | last = start.getLastPathComponent(); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); | Object next = BasicTreeUI.this.getNextVisibleNode(last); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
else if (!next.isLeaf() && e.isShiftDown()) | else if (!mod.isLeaf(next) && e.isShiftDown()) | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode prev = (TreeNode) BasicTreeUI.this. getPreviousVisibleNode(last); | Object prev = BasicTreeUI.this.getPreviousVisibleNode(last); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
new TreePath(getPathToRoot(prev, 0))); | new TreePath(getPathToRoot(prev, 0))); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
else if (!prev.isLeaf() && e.isShiftDown()) | else if (!mod.isLeaf(prev) && e.isShiftDown()) | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode p = last.getParent(); | Object p = getParent(mod.getRoot(), last); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) | if (!mod.isLeaf(last) && BasicTreeUI.this.tree.isExpanded(path)) | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) | if (!mod.isLeaf(last) && BasicTreeUI.this.tree.isCollapsed(path)) | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode next = (TreeNode) BasicTreeUI.this. getNextVisibleNode(last); | Object next = BasicTreeUI.this.getNextVisibleNode(last); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(getPathToRoot(next, 0))); | BasicTreeUI.this.selectPath( BasicTreeUI.this.tree, new TreePath( getPathToRoot( next, 0))); | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (!last.isLeaf()) | if (!mod.isLeaf(last)) | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
try { BasicTreeUI.this.tree.fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); TreeNode last = null; if (start != null) last = (TreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == Key... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); | TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
BasicTreeUI.this.tree, path); | BasicTreeUI.this.tree, path); | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
&& (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) | && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x - rightChildIndent - 5))) | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) | if ((inBounds || cntlClick) && BasicTreeUI.this.tree.isVisible(path)) | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
try { BasicTreeUI.this.tree.fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); | return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); | protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { | protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { | protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, | return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + 4, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel((TreeNode) node)) * rightChildIndent), y); | if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getLevel(node)) * rightChildIndent), y); | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return new Point(x + ((getLevel((TreeNode) node) + 1) * rightChildIndent), y); | return new Point(x + ((getLevel(node) + 1) * rightChildIndent), y); | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
&& tree.isExpanded(new TreePath(getPathToRoot(((TreeNode) startNode), 0)))) | && tree.isExpanded(new TreePath(getPathToRoot(startNode, 0))) && mod.getChildCount(startNode) > 0) | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return getCellLocation(x, y + rowHeight, tree, mod, node, child); | return getCellLocation(x, y + rowHeight, tree, mod, node, child); | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
getNextVisibleNode((TreeNode) startNode)); | getNextVisibleNode(startNode)); | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((getL... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public int getLevel(TreeNode node) | int getLevel(Object node) | public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode current = node; | Object current = node; | public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
current = current.getParent(); | current = getParent(tree.getModel().getRoot(), current); | public int getLevel(TreeNode node) { int count = -1; TreeNode current = node; do { current = current.getParent(); count++; } while (current != null); return count; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode getNextNode(TreeNode curr) | Object getNextNode(Object curr) | TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (curr.getChildCount() != 0) return curr.getChildAt(0); | TreeModel mod = tree.getModel(); if (mod.getChildCount(curr) > 0) return mod.getChild(curr, 0); | TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode node = curr; TreeNode sibling; | Object node = curr; Object sibling = null; | TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
node = node.getParent(); | node = getParent(mod.getRoot(), node); | TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
while (sibling == null && node != null); | while (sibling == null && node != null); | TreeNode getNextNode(TreeNode curr) { if (curr.getChildCount() != 0) return curr.getChildAt(0); TreeNode node = curr; TreeNode sibling; do { sibling = getNextSibling(node); node = node.getParent(); } while (sibling == null && node != null); return sibl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreeNode getNextSibling(TreeNode node) | Object getNextSibling(Object node) | TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParent(); if (parent == null) return null; int index = parent.getIndex(node) + 1; if (index == parent.getChildCount()) return null; return parent.getChildAt(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.