bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
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 || ... | 27,573 |
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... | 27,574 |
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... | 27,576 |
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 int row = path.getPathCount(); if (tree.isVisible(path)) return row; path = path.getParentPath(); while (row > 0 && !tree.isVisible(path)) { path =... | 27,577 |
public boolean isEditing(JTree tree) { // FIXME: not implemented return false; } | public boolean isEditing(JTree tree) { // FIXME: not implemented return getCellEditor() != null; } | 27,579 |
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")... | 27,580 |
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... | 27,581 |
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... | 27,582 |
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()... | 27,583 |
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.addSelectionPat... | 27,584 |
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... | 27,585 |
public boolean stopEditing(JTree tree) { // FIXME: not implemented return false; } | public boolean stopEditing(JTree tree) { // FIXME: not implemented if (isEditing(tree)) { completeEditing(); return getCellEditor().stopCellEditing(); } return true; } | 27,589 |
public void editingCanceled(ChangeEvent event); | void editingCanceled(ChangeEvent event); | 27,591 |
public void editingStopped(ChangeEvent event); | void editingStopped(ChangeEvent event); | 27,592 |
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()); ... | 27,593 |
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()); ... | 27,594 |
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; } | 27,595 |
drawArc(int x, int y, int width, int height, int startAngle, int arcAngle); | drawArc(int x, int y, int width, int height, int arcStart, int arcAngle); | 27,597 |
fillArc(int x, int y, int width, int height, int startAngle, int arcAngle); | fillArc(int x, int y, int width, int height, int arcStart, int arcAngle); | 27,598 |
public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID) { this.serverPeer = serverPeer; this.defaultClientID = defaultClientID; } | public ServerConnectionFactoryDelegate(ServerPeer serverPeer, String defaultClientID) { this.serverPeer = serverPeer; this.clientID = defaultClientID; } | 27,599 |
public ConnectionDelegate createConnectionDelegate() throws JMSSecurityException { return createConnectionDelegate(null, null); } | public ConnectionDelegate createConnectionDelegate() throws JMSException { return createConnectionDelegate(null, null); } | 27,600 |
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | 27,601 |
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | 27,602 |
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | 27,603 |
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... | 27,604 |
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | protected DurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | 27,606 |
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | 27,607 |
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | 27,608 |
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ... | 27,609 |
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... | 27,610 |
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); ... | 27,611 |
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... | 27,612 |
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... | 27,613 |
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | public DurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | 27,614 |
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | 27,615 |
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ... | 27,616 |
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... | 27,617 |
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... | 27,618 |
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... | 27,619 |
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); } | 27,620 |
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 = top... | 27,621 |
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... | 27,622 |
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(... | 27,624 |
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... | 27,625 |
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... | 27,626 |
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... | 27,627 |
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) {... | 27,628 |
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | 27,629 |
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex... | 27,630 |
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | 27,631 |
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | 27,632 |
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | 27,633 |
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ... | 27,634 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,635 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,636 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,637 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,638 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,639 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 27,640 |
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because blocks may be in... | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because blocks may be in... | 27,641 |
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | 27,642 |
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | 27,643 |
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | 27,644 |
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge... | 27,645 |
public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(c.getCurrentFont(... | public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(inline.getStyle()... | 27,646 |
public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(c.getCurrentFont(... | public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(c.getCurrentFont(... | 27,647 |
public void setUp() throws Exception { super.setUp(); tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.start(); ms = new PersistentMessageStore("persistent-message-store", tl); tr = new TransactionRepository(tl); channel = new DurableSubscription("client... | public void setUp() throws Exception { super.setUp(); tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.start(); ms = new PersistentMessageStore("persistent-message-store", tl); tr = new TransactionRepository(tl); channel = new DurableSubscription("client... | 27,648 |
public void setUp() throws Exception { super.setUp(); InitialContext ic = new InitialContext(); tr = new TransactionRepository(); ic.close(); msPersistenceManagerDelegate = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManag... | public void setUp() throws Exception { super.setUp(); InitialContext ic = new InitialContext(); tr = new TransactionRepository(); ic.close(); msPersistenceManagerDelegate = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManag... | 27,649 |
public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); } | public JDBCTransactionLog() throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); } | 27,650 |
public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); } | public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); } | 27,651 |
public DurableSubscription(String clientID, String subName, Topic topic, String selector, MessageStoreDelegate ms, TransactionLogDelegate tl) { super(clientID + "." + subName, topic, selector, ms, tl); this.subName = subName; } | public DurableSubscription(String clientID, String subName, Topic topic, String selector, MessageStoreDelegate ms, TransactionLogDelegate tl) { super(clientID + "." + subName, topic, selector, noLocal, ms, tl); this.subName = subName; } | 27,652 |
final boolean writeMouseCommand(int cmd) { // First clear the mouse channel, otherwise we might read // old data back mouseChannel.clear(); // Transmit the command writeController(CCMD_WRITE_MOUSE); writeData(cmd); int data; try { data = mouseChannel.read(50); } catch (IOException ex) { log.debug("IOExcep... | final boolean writeMouseCommand(int cmd) throws DeviceException { // First clear the mouse channel, otherwise we might read // old data back mouseChannel.clear(); // Transmit the command writeController(CCMD_WRITE_MOUSE); writeData(cmd); int data; try { data = mouseChannel.read(50); } catch (IOException ex)... | 27,654 |
public int read(long timeout) throws IOException, TimeoutException, InterruptedException { if (!isOpen()) { throw new ClosedChannelException(); } return queue.pop(timeout) & 0xFF; } | public int read(ByteBuffer dst) throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } return queue.pop(timeout) & 0xFF; } | 27,655 |
public int read(long timeout) throws IOException, TimeoutException, InterruptedException { if (!isOpen()) { throw new ClosedChannelException(); } return queue.pop(timeout) & 0xFF; } | public int read(long timeout) throws IOException, TimeoutException, InterruptedException { if (!isOpen()) { throw new ClosedChannelException(); } int i; for (i = 0; i < dst.remaining(); i++) { dst.put(queue.pop()); } return i; } | 27,656 |
final int getMode() { writeController(CCMD_READ_MODE); return readData(); } | final int getMode() throws DeviceException { writeController(CCMD_READ_MODE); return readData(); } | 27,657 |
final boolean writeMouseCommands(int[] cmds) { boolean ok = true; for (int i = 0; i < cmds.length; i++) { ok &= writeMouseCommand(cmds[i]); } return ok; } | final boolean writeMouseCommands(int[] cmds) throws DeviceException { boolean ok = true; for (int i = 0; i < cmds.length; i++) { ok &= writeMouseCommand(cmds[i]); } return ok; } | 27,658 |
protected synchronized void startDevice() throws DriverException { final Device dev = getDevice(); log.info("Starting " + dev.getId()); channel = getChannel(); interpreter = createInterpreter(); // start the deamon anyway, so we can register a mouse later daemon = new PointerDaemon(dev.getId() + "-daemon"); dae... | protected synchronized void startDevice() throws DriverException { final Device dev = getDevice(); log.info("Starting " + dev.getId()); channel = getChannel(); interpreter = createInterpreter(); // start the deamon anyway, so we can register a mouse later daemon = new PointerDaemon(dev.getId() + "-daemon"); dae... | 27,659 |
private final void processQueues() { int status; while (((status = readStatus()) & AUX_STAT_OBF) != 0) { final int data = readData(); // determine which driver shall handle the scancode final PS2ByteChannel channel; if ((status & STAT_MOUSE_OBF) != 0) { channel = mouseChannel; } else { channel = kbCh... | final void processQueues() { int status; while (((status = readStatus()) & AUX_STAT_OBF) != 0) { final int data = readData(); // determine which driver shall handle the scancode final PS2ByteChannel channel; if ((status & STAT_MOUSE_OBF) != 0) { channel = mouseChannel; } else { channel = kbChannel; ... | 27,660 |
public List getSecurityPermissions(long id) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); ... | public List getSecurityPermissions(long id) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); ... | 27,661 |
public void installDefaults(AbstractButton b) { super.installDefaults(b); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getP... | public void installDefaults(AbstractButton b) { super.installDefaults(b); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getP... | 27,662 |
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; } | protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { h += cellHeights[row]; if (y0 < h) return row; y0 -= h; } return -1; } | 27,664 |
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; } | protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; } | 27,665 |
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; } | protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } } } return index; } | 27,666 |
protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; } | protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; } | 27,667 |
protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; } | protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else height = cellHeights[row]; } return height; } | 27,668 |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ... | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ... | 27,669 |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ... | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ... | 27,670 |
protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe... | protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe... | 27,671 |
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ... | public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ... | 27,672 |
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe... | public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe... | 27,673 |
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe... | public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe... | 27,674 |
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(null); list.setBackground(null); list.setSelectionForeground(null); list.setSelectionBackground(null); } | protected void uninstallDefaults() { list.setForeground(null); list.setBackground(null); list.setSelectionForeground(null); list.setSelectionBackground(null); } | 27,675 |
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ... | protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; ListCellRenderer rend = list.getCellRenderer(); int fixedCellHeight = list.getFixedCellHeight(); if (... | 27,676 |
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ... | protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ... | 27,677 |
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ... | protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ... | 27,678 |
public int getSelectionMode() { return mode; } | public int getSelectionMode() { return selectionMode; } | 27,679 |
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); } | public InMemoryMessageStore(Serializable storeID) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); } | 27,680 |
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); } | public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); } | 27,681 |
protected MessageReference createReference(Routable r) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log... | protected MessageReference createReference(Message m) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log.... | 27,682 |
protected MessageReference createReference(Routable r) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log... | protected MessageReference createReference(Routable r) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log... | 27,683 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.