rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try {// ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/99debc0e39981c309029bd7389a7d7c50837d87b/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java | ||
cancelEditing(tree); | completeEditing(false, false, false); | public void editingCanceled(ChangeEvent e) { cancelEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
stopEditing(tree); | completeEditing(false, false, true); | public void editingStopped(ChangeEvent e) { stopEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (lead!=null) | if (lead != null) | void repaintLeadRow() { TreePath lead = tree.getLeadSelectionPath(); if (lead!=null) tree.repaint(tree.getPathBounds(lead)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
throws NotImplementedException | public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
throws NotImplementedException | public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
throws NotImplementedException | public void keyTyped(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
char typed = Character.toLowerCase(e.getKeyChar()); for (int row = tree.getLeadSelectionRow() + 1; row < tree.getRowCount(); row++) { if (checkMatch(row, typed)) { tree.setSelectionRow(row); tree.scrollRowToVisible(row); return; } } for (int row = 0; row < tree.getLeadSelectionRow(); row++) { if (checkMatch(row, type... | public void keyTyped(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
throws NotImplementedException | public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
if (tree != null && tree.isEnabled()) | if (! e.isConsumed()) { handleEvent(e); selectedOnPress = true; } else | public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(); TreePath path = getClosestPathForLocation(tree, x, y); if (path != null) { Rectangle bounds = getPathBounds(tree, path); if (SwingUtilities.isLeftMouseButton(e)) checkForClickInExpandControl(pat... | selectedOnPress = false; | public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
throws NotImplementedException | public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (! e.isConsumed() && ! selectedOnPress) handleEvent(e); | public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
source.addMouseListener(this); source.addMouseMotionListener(this); dispatch(e); | public MouseInputHandler(Component source, Component destination, MouseEvent e) { this.source = source; this.destination = destination; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseClicked(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
dispatch(e); | public void mouseClicked(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
dispatch(e); | public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseEntered(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); | public void mouseEntered(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseExited(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); | public void mouseExited(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
removeFromSource(); | public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
throws NotImplementedException | public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
dispatch(e); removeFromSource(); | public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | protected void removeFromSource() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (source != null) { source.removeMouseListener(this); source.removeMouseMotionListener(this); } source = null; destination = null; | protected void removeFromSource() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) | Dimension prefSize; if (editingComponent != null && editingRow == row) | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
TreePath path = treeState.getPathForRow(row); | prefSize = editingComponent.getPreferredSize(); int rowHeight = getRowHeight(); if (rowHeight > 0 && rowHeight != prefSize.height) prefSize.height = rowHeight; } else { Component rend = currentCellRenderer.getTreeCellRendererComponent(tree, cell, tree.isRowSelected(row), expanded, treeModel.isLeaf(cell), row, false);... | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
size.width = SwingUtilities.computeStringWidth(fm, s); size.width = size.width + getCurrentControlIcon(path).getIconWidth() + gap + getNodeIcon(path).getIconWidth(); size.height = getMaxHeight(tree); size.y = size.height * row; | size.y = prefSize.height * row; size.width = prefSize.width; size.height = prefSize.height; | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
else size = new Rectangle(getRowX(row, depth), prefSize.height * row, prefSize.width, prefSize.height); | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
else if (property.equals(JTree.EDITABLE_PROPERTY)) setEditable(((Boolean) event.getNewValue()).booleanValue()); | public void propertyChange(PropertyChangeEvent event) { String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } else i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
throws NotImplementedException | public void propertyChange(PropertyChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
treeSelectionModel.resetRowSelection(); | public void propertyChange(PropertyChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
completeEditing(); | public void treeCollapsed(TreeExpansionEvent event) { validCachedPreferredSize = false; treeState.setExpandedState(event.getPath(), false); // The maximal cell height may change maxHeight = 0; tree.revalidate(); tree.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.scrollPathToVisible(tree.getLeadSelectionPath()); | public void actionPerformed(ActionEvent e) { if (tree != null) { String command = (String) getValue(Action.NAME); if (command.equals("selectFirst")) { ensureRowsAreVisible(0, 0); tree.setSelectionInterval(0, 0); } if (command.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.scrollPathToVisible(tree.getLeadSelectionPath()); | public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
newVisible.y -= (visible.height - newVisible.height); | newVisible.y -= visible.height - newVisible.height; | public void actionPerformed(ActionEvent e) { String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeS... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (tree.isEditing()) tree.cancelEditing(); | completeEditing(); | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (o!=null) | if (o != null) | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (n!=null) | if (n != null) | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.scrollPathToVisible(tree.getLeadSelectionPath()); | public void actionPerformed(ActionEvent e) { int selected = tree.getLeadSelectionRow(); if (selected != -1 && isLeaf(selected)) { TreePath anchorPath = tree.getAnchorSelectionPath(); TreePath leadPath = tree.getLeadSelectionPath(); toggleExpandState(getPathForRow(tree,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
!(parent.getPathCount()==1 && !tree.isRootVisible()) ) | ! (parent.getPathCount() == 1 && ! tree.isRootVisible())) | public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; String command = (String) getValue(Action.NAME); if (command.equals("selectParent")) { if (current == null) return; if (tree.isE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.scrollPathToVisible(tree.getLeadSelectionPath()); | public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; String command = (String) getValue(Action.NAME); if (command.equals("selectParent")) { if (current == null) return; if (tree.isE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
completeEditing(false, false, false); finish(); | if (editingComponent != null) completeEditing(false, true, false); | public void cancelEditing(JTree tree) { // There is no need to send the cancel message to the editor, // as the cancellation event itself arrives from it. This would // only be necessary when cancelling the editing programatically. completeEditing(false, false, false); finish(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (tree.getInvokesStopCellEditing() && stopEditingInCompleteEditing && editingComponent != null) cellEditor.stopCellEditing(); | protected void completeEditing() { completeEditing(false, true, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
treeState = createLayoutCache(); | configureLayoutCache(); treeState.setRootVisible(tree.isRootVisible()); | protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
configureLayoutCache(); | protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
action= new TreeAction(); | action = new TreeHomeAction(-1, "selectFirst"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action= new TreeHomeAction(-1, "selectFirst"); | action = new TreeHomeAction(-1, "selectFirstChangeLead"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action= new TreeHomeAction(-1, "selectFirstChangeLead"); | action = new TreeHomeAction(-1, "selectFirstExtendSelection"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action= new TreeHomeAction(-1, "selectFirstExtendSelection"); | action = new TreeHomeAction(1, "selectLast"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action= new TreeHomeAction(1, "selectLast"); | action = new TreeHomeAction(1, "selectLastChangeLead"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action= new TreeHomeAction(1, "selectLastChangeLead"); am.put(action.getValue(Action.NAME), action); action= new TreeHomeAction(1, "selectLastExtendSelection"); | action = new TreeHomeAction(1, "selectLastExtendSelection"); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action = new TreeStartEditingAction("startEditing"); am.put(action.getValue(Action.NAME), action); action = new TreeCancelEditingAction("cancel"); am.put(action.getValue(Action.NAME), action); | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
return ((TreePath) parent.getLastPathComponent()); | return (TreePath) parent.getLastPathComponent(); | protected TreePath getLastChildPath(TreePath parent) { return ((TreePath) parent.getLastPathComponent()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
hashColor = UIManager.getColor("Tree.hash"); if (hashColor == null) hashColor = Color.black; | protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
action = new TreeAction(); | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
treeSelectionModel.addPropertyChangeListener (selectionModelPropertyChangeListener); | treeSelectionModel.addPropertyChangeListener( selectionModelPropertyChangeListener); | protected void installListeners() { propertyChangeListener = createPropertyChangeListener(); tree.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); tree.addFocusListener(focusListener); treeSelectionListener = createTreeSelectionListener(); tree.addTreeSelect... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
int width = 8; | int width; | protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
int left = getRowX(tree.getRowForPath(path), path.getPathCount() - 1) -getRightChildIndent() - width / 2 + i.left; | int depth; if (isRootVisible()) depth = path.getPathCount()-1; else depth = path.getPathCount()-2; int left = getRowX(tree.getRowForPath(path), depth) - width + i.left; | protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (parent != null) | boolean paintLine; if (isRootVisible()) paintLine = parent != null; else paintLine = parent != null && parent.getPathCount() > 1; if (paintLine) | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
paintVerticalLine(g, tree, parentBounds.x + 2* gap, | paintVerticalLine(g, tree, parentBounds.x + 2 * gap, | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
stopEditingInCompleteEditing = true; | protected void prepareForUIInstall() { lastSelectedRow = -1; preferredSize = new Dimension(); largeModel = tree.isLargeModel(); preferredSize = new Dimension(); setModel(tree.getModel()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
cellEditor = editor; createdCellEditor = true; | updateCellEditor(); | protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; createdCellEditor = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
currentCellRenderer = tcr; | completeEditing(); | protected void setCellRenderer(TreeCellRenderer tcr) { currentCellRenderer = tcr; updateRenderer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (treeState != null) { treeState.invalidateSizes(); updateSize(); } | protected void setCellRenderer(TreeCellRenderer tcr) { currentCellRenderer = tcr; updateRenderer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.setEditable(newValue); | updateCellEditor(); | protected void setEditable(boolean newValue) { tree.setEditable(newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
completeEditing(); | protected void setLargeModel(boolean largeModel) { if (largeModel != this.largeModel) { tree.removeComponentListener(componentListener); this.largeModel = largeModel; tree.addComponentListener(componentListener); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
completeEditing(); | protected void setRootVisible(boolean newValue) { tree.setRootVisible(newValue); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
completeEditing(); | protected void setRowHeight(int rowHeight) { if (rowHeight == 0) rowHeight = getMaxHeight(tree); treeState.setRowHeight(rowHeight); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
completeEditing(); | protected void setSelectionModel(TreeSelectionModel newLSM) { if (newLSM != null) { treeSelectionModel = newLSM; tree.setSelectionModel(treeSelectionModel); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
return (! isLeaf && hasControlIcons()); | return ! isLeaf && hasControlIcons(); | protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
updateCellEditor(); TreeCellEditor ed = getCellEditor(); | if (isEditing(tree) && tree.getInvokesStopCellEditing() && ! stopEditing(tree)) return false; | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) | completeEditing(); TreeCellEditor ed = cellEditor; if (ed != null && tree.isPathEditable(path)) | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
bounds.width = tree.getWidth() - bounds.x; | Dimension size = editingComponent.getPreferredSize(); int rowHeight = getRowHeight(); if (size.height != bounds.height && rowHeight > 0) size.height = rowHeight; | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
editingPath = path; editingRow = tree.getRowForPath(editingPath); | if (size.width != bounds.width || size.height != bounds.height) { editorHasDifferentSize = true; treeState.invalidatePathBounds(path); updateSize(); } else editorHasDifferentSize = false; | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Object value = editingPath.getLastPathComponent(); | tree.add(editingComponent); editingComponent.setBounds(bounds.x, bounds.y, size.width, size.height); editingComponent.validate(); editingPath = path; | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, value, true, expanded, isLeaf(editingRow), editingRow); | tree.setSelectionRow(editingRow); stopEditingInCompleteEditing = true; } | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.removeAll(); | editorRequestFocus(editingComponent); if (event instanceof MouseEvent) { Point p = SwingUtilities.convertPoint(tree, event.getX(), event.getY(), editingComponent); Component active = SwingUtilities.getDeepestComponentAt(editingComponent, p.x, p.y); if (active != null) { MouseInputHandler ih = new MouseInputHandler(tr... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Component container = editingComponent.getParent(); container.setBounds(bounds); tree.add(container); editingComponent.requestFocus(); | } } | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
else editingComponent = null; } | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
tree.scrollPathToVisible(path); if (path != null && tree.isVisible(path)) | public void startEditingAtPath(JTree tree, TreePath path) { startEditing(path, null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (isEditing(tree)) | boolean ret = false; if (editingComponent != null && cellEditor.stopCellEditing()) | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
finish(); | ret = true; | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
return ! isEditing(tree); | return ret; | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (tree.isExpanded(path)) | if (treeState.isExpanded(path)) | protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
action = null; | protected void uninstallKeyboardActions() { action = null; tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); | completeEditing(); TreeCellEditor newEd = null; if (tree != null && tree.isEditable()) { newEd = tree.getCellEditor(); if (newEd == null) { newEd = createDefaultCellEditor(); if (newEd != null) { tree.setCellEditor(newEd); | protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} } if (newEd != cellEditor) { if (cellEditor != null && cellEditorListener != null) cellEditor.removeCellEditorListener(cellEditorListener); cellEditor = newEd; if (cellEditorListener == null) cellEditorListener = createCellEditorListener(); if (cellEditor != null && cellEditorListener != null) cellEditor.addCellEdit... | protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
treeState.setExpandedState(((TreePath) expanded.nextElement()), true); | treeState.setExpandedState((TreePath) expanded.nextElement(), true); | protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState(((TreePath) expanded.nextElement()), true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); | { TreeCellRenderer rend = tree.getCellRenderer(); if (rend != null) { createdRenderer = false; currentCellRenderer = rend; if (createdCellEditor) tree.setCellEditor(null); } else { tree.setCellRenderer(createDefaultCellRenderer()); createdRenderer = true; } } else { currentCellRenderer = null; createdRenderer = false; ... | protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/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.