bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void expandPath(TreePath path) { // Don't expand if path is null if (path == null) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { // We do nothing if attempt has been vetoed. } setExpandedState(path, true); fireTreeExpanded(p...
public void expandPath(TreePath path) { // Don't expand if path is null if (path == null || isExpanded(path)) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { // We do nothing if attempt has been vetoed. } setExpandedState(path, true); ...
43,512
public TreePath getLeadSelectionPath() { return leadSelectionPath; }
public TreePath getLeadSelectionPath() { if (selectionModel == null) return null; else return selectionModel.getLeadSelectionPath(); }
43,513
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA...
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA...
43,514
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA...
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA...
43,515
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); }
public void setLeadSelectionPath(TreePath path) { if (selectionModel != null) { TreePath oldValue = selectionModel.getLeadSelectionPath(); if (path.equals(oldValue)) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue...
43,516
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); }
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); }
43,517
public void valueChanged(TreeSelectionEvent event);
public void valueChanged(TreeSelectionEvent event);
43,520
public void addSelectionPaths(TreePath[] paths) { if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]...
public void addSelectionPaths(TreePath[] paths) { if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]...
43,521
public void addSelectionPaths(TreePath[] paths) { if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]...
public void addSelectionPaths(TreePath[] paths) { if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]...
43,522
public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index =...
public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index =...
43,523
public void treeCollapsed(TreeExpansionEvent event);
public void treeCollapsed(TreeExpansionEvent event);
43,525
public void treeExpanded(TreeExpansionEvent event);
public void treeExpanded(TreeExpansionEvent event);
43,526
public TreePath(Object element) { path = new Object[1]; path[0] = element; }
public TreePath(Object[] path) { path = new Object[1]; path[0] = element; }
43,527
public TreePath(Object element) { path = new Object[1]; path[0] = element; }
public TreePath(Object element) { path = new Object[1]; path[0] = element; }
43,528
public SizeLimitExceededException() { super(); }
public SizeLimitExceededException() { super(); }
43,529
public LimitExceededException() { super(); }
public LimitExceededException() { super(); }
43,530
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,533
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,534
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,535
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,536
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,537
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,538
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,539
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,540
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,541
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,542
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_DOW...
43,543
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP...
43,544
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 != ...
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 != ...
43,545
public void mousePressed(MouseEvent e) { }
public void mousePressed(MouseEvent e) { }
43,546
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
43,549
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
43,550
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo...
43,551
public void cancelEditing(JTree tree) { // FIXME: not implemented }
publicif (isEditing(tree)) completeEditing(false, true, false); voidif (isEditing(tree)) completeEditing(false, true, false); cancelEditing(JTreeif (isEditing(tree)) completeEditing(false, true, false); tree) { //if (isEditing(tree)) completeEditing(false, true, false); FIXME:if (isEditing(tree)) completeEditing(fals...
43,552
protected void completeEditing() { // FIXME: not implemented }
protectedcompleteEditing(false, true, false); voidcompleteEditing(false, true, false); completeEditing() { //completeEditing(false, true, false); FIXME:completeEditing(false, true, false); notcompleteEditing(false, true, false); implemented }
43,553
protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); }
protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); }
43,554
protected void ensureRowsAreVisible(int beginRow, int endRow) { // FIXME: not implemented }
protected void ensureRowsAreVisible(int beginRow, int endRow) { // FIXME: not implemented }
43,555
private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); for (int i = 0; i < mod.getChildCount(root); i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i), node); if (n != null) return n;...
private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); int size = 0; if (!mod.isLeaf(root)) size = mod.getChildCount(root); for (int i = 0; i < size; i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i...
43,556
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.compute...
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(f...
43,557
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()))) re...
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()))) re...
43,558
public TreePath getEditingPath(JTree tree) { // FIXME: not implemented return null; }
public TreePath getEditingPath(JTree tree) { // FIXME: not implemented return null; }
43,559
Object getNextNode(Object curr) { TreeModel mod = tree.getModel(); if (mod.getChildCount(curr) > 0) return mod.getChild(curr, 0); Object node = curr; Object sibling = null; do { sibling = getNextSibling(node); node = getParent(mod.getRoot(), node); } while (sibling ...
Object getNextNode(Object curr) { TreeModel mod = tree.getModel(); if (!mod.isLeaf(curr) && mod.getChildCount(curr) > 0) return mod.getChild(curr, 0); Object node = curr; Object sibling = null; do { sibling = getNextSibling(node); node = getParent(mod.getRoot(), node); ...
43,560
Object getNextSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) + 1; if (index == 0 || index >= mod.getChildCount(parent)) return null; return mod.getCh...
Object getNextSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) + 1; int size = 0; if (!mod.isLeaf(parent)) size = mod.getChildCount(parent); if (index == 0 || ...
43,561
Object getPreviousNode(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; Object sibling = getPreviousSibling(node); if (sibling == null) return parent; int size = mod.getChildCount(sibling); while (size ...
Object getPreviousNode(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; Object sibling = getPreviousSibling(node); if (sibling == null) return parent; int size = 0; if (!mod.isLeaf(sibling)) size = mod.get...
43,562
Object getPreviousSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) - 1; if (index < 0 || index >= mod.getChildCount(parent)) return null; return mod.getChi...
Object getPreviousSibling(Object node) { TreeModel mod = tree.getModel(); Object parent = getParent(mod.getRoot(), node); if (parent == null) return null; int index = mod.getIndexOfChild(parent, node) - 1; int size = 0; if (!mod.isLeaf(parent)) size = mod.getChildCount(parent); if (index < 0 || i...
43,564
public int getRowForPath(JTree tree, TreePath path) { // FIXME: check visibility // right now, just returns last element because // expand/collapse is not implemented return path.getPathCount() - 1; }
public int getRowForPath(JTree tree, TreePath path) { // FIXME: check visibility // right now, just returns last element because // expand/collapse is not implemented return path.getPathCount() - 1; }
43,565
public boolean isEditing(JTree tree) { // FIXME: not implemented return false; }
public boolean isEditing(JTree tree) { // FIXME: not implemented return false; }
43,567
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon")...
int paintControlIcons(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object node) { int h = descent; int rowHeight = getRowHeight(); Icon ei = UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon")...
43,568
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de...
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de...
43,569
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de...
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de...
43,570
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.getSelectionModel()...
43,571
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.addSelectionPath...
43,572
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
43,573
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel.SINGLE_TREE_SELECTION) { tree.getSelectionModel().clearSe...
43,574
protected void setHashColor(Color color) { // FIXME: not implemented }
protected void setHashColor(Color color) { // FIXME: not implemented }
43,575
protected boolean startEditing(TreePath path, MouseEvent event) { // FIXME: not implemented return false; }
protectedint x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } TreeCellEditor ed = getCellEditor(); if (ed == null) updateCellEditor(); if(ed != null && ed.isCellEditable(event) && ed.shouldSelectCell(event)) { editi...
43,576
public void startEditingAtPath(JTree tree, TreePath path) { // FIXME: not implemented }
publicstartEditing(path, null); voidstartEditing(path, null); startEditingAtPath(JTreestartEditing(path, null); tree,startEditing(path, null); TreePathstartEditing(path, null); path) { //startEditing(path, null); FIXME:startEditing(path, null); notstartEditing(path, null); implemented }
43,577
public boolean stopEditing(JTree tree) { // FIXME: not implemented return false; }
public boolean stopEditing(JTree tree) { // FIXME: not implemented return false; }
43,578
protected void updateCellEditor() { // FIXME: not implemented }
protectedif (tree.isEditable() && cellEditor == null) cellEditor = createDefaultCellEditor(); voidif (tree.isEditable() && cellEditor == null) cellEditor = createDefaultCellEditor(); updateCellEditor() { //if (tree.isEditable() && cellEditor == null) cellEditor = createDefaultCellEditor(); FIXME:if (tree.isEditable()...
43,579
public void editingCanceled(ChangeEvent event);
public void editingCanceled(ChangeEvent event);
43,580
public void editingStopped(ChangeEvent event);
public void editingStopped(ChangeEvent event);
43,581
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); else editor.addCellEditorListener(new RealEditorListener()); ...
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); else editor.addCellEditorListener(new RealEditorListener()); ...
43,582
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); else editor.addCellEditorListener(new RealEditorListener()); ...
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) { setTree(tree); this.renderer = renderer; if (editor == null) editor = createTreeCellEditor(); else editor.addCellEditorListener(new RealEditorListener()); ...
43,583
int getInt(Object key) { Object o = get(key); return o instanceof Integer ? ((Integer) o).intValue() : 0; }
public int getInt(Object key) { Object o = get(key); return o instanceof Integer ? ((Integer) o).intValue() : 0; }
43,584
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
43,586
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
public GeneralPath() { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
43,587
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
43,588
drawArc(int x, int y, int width, int height, int startAngle, int arcAngle);
drawArc(int x, int y, int width, int height, int startAngle, int arcAngle);
43,589
fillArc(int x, int y, int width, int height, int startAngle, int arcAngle);
fillArc(int x, int y, int width, int height, int startAngle, int arcAngle);
43,590
public void append(PathIterator iter, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { ...
public void append(Shape s, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { moveTo(...
43,591
public void append(PathIterator iter, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { ...
public void append(PathIterator iter, boolean connect) { // A bad implementation of this method had caused Classpath bug #6076. float[] f = new float[6]; while (! iter.isDone()) { switch (iter.currentSegment(f)) { case PathIterator.SEG_MOVETO: if (! connect || (index == 0)) { ...
43,592
public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID) { this.serverPeer = serverPeer; this.defaultClientID = defaultClientID; }
public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID) { this.serverPeer = serverPeer; this.clientID = defaultClientID; }
43,593
public ConnectionDelegate createConnectionDelegate() throws JMSSecurityException { return createConnectionDelegate(null, null); }
public ConnectionDelegate createConnectionDelegate() throws JMSException { return createConnectionDelegate(null, null); }
43,594
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
43,595
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
43,596
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
43,597
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
43,598
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
return createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, sel, noLocal, ms, pm); return createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, sel, noLocal, ms, pm); return createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, sel, noLocal, ms, p...
43,599
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
protected DurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
43,600
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
43,601
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
43,602
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
43,603
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); ...
public Subscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); i...
43,604
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); ...
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); ...
43,605
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
43,606
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
43,607
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
public DurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
43,608
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
43,609
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
43,610
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
43,611
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { List ...
43,612
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
43,613
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
43,614
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
43,615
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize); }
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize); }
43,616
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize); }
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { super(id, ms, pm, true, recoverable, fullSize, pageSize, downCacheSize); this.topic = to...
43,617
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp...
43,618
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
private static int getTextAlign(Context c, LineBox line) { CalculatedStyle calculatedStyle = line.getStyle().getCalculatedStyle(); if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle(...
43,620
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p("le...
43,621
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
43,622