rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
ref.releaseReference(); | ref.release(); | public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.releaseReference(); ... |
d.getReference().releaseReference(); | d.getReference().release(); | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().releaseReferen... |
} ref.acquireReference(); | } | public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliab... |
d.getReference().acquireReference(); | public void deliver(Delivery d) throws Throwable { if (d.getReference().isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Delivery " + d + " of a reliable reference " + " cannot be added to non-recoverable state"); } // N... | |
d.getReference().acquireReference(); | d.getReference().acquire(); | public void redeliver(Set dels) throws Throwable { //Add the deliveries Iterator iter = dels.iterator(); //We also acquire a reference for every *extra* delivery we have over 1. //This is because we already have a reference for the ref so we don't want to get that //again int co... |
Message m = retrieveMessage(r.getMessageID()); if (m != null) | /* if (r.isReliable()) | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ... |
ref = super.createReference(m); | Message m = retrieveMessage(r.getMessageID()); if (m != null) { ref = super.createReference(m); } | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ... |
try | if (r.isReliable()) | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ... |
pm.store((Message)r); if (log.isTraceEnabled()) { log.trace("Store message " + r); } } catch (Exception e) { log.error("Failed to store message", e); return null; | try { pm.store((Message)r); if (log.isTraceEnabled()) { log.trace("Store message " + r); } } catch (Exception e) { log.error("Failed to store message", e); return null; } | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ... |
new Rectangle(Integer.MAX_VALUE/2, Integer.MAX_VALUE/2)); | new Rectangle()); | Rectangle getBounds() { // This method may be called in the context when the tree rectangle is // not known. To work around this, it is assumed near infinitely large. if (bounds==null) bounds = getNodeDimensions(node, row, depth, isExpanded, new Rectangle(... |
if (path == null) { | TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ... | |
rp = (NodeRecord) nodes.get(rp.parent); | { Object parent = rp.parent; rp = (NodeRecord) nodes.get(parent); if (rp == null) lpath.addFirst(parent); } | TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ... |
if (expanded.contains(node) || parent == null) | if (expanded.contains(node)) | private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); // For expanded nodes and for the root node. if (expanded.contains(... |
if (path == null) return null; | public Rectangle getBounds(TreePath path, Rectangle rect) { if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) // This node is not visible. { rect.x = rect.y = rect.width = rect.height = 0; } else { ... | |
expanded.add(treeModel.getRoot()); | public void setModel(TreeModel newModel) { treeModel = newModel; dirty = true; } | |
countRows(child, root, 1); | countRows(child, root, 0); | private final void update() { nodes.clear(); row2node.clear(); totalHeight = maximalWidth = 0; Object root = treeModel.getRoot(); if (rootVisible) { countRows(root, null, 0); } else { int sc = treeModel.getChildCount(root); for (int i = 0; i < sc; i++) { ... |
if (!block.isElement()) { | if (!(block.getContent() instanceof BlockContent)) { | private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ... |
if (c.css.getStyle(elem).hasProperty("height")) { | CalculatedStyle style = block.getContent().getStyle(); if (style.hasProperty("height")) { | private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ... |
float new_height = c.css.getStyle(elem).getFloatPropertyRelative("height", c.getExtents().height); | float new_height = style.getFloatPropertyRelative("height", c.getExtents().height); | private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ... |
if (!block.isElement()) { | if (!(block.getContent() instanceof BlockContent)) { | private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ... |
if (c.css.getStyle(elem).hasProperty("width")) { | if (style.hasProperty("width")) { | private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ... |
float new_width = c.css.getStyle(elem).getFloatPropertyRelative("width", c.getExtents().width); | float new_width = style.getFloatPropertyRelative("width", c.getExtents().width); | private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ... |
Element elem = (Element) box.getNode(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... | |
NodeList nl = elem.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node child = nl.item(i); | java.util.List contentList = box.getContent().getContent(c); if (contentList.size() == 0) return box; Iterator contentIterator = contentList.iterator(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
Layout layout = c.getLayout(child); if (layout == null) { | CascadedStyle firstLineStyle = null; CascadedStyle firstLetterStyle = null; while (contentIterator.hasNext()) { Object o = contentIterator.next(); if (o instanceof FirstLineStyle) { firstLineStyle = ((FirstLineStyle) o).getStyle(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
if (layout instanceof NullLayout) { | if (o instanceof FirstLetterStyle) { firstLetterStyle = ((FirstLetterStyle) o).getStyle(); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
if (c.getRenderingContext().getLayoutFactory().isBreak(child)) { continue; } if (child.getNodeType() == Node.COMMENT_NODE) { continue; } | Content currentContent = (Content) o; | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
if (child.getNodeType() == Node.ELEMENT_NODE) { | if (!(currentContent instanceof AnonymousBlockContent)) { Layout layout = c.getLayout(currentContent.getElement()); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
Element child_elem = (Element) child; | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... | |
child_box = layout.layout(c, new BlockContent(child_elem, c.css.getStyle(child_elem))); | child_box = layout.layout(c, currentContent); | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
} else { child_box = ((AnonymousBoxLayout) layout).layout(c, elem, child); | } else { AnonymousBlockContent anonymous = (AnonymousBlockContent) currentContent; Layout layout = new AnonymousBoxLayout(); child_box = layout.layout(c, anonymous); } | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... |
Node last_node = ((AnonymousBlockBox) child_box).last_node; if (child != last_node) { while (true) { i++; Node ch = nl.item(i); if (ch == last_node) { break; } } } } | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr... | |
StringBuffer textContent = null; | public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ... | |
if (anonymousRow == null) { anonymousRow = new TableRowContent(); contentList.add(anonymousRow); | String text = curr.getNodeValue(); text = WhitespaceStripper.collapseWhitespace(IdentValue.NORMAL, text, true); if (!text.equals("")) { if (anonymousRow == null) { anonymousRow = new TableRowContent(); contentList.add(anonymousRow); } anonymousRow.addChild(curr); | public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ... |
anonymousRow.addChild(curr); | public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ... | |
row.addChild(cellBox); | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | |
if (cellBox.rowspan > 1) row.setChildrenExceedBounds(true); row.addChild(cellBox); | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | |
if(node == null) { return null; } | public Element getRealElement() { if(isElement()) { return getElement(); } return (Element)node.getParentNode(); } | |
u.p("this = " + this); | public boolean isElement() { if(node == null) { u.p("this = " + this); return false; } if ( node.getNodeType() == node.ELEMENT_NODE ) { return true; } return false; } | |
xaResource = new JBossXAResource(parent.getResourceManager(), this); | xaResource = new MessagingXAResource(parent.getResourceManager(), this); | public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (xa) ... |
public JBossXAResource getXAResource() | public MessagingXAResource getXAResource() | public JBossXAResource getXAResource() { return xaResource; } |
if (UIManager.get("RadioButton.gradient") != null) MetalUtils.paintGradient(g, x, y, getIconWidth(), getIconHeight(), SwingConstants.VERTICAL, "RadioButton.gradient"); | public void paintIcon(Component c, Graphics g, int x, int y) { Color savedColor = g.getColor(); JRadioButton b = (JRadioButton) c; // draw outer circle if (b.isEnabled()) g.setColor(MetalLookAndFeel.getControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControl... | |
{ sess.close(); | { if (subName != null) { sess.unsubscribe(subName); } sess.close(); | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } } |
log.error("Receiver failed", e); | log.error("!!!!!!!!!!!!!!!!!!Close failed", e); | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } } |
cons = sess.createConsumer(dest, selector, noLocal); | if (subName == null) { cons = sess.createConsumer(dest, selector, noLocal); } else { cons = sess.createDurableSubscriber((Topic)dest, subName, selector, noLocal); } | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, ackMode); cons = sess.createConsumer(dest, selector, noLocal); } catch (Exception e) { ... |
log.info("Running receiver"); | public void run() { try { log.info("Running receiver"); int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); ... | |
log.error("Receiver failed", e); | log.error("!!!!!!!!!!!!!!!Receiver failed", e); | public void run() { try { log.info("Running receiver"); int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); ... |
log.info("Acknowledgement Mode? " + ackMode); log.info("Durable subscription name: " + subName); log.info("Message selector: " + selector); log.info("No local?: " + noLocal); log.info("Use message listener? " + asynch); | log.trace("Acknowledgement Mode? " + ackMode); log.trace("Durable subscription name: " + subName); log.trace("Message selector: " + selector); log.trace("No local?: " + noLocal); log.trace("Use message listener? " + asynch); log.trace("Client id: " + clientID); | protected void logInfo() { super.logInfo(); log.info("Acknowledgement Mode? " + ackMode); log.info("Durable subscription name: " + subName); log.info("Message selector: " + selector); log.info("No local?: " + noLocal); log.info("Use message listener? " + asynch); } |
public FloatedBlockContent(Element e, CalculatedStyle style) { | FloatedBlockContent(Element e, CascadedStyle style) { | public FloatedBlockContent(Element e, CalculatedStyle style) { _elem = e; _style = style; } |
return view.viewToModel(x, y, a, b); | return view.viewToModel(x, y, r, b); | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { if (x >= 0 && y >= 0) { Rectangle r = getInsideAllocation(a); View view = getViewAtPoint((int) x, (int) y, r); return view.viewToModel(x, y, a, b); } return 0; } |
throw new NotYetImplementedException(); | return delegate.createBytesMessage(); | public BytesMessage createBytesMessage() throws JMSException { throw new NotYetImplementedException(); } |
ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d); | ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d, null); | public MessageConsumer createConsumer(Destination d) throws JMSException { ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d); return new JBossMessageConsumer(consumerDelegate, d); } |
throw new NotYetImplementedException(); | return delegate.createMapMessage(); | public MapMessage createMapMessage() throws JMSException { throw new NotYetImplementedException(); } |
throw new NotYetImplementedException(); | return delegate.createObjectMessage(); | public ObjectMessage createObjectMessage() throws JMSException { throw new NotYetImplementedException(); } |
throw new NotYetImplementedException(); | return delegate.createStreamMessage(); | public StreamMessage createStreamMessage() throws JMSException { throw new NotYetImplementedException(); } |
throw new NotYetImplementedException(); | return delegate.createTextMessage(); | public TextMessage createTextMessage() throws JMSException { throw new NotYetImplementedException(); } |
{ if (!isXA) throw new IllegalStateException("Is not an XASession"); | { | public XAResource getXAResource() { if (!isXA) throw new IllegalStateException("Is not an XASession"); throw new NotYetImplementedException(); } |
Message.debug("\tmodule revision kept as first found: "+mr.getId()); | Message.debug("\tmodule revision kept as first found: "+mrDesc); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
Message.debug("\tmodule revision kept as younger: "+mr.getId()); | Message.debug("\tmodule revision kept as younger: "+mrDesc); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
} else if (ret != null && !mr.getDescriptor().isDefault() && ret.getDescriptor().isDefault()) { Message.debug("\tmodule revision kept as better (not default): "+mr.getId()); | } else if (!mr.getDescriptor().isDefault() && ret.getDescriptor().isDefault()) { Message.debug("\tmodule revision kept as better (not default): "+mrDesc); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
Message.debug("\tmodule revision discarded as older: "+mr.getId()); | Message.debug("\tmodule revision discarded as older: "+mrDesc); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
Message.debug("\tmodule revision found and is not default: returning "+mr.getId()); | Message.debug("\tmodule revision found and is not default: returning "+mrDesc); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
return new DefaultModuleRevision(resolver, depMD, false, false); | return new DefaultModuleRevision(resolver, artResolver, depMD, false, false); | public ResolvedModuleRevision findModuleInCache(ModuleRevisionId mrid, File cache, boolean validate) { // first, check if it is in cache if (mrid.isExactRevision()) { File ivyFile = getIvyFileInCache(cache, mrid); if (ivyFile.exists()) { // found in cache ! ... |
subscription = new Subscription(topic, selector, ms); | subscription = new Subscription(topic, selector, noLocal, ms); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
createDurableSubscription(d.getName(), clientID, subscriptionName, selector); | createDurableSubscription(d.getName(), clientID, subscriptionName, selector, noLocal); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
boolean noLocalChanged = false; | boolean noLocalChanged = noLocal != subscription.isNoLocal(); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
dsd.createDurableSubscription(d.getName(), clientID, subscriptionName, selector); | dsd.createDurableSubscription(d.getName(), clientID, subscriptionName, selector, noLocal); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
translate(box.getAbsX(), box.getAbsY()); | Rectangle contentBounds = box.getContentAreaEdge(box.getAbsX(), box.getAbsY(), c); translate(contentBounds.x, contentBounds.y); | public void paintReplacedElement(RenderingContext c, BlockBox box) { JComponent component = ((SwingReplacedElement)box.getReplacedElement()).getJComponent(); translate(box.getAbsX(), box.getAbsY()); component.paint(_graphics); translate(-box.getAbsX(), -box.getAbsY()); } |
translate(-box.getAbsX(), -box.getAbsY()); | translate(-contentBounds.x, -contentBounds.y); | public void paintReplacedElement(RenderingContext c, BlockBox box) { JComponent component = ((SwingReplacedElement)box.getReplacedElement()).getJComponent(); translate(box.getAbsX(), box.getAbsY()); component.paint(_graphics); translate(-box.getAbsX(), -box.getAbsY()); } |
if (mouseInputListener == null) mouseInputListener = createMouseInputListener(); | protected void installListeners() { table.addFocusListener(focusListener); table.addKeyListener(keyListener); table.addMouseListener(mouseInputListener); table.addMouseMotionListener(mouseInputListener); } | |
focusListener = createFocusListener(); mouseInputListener = createMouseInputListener(); | public void installUI(JComponent comp) { table = (JTable)comp; focusListener = createFocusListener(); mouseInputListener = createMouseInputListener(); installDefaults(); installKeyboardActions(); installListeners(); } | |
return null; | return getTitle(); | public String getAccessibleName() { return null; } |
return null; | return AccessibleRole.INTERNAL_FRAME; | public AccessibleRole getAccessibleRole() { return null; } |
return null; | return new Integer(getLayer()); | public Number getCurrentAccessibleValue() { return null; } |
return null; | return new Integer(Integer.MAX_VALUE); | public Number getMaximumAccessibleValue() { return null; } |
return null; | return new Integer(Integer.MIN_VALUE); | public Number getMinimumAccessibleValue() { return null; } |
setLayer(n.intValue()); return true; | public boolean setCurrentAccessibleValue(Number n) { return false; } | |
return null; | return AccessibleRole.DESKTOP_ICON; | public AccessibleRole getAccessibleRole() { return null; } |
return null; | return new Integer(frame.getLayer()); | public Number getCurrentAccessibleValue() { return null; } |
frame.setLayer(n.intValue()); return true; | public boolean setCurrentAccessibleValue(Number n) { return false; } | |
return -1; | Integer layer = (Integer) getClientProperty(JLayeredPane.LAYER_PROPERTY); if (layer != null) return layer.intValue(); return JLayeredPane.DEFAULT_LAYER.intValue(); | public int getLayer() { JDesktopPane pane = getDesktopPane(); if (pane != null) // The cast here forces the call to the instance method getLayer() // instead of the static method (this would lead to infinite // recursion). return pane.getLayer((Component) this); return -1; } |
d.setInternalFrame(this); | if (desktopIcon != d) { JDesktopIcon oldIcon = desktopIcon; | public void setDesktopIcon(JDesktopIcon d) { d.setInternalFrame(this); desktopIcon = d; } |
firePropertyChange("desktopIcon", oldIcon, d); } | public void setDesktopIcon(JDesktopIcon d) { d.setInternalFrame(this); desktopIcon = d; } | |
String old = title; | String old = this.title; | public void setTitle(String title) { if (title == null && this.title == null) return; if (title == null || this.title == null || ! this.title.equals(title)) { String old = title; this.title = title; firePropertyChange(TITLE_PROPERTY, old, this.title); } } |
add(new JButton("left button"), LEFT); | remove (leftComponent); | public void setLeftComponent(Component comp) { if (comp != null) add(comp, LEFT); else add(new JButton("left button"), LEFT); } |
add(new JButton("right button"), RIGHT); | remove (rightComponent); | public void setRightComponent(Component comp) { if (comp != null) add(comp, RIGHT); else add(new JButton("right button"), RIGHT); } |
public boolean deliver(Receiver r) | public synchronized boolean deliver() | public boolean deliver(Receiver r) { if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver... |
if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); | public boolean deliver(Receiver r) { if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver... | |
return deliver(this, r); | return deliver(this, null); | public boolean deliver(Receiver r) { if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver... |
office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "testgroup"); | office1 = createClusteredPostOffice(1, "testgroup"); office2 = createClusteredPostOffice(2, "testgroup"); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[0] = new LocalClusteredQueue(office1, "node1", "sub1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[0] = new LocalClusteredQueue(office1, 1, "sub1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[1] = new LocalClusteredQueue(office1, "node1", "sub2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[1] = new LocalClusteredQueue(office1, 1, "sub2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[2] = new LocalClusteredQueue(office2, "node2", "sub3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[2] = new LocalClusteredQueue(office2, 2, "sub3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[3] = new LocalClusteredQueue(office2, "node2", "sub4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[3] = new LocalClusteredQueue(office2, 2, "sub4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[4] = new LocalClusteredQueue(office2, "node2", "sub5", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | queues[4] = new LocalClusteredQueue(office2, 2, "sub5", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[5] = new LocalClusteredQueue(office1, "node1", "sub6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[5] = new LocalClusteredQueue(office1, 1, "sub6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[6] = new LocalClusteredQueue(office1, "node1", "sub7", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | queues[6] = new LocalClusteredQueue(office1, 1, "sub7", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[7] = new LocalClusteredQueue(office1, "node1", "sub8", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | queues[7] = new LocalClusteredQueue(office1, 1, "sub8", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[8] = new LocalClusteredQueue(office1, "node1", "sub9", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[8] = new LocalClusteredQueue(office1, 1, "sub9", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
queues[9] = new LocalClusteredQueue(office1, "node1", "sub10", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | queues[9] = new LocalClusteredQueue(office1, 1, "sub10", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); | protected void clusteredRoute(boolean persistentMessage) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.