bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { // u.p("text = " + text); InlineBox inline = new InlineBox(); inline.node = node; inline.whitespace = getWhitespace(c,node); // prepare ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { // u.p("text = " + text); InlineBox inline = new InlineBox(); inline.node = node; inline.whitespace = getWhitespace(c,node); // prepare ... | 36,426 |
public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { ConflictManager conflictManager = _ivy.getConflictManager(_ivy.substitute(_defaultCM)); if (conflictManag... | 36,427 |
public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | public void endDocument() throws SAXException { if (_defaultResolver != null) { _ivy.setDefaultResolver(_ivy.substitute(_defaultResolver)); } if (_defaultCM != null) { _ivy.setDefaultConflictManager(_ivy.getConflictManager(_ivy.substitute(_defaultCM))); } if ... | 36,428 |
public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException { // we first copy attributes in a Map to be able to modify them Map attributes = new HashMap(); for (int i=0; i<att.getLength(); i++) { attributes.put(att.getQName(i), att.getVal... | 36,429 |
private static final CharsetProvider provider() { return Provider.provider(); } | private static final CharsetProvider provider() { return (CharsetProvider)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Provider.provider(); }}); } | 36,434 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 36,436 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 36,437 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 36,438 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 36,439 |
protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | protected Shape adjustAllocation(Shape shape) { Rectangle rectIn = shape.getBounds(); // vertical adjustment int height = (int) getPreferredSpan(Y_AXIS); int y = rectIn.y + (rectIn.height - height) / 2; // horizontal adjustment JTextField textField = (JTextField) getContainer(); int halign = tex... | 36,440 |
public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Shape newAlloc = adjustAllocation(shape); super.removeUpdate(ev, newAlloc, vf); getContainer().repaint(); } | public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Shape newAlloc = adjustAllocation(shape); super.changedUpdate(ev, newAlloc, vf); getContainer().repaint(); } | 36,441 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.getStartOffset(), ... | 36,442 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 36,443 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 36,444 |
public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConnectionFactoryDelegate(String objectID, String serverLocatorURI) { super(objectID, locator); } | 36,447 |
public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientConnectionFactoryDelegate(String objectID, InvokerLocator locator) { super(objectID); this.serverLocatorURI = serverLocatorURI; } | 36,448 |
ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { super(); this.graph = graph; this.location = location; this.cColor = color; } | ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { this.graph = graph; this.location = location; this.cColor = color; } | 36,450 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {... | 36,451 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | 36,452 |
public void componentRemoved(ContainerEvent valevent) { // TODO: Implement this properly. } | public void componentRemoved(ContainerEvent event) { // TODO: Implement this properly. } | 36,455 |
protected AccessibleJComponent() { changeSupport = new PropertyChangeSupport(this); } | protected AccessibleJComponent() { } | 36,459 |
public void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(PropertyChangeListener listener) { if (accessibleContainerHandler == null) { accessibleContainerHandler = new AccessibleContainerHandler(); addContainerListener(accessibleContainerHandler); } if (accessibleFocusHandler == null) { accessibleFocusHandler = new AccessibleF... | 36,460 |
public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) ... | public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) ... | 36,461 |
public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; } | public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; } | 36,462 |
public String getAccessibleDescription() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. return null; } | public String getAccessibleDescription() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. String descr = super.getAccessibleDescription(); if (descr == null) { descr = getToolTipText(); } if (descr == null) { Object l = getClientProp... | 36,463 |
public String getAccessibleName() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. return null; } | public String getAccessibleName() { // TODO: Figure out what exactly to return here. It's possible that this // method simply should return null. String name = super.getAccessibleName(); if (name == null) { name = getTitledBorderText(); } if (name == null) { Object l = getClientProperty(... | 36,464 |
public AccessibleStateSet getAccessibleStateSet() { // FIXME: Figure out which states should be set here, and which are // inherited from the super class. return super.getAccessibleStateSet(); } | public AccessibleStateSet getAccessibleStateSet() { // FIXME: Figure out which states should be set here, and which are // inherited from the super class. AccessibleStateSet state = super.getAccessibleStateSet(); if (isOpaque()) state.add(AccessibleState.OPAQUE); return state; } | 36,465 |
public void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } | public void removePropertyChangeListener(PropertyChangeListener listener) { if (accessibleContainerHandler != null) { removeContainerListener(accessibleContainerHandler); accessibleContainerHandler = null; } if (accessibleFocusHandler != null) { removeFocusListener(accessibleFocusHandler); accessibleFocusHa... | 36,466 |
public void computeVisibleRect(Rectangle rect) { Component c = getParent(); if (c != null && c instanceof JComponent) { ((JComponent) c).computeVisibleRect(rect); rect.translate(-getX(), -getY()); Rectangle2D.intersect(rect, new Rectangle(0, 0, getWidth(),... | public void computeVisibleRect(Rectangle rect) { Component c = getParent(); if (c != null && c instanceof JComponent) { ((JComponent) c).computeVisibleRect(rect); rect.translate(-getX(), -getY()); Rectangle2D.intersect(rect, new Rectangle(0, 0, getWidth(),... | 36,467 |
public Component getNextFocusableComponent() { return null; } | public Component getNextFocusableComponent() { Container focusRoot = this; if (! this.isFocusCycleRoot()) focusRoot = getFocusCycleRootAncestor(); FocusTraversalPolicy policy = focusRoot.getFocusTraversalPolicy(); return policy.getComponentAfter(focusRoot, this); } | 36,469 |
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ... | public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ... | 36,471 |
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | 36,473 |
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | 36,474 |
protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | protected void paintChildren(Graphics g) { Shape originalClip = g.getClip(); Rectangle inner = SwingUtilities.calculateInnerArea(this, rectCache); g.clipRect(inner.x, inner.y, inner.width, inner.height); Component[] children = getComponents(); // Find the bottommost component that needs to be painted.... | 36,475 |
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | private void paintDoubleBuffered(Rectangle r) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(... | 36,476 |
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | 36,477 |
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Component root = SwingUtilities.getRoot(this); Image buffer =... | 36,478 |
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | 36,479 |
void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | void paintDoubleBuffered(Graphics g) { Rectangle r = g.getClipBounds(); if (r == null) r = new Rectangle(0, 0, getWidth(), getHeight()); RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHei... | 36,480 |
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); } | void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); } | 36,481 |
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); } | void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(g); g.dispose(); } | 36,482 |
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); } | void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); Graphics g = getGraphics(); g.setClip(r.x, r.y, r.width, r.height); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(g); g.dispose(); } | 36,483 |
void paintSimple(Graphics g) { Graphics g2 = getComponentGraphics(g); paint(g2); } | void paintSimple(Rectangle r) { Graphics g2 = getComponentGraphics(g); paint(g2); } | 36,484 |
public void repaint(long tm, int x, int y, int width, int height) { Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, ... | public void repaint(long tm, int x, int y, int width, int height) { Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, ... | 36,486 |
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 36,491 |
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 36,492 |
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 36,493 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | 36,494 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | 36,495 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | 36,496 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } String clientID = connectio... | 36,497 |
public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; } | public int getBaseline() { int leading = height - inlineTop - inlineBottom; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; } | 36,498 |
public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return ascent + leading / 2; } | public int getBaseline() { int leading = height - ascent - descent; if (leading < 0) { XRLog.layout(Level.SEVERE, "negative leading in line box"); } return inlineTop + leading / 2; } | 36,499 |
public Rectangle getBounds() { return Component.this.isShowing() ? Component.this.getBounds() : null; } | public Rectangle getBounds() { return Component.this.getBounds(); } | 36,500 |
public Point getLocation() { return Component.this.isShowing() ? Component.this.getLocation() : null; } | public Point getLocation() { return Component.this.getLocation(); } | 36,501 |
public Dimension getSize() { return Component.this.isShowing() ? Component.this.getSize() : null; } | public Dimension getSize() { return Component.this.getSize(); } | 36,502 |
public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusNextComponent (this); } | public void nextFocus () { Container focusRoot = getFocusCycleRootAncestor(); Component focusComp = this; while (focusRoot != null && ! (focusRoot.isShowing() && focusRoot.isFocusable() && focusRoot.isEnabled())) { focusComp = focusRoot; focusRoot = focusComp.getFocusCycleRootAncestor(); } manager.focusNextCom... | 36,503 |
public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusNextComponent (this); } | public void nextFocus () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); if (focusRoot != null) { FocusTraversalPolicy policy = focusRoot.getFocusTraversalPolicy(); Component nextFocus = policy.getComponentAfter(focusRoot, focusComp); if (nextFocus == null) nextFocus... | 36,504 |
public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusPreviousComponent (this); } | public void transferFocusBackward () { Container focusRoot = getFocusCycleRootAncestor(); Component focusComp = this; while (focusRoot != null && ! (focusRoot.isShowing() && focusRoot.isFocusable() && focusRoot.isEnabled())) { focusComp = focusRoot; focusRoot = focusComp.getFocusCycleRootAncestor(); } manager.... | 36,505 |
public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.focusPreviousComponent (this); } | public void transferFocusBackward () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); if (focusRoot != null) { FocusTraversalPolicy policy = focusRoot.getFocusTraversalPolicy(); Component nextFocus = policy.getComponentBefore(focusRoot, focusComp); if (nextFocus == nu... | 36,506 |
public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.upFocusCycle (this); } | public void transferFocusUpCycle () { Container focusCycleRoot = getFocusCycleRootAncestor(); while (focusCycleRoot != null && ! (focusCycleRoot.isShowing() && focusCycleRoot.isFocusable() && focusCycleRoot.isEnabled())) { focusCycleRoot = focusCycleRoot.getFocusCycleRootAncestor(); } manager.upFocusCycle (thi... | 36,507 |
public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); manager.upFocusCycle (this); } | public void transferFocusUpCycle () { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (focusCycleRoot != null) { Container focusCycleAncestor = focusCycleRoot.getFocusCycleRootAncest... | 36,508 |
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM... | static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM... | 36,509 |
public StatusBar() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setRequestFocusEnabled(false); setFocusable(false); setBorder(BorderFactory.createLineBorder(Color.gray, 1)); border = BorderFactory.createEmptyBorder(2, 5, 2, 5); } | public StatusBar() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setRequestFocusEnabled(false); setFocusable(false); setBorder(BorderFactory.createLineBorder(Color.gray, 1)); border = BorderFactory.createEmptyBorder(2, 5, 2, 5); } | 36,510 |
public int getHeight() { Component[] components = getComponents(); int height = 0; for(int i = 0; i < components.length; i++) { Component c = components[i]; if(c instanceof DisplayItem) { int itemHeight = c.getPreferredSize().height; if(itemHeight > height) height = itemHeigh... | public int getHeight() { Component[] components = getComponents(); int height = 0; for(int i = 0; i < components.length; i++) { Component c = components[i]; if(c instanceof DisplayItem) { int itemHeight = c.getPreferredSize().height; if(itemHeight > height) height = itemHeigh... | 36,511 |
public DirStateFactory.Result getStateToBind(Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs) throws NamingException; | DirStateFactory.Result getStateToBind(Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs) throws NamingException; | 36,512 |
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | 36,513 |
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | 36,514 |
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | 36,515 |
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | 36,516 |
public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | public void run() { try { //We always try and return the message immediately, if available. //This prevents an extra network call to deliver the message. //If the message is not available, the consumer will stay active and //the message will d... | 36,517 |
protected MessageProxy getMessage(long timeout) throws JMSException { MessageProxy m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { m = getMessageNow(); } else { // ... otherwise we activate the server side consum... | protected MessageProxy getMessage(long timeout) throws JMSException { MessageProxy m = null; // If it's receiveNoWait then get the message directly if (timeout == -1) { m = getMessageNow(); } else { // ... otherwise we activate the server side consum... | 36,518 |
public Object execute() { job.run(); return job.getResult(); } | public JobResult execute() { job.run(); return job.getResult(); } | 36,519 |
public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi... | public Stylesheet parse(java.io.Reader reader, StylesheetInfo info) { InputSource is = new InputSource(reader); CSSStyleSheet style = null; try { style = parser.parseStyleSheet(is); } catch (java.io.IOException e) { throw new XRRuntimeException("IOException on parsi... | 36,520 |
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | 36,521 |
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.STYLE_RULE) { stylesheet.add... | 36,522 |
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | 36,523 |
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | 36,524 |
private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | private void pullRulesets(org.w3c.dom.css.CSSStyleSheet cssSheet, Stylesheet stylesheet) { org.w3c.dom.css.CSSRuleList rl = cssSheet.getCssRules(); int nr = rl.getLength(); for (int i = 0; i < nr; i++) { if (rl.item(i).getType() == org.w3c.dom.css.CSSRule.IMPORT_RULE) { ... | 36,525 |
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(... | private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(... | 36,529 |
private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(... | private void expandProperty(String prop, CSSStyleRule rule) { if( prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(... | 36,530 |
public CSSStyleRule normalize(CSSStyleRule rule) { int length = rule.getStyle().getLength(); //HACK: we need to rewrite all properties in expandProperty //that way, we keep good cascade in case some fool redefined part of a shorthand-property //The good solution would be to create a new ... | public CSSStyleRule normalize(CSSStyleRule rule) { int length = rule.getStyle().getLength(); //HACK: we need to rewrite all properties in expandProperty //that way, we keep good cascade in case some fool redefined part of a shorthand-property //The good solution would be to create a new ... | 36,531 |
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | 36,532 |
private URL eezeHelp() throws IOException { return this.getClass().getClassLoader().getResource("eeze/eeze_help.html"); } | private URL eezeHelp() throws IOException { return this.getClass().getClassLoader().getResource("eeze/eeze_help.html"); } | 36,534 |
public void actionPerformed(ActionEvent e) { String name = JOptionPane.showInputDialog(this, "Please specify a new workflow name"); try { if(currentWorkspace.getWorkflow(name)!=null) { JOptionPane.showMessageDialog((Component)e.getSource(), "A workflow with the name " + name + " already exi... | public void actionPerformed(ActionEvent e) { String name = JOptionPane.showInputDialog("Create Workflow", "Please specify a new workflow name"); if(name==null) return; try { if(currentWorkspace.getWorkflow(name)!=null) { JOptionPane.showMessageDialog((Component)e.getSource(), "A workflow wi... | 36,535 |
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | 36,537 |
public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | public void layoutContainer(Container parent) { // The way to interpret this function is basically to ignore the names // of methods it calls, and focus on the variable names here. getViewRect // doesn't, for example, return the view; it returns the port bounds in // view space. Likwise setViewPosition ... | 36,538 |
protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); ensureResolved(isHaltonfailure(), getOrganisation(), getModule()); _conf = getProperty(_conf, ivy, "ivy... | 36,539 |
protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if ("*".equals(_conf)) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | 36,540 |
protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | 36,541 |
protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); ensureResolved(isHaltonfailure()); _conf = getProperty(_conf, ivy, "ivy.resolved.configurations"); if (_conf.equals("*")) { _conf = getProperty(ivy, "ivy.resolved.configurations"); } _organisa... | 36,542 |
SetGridSizeWidthHandler(WorkflowGraph graph, Point location, int gridSize, String name) { super(name); this.graph = graph; this.location = location; this.iSize = gridSize; } | SetGridSizeWidthHandler(WorkflowGraph graph, Point location, int gridSize, String name) { super(name); this.graph = graph; this.location = location; this.iSize = gridSize; } | 36,543 |
private static int pushPseudoClasses(LayoutContext c, List contentList) { int result = 0; Object first = contentList.size() > 0 ? contentList.get(0) : null; Object second = contentList.size() > 1 ? contentList.get(0) : null; if (first instanceof FirstLineStyle) { ... | private static int pushPseudoClasses(LayoutContext c, List contentList) { int result = 0; Object first = contentList.size() > 0 ? contentList.get(0) : null; Object second = contentList.size() > 1 ? contentList.get(1) : null; if (first instanceof FirstLineStyle) { ... | 36,544 |
private static int pushPseudoClasses(LayoutContext c, List contentList) { int result = 0; Object first = contentList.size() > 0 ? contentList.get(0) : null; Object second = contentList.size() > 1 ? contentList.get(0) : null; if (first instanceof FirstLineStyle) { ... | private static int pushPseudoClasses(LayoutContext c, List contentList) { int result = 0; Object first = contentList.size() > 0 ? contentList.get(0) : null; Object second = contentList.size() > 1 ? contentList.get(0) : null; if (first instanceof FirstLineStyle) { ... | 36,545 |
public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = getLayer(); if (master.getStyle().isFixed() || master.getStyle().isAlternateFlow... | public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = getLayer(); if (master.getStyle().isFixed() || master.getStyle().isAlternateFlow... | 36,546 |
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | 36,547 |
public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | public Box layout(Context c, Element elem) { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 36,548 |
public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 36,549 |
public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 36,550 |
public void read(DataInputStream in) throws IOException { nodeId = in.readUTF(); } | public void read(DataInputStream in) throws IOException { nodeId = in.readInt(); } | 36,551 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.