rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Dispatcher.singleton.unregisterTarget(this.id); | JMSDispatcher.instance.unregisterTarget(Integer.valueOf(id)); | public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(this.id); Disp... |
if (log.isTraceEnabled()) { log.trace("closing (noop)"); } | if (trace) { log.trace("closing (noop)"); } | public void closing() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("closing (noop)"); } } |
if (log.isTraceEnabled()) { log.trace("sending message: " + m); } | if (trace) { log.trace("Sending message: " + m); } | public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (log.isTraceEnabled()) { log.trace("sending message: " + m); } sessionEndpoint.connectionEndpoint.sendMessage(m, null); } |
return "ProducerEndpoint[" + Util.guidToString(id) + ", " + jmsDestination + "]"; | return "ProducerEndpoint[" + id + ", " + jmsDestination + "]"; | public String toString() { return "ProducerEndpoint[" + Util.guidToString(id) + ", " + jmsDestination + "]"; } |
return "Inline-Block: (" + x + "," + y + ") -> (" + width + "Xx" + height + ")"; | StringBuffer sb = new StringBuffer(); sb.append("InlineBlockBox:"); sb.append(super.toString()); return sb.toString(); | public String toString() { return "Inline-Block: (" + x + "," + y + ") -> (" + width + "Xx" + height + ")"; } |
String receiverID = (String)mi.getArguments()[1]; | String theReceiverID = (String)mi.getArguments()[1]; if (this.receiverID != null && this.receiverID != theReceiverID) { throw new IllegalStateException("Cannot receive messages from more than one receiver"); } this.receiverID = theReceiverID; | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... |
else if ("getAsfReceiverID".equals(methodName)) { if (log.isTraceEnabled()) { log.trace("getAsfReceiverID:" + this.receiverID); } return this.receiverID; } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... | |
allWhitespace = false; | public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Objec... | |
List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); | for (Iterator i = list.iterator(); i.hasNext();) { if (i.next() instanceof TextContent) { i.remove(); | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... |
for (int i = 0; i < remove_list.size(); i++) { list.remove(remove_list.get(i)); } | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); activeBorder = defaults.getBorder("ToolTip.border"); inactiveBorder = defaults.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = defaults.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = defaults.getFont("MenuItem.acceleratorFont"); acceleratorF... | activeBorder = UIManager.getBorder("ToolTip.border"); inactiveBorder = UIManager.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = UIManager.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = UIManager.getFont("MenuItem.acceleratorFont"); acceleratorForeground = UIManager.getColor("MenuItem.acceleratorFo... | public MetalToolTipUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); activeBorder = defaults.getBorder("ToolTip.border"); inactiveBorder = defaults.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = defaults.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = de... |
if (log.isTraceEnabled()) log.trace("MethodName=" + methodName + " declaringclass=" + m.getDeclaringClass()); | if (log.isTraceEnabled()) log.trace("handling " + methodName + ", declaring class=" + m.getDeclaringClass()); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA... |
int consumerID = dr.getConsumerID(); | log.info("received message(s) from server " + dr.getServerId()); Long lookup = calcLookup(dr.getServerId(), dr.getConsumerId()); log.info("lookup key is " + lookup); | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... |
(MessageCallbackHandler)callbackHandlers.get(new Integer(consumerID)); | (MessageCallbackHandler)callbackHandlers.get(lookup); | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... |
throw new IllegalStateException("Cannot find handler for consumer: " + consumerID); | throw new IllegalStateException("Cannot find handler for consumer: " + dr.getConsumerId() + " and server " + dr.getServerId()); | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... |
public void registerHandler(int consumerID, MessageCallbackHandler handler) | public void registerHandler(int serverId, int consumerId, MessageCallbackHandler handler) | public void registerHandler(int consumerID, MessageCallbackHandler handler) { callbackHandlers.put(new Integer(consumerID), handler); } |
callbackHandlers.put(new Integer(consumerID), handler); | Long lookup = calcLookup(serverId, consumerId); callbackHandlers.put(lookup, handler); | public void registerHandler(int consumerID, MessageCallbackHandler handler) { callbackHandlers.put(new Integer(consumerID), handler); } |
public void unregisterHandler(int consumerID) | public void unregisterHandler(int serverId, int consumerId) | public void unregisterHandler(int consumerID) { callbackHandlers.remove(new Integer(consumerID)); } |
callbackHandlers.remove(new Integer(consumerID)); | Long lookup = calcLookup(serverId, consumerId); callbackHandlers.remove(lookup); | public void unregisterHandler(int consumerID) { callbackHandlers.remove(new Integer(consumerID)); } |
ServerManagement.stop(); | protected void tearDown() throws Exception { // remove the test invocation handler ServerManagement.removeServerInvocationHandler("DEFAULT_INVOCATION_HANDLER"); ServerManagement.undeployQueue("MultipleServerInvocationHandlerTestQueue"); ic.close(); super.tearDown(); } | |
if (!cancels.isEmpty()) { del.cancelDeliveries(cancels); } | public Object handleClosing(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = state.getAcknowledgeMode(); //We need to e... | |
if(node == null) { u.p("this = " + this); return false; } | public boolean isElement() { if ( node.getNodeType() == node.ELEMENT_NODE ) { return true; } return false; } | |
String attachment = c.css.getStringProperty( block.getRealElement(), "background-attachment", false ); if(attachment != null && attachment.equals("fixed")) { block.setChildrenExceedBounds(true); } | public Box createBox( Context c, Node node ) { BlockBox block = new BlockBox(); block.node = node; return block; } | |
start(0, config); | start(0, config, true); | public static synchronized void start(String config) throws Exception { start(0, config); } |
if (e.getNodeName().equalsIgnoreCase("a") && !e.getAttribute("href").equals("")) { | if (e.getNodeName().equalsIgnoreCase("a") && e.hasAttribute("href")) { | public String getLinkUri(org.w3c.dom.Element e) { String href = null; if (e.getNodeName().equalsIgnoreCase("a") && !e.getAttribute("href").equals("")) { href = e.getAttribute("href"); } return href; } |
if (labelFor instanceof JComponent) { ((JComponent) labelFor).putClientProperty(LABEL_PROPERTY, this); } | public void setLabelFor(Component c) { if (c != labelFor) { Component oldLabelFor = labelFor; labelFor = c; firePropertyChange("labelFor", oldLabelFor, labelFor); } } | |
if (args[0] != null) | if (args.length != 0) | public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... |
System.err.println("Couldn't get I/O for the connection to" + host); | System.err.println("EchoClient: Couldn't get I/O for the connection to " + host); e.printStackTrace(); | public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... |
drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv... | |
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:unconditional-result.xml"); | WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("/unconditional-result.xml").toString()); | public void testCheckResultInitialActionUnconditionalResult() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:unconditional-result.xml"); descriptor.validate(); fail("descriptor loaded successfully, even though unconditional-result element... |
final int NUM_MESSAGES = 10; | final int NUM_MESSAGES = 100; | public void testCloseWhileProcessing() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connConsumer.start(); Ses... |
final int NUM_MESSAGES = 10; | final int NUM_MESSAGES = 100; | public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connConsumer.start(); Session sessCons ... |
box.setState(box.DONE); | public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do this if there is no content, right? ... | |
ServerManagement.undeployTopic("CompletelyNewTopic2"); | public void testDurableSubscriptionDifferentSelector() throws Exception { ConnectionFactory cf = (ConnectionFactory)ic.lookup("ConnectionFactory"); Topic topic = (Topic)ic.lookup("/topic/Topic"); Connection conn = cf.createConnection(); conn.setClientID("brookeburke"); Session s = conn.cre... | |
if (FontUtil.len(c, node, text.substring(start), font) < avail) { | if (FontUtil.len(c, text.substring(start), font) < avail) { | public static boolean canFitOnLine(Context c, Node node, int start, String text, int avail, Font font) { // if the rest of text can fit on the current line // if length of remaining text < available width //u.p("avail = " + avail + " len = " + FontUtil.len(c,node,text.substring(start))); ... |
CalculatedStyle style = c.css.getStyle(getElement(node)); Font font = FontUtil.getFont(c, style, node); | CalculatedStyle style = c.css.getStyle(node); Font font = FontUtil.getFont(c, style); | public static InlineBox generateFirstLetterInlineBox(Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail) { // u.p("gen first letter box"); // u.p("node = " + node); // u.p("start = " + start); ... |
int len = FontUtil.len(c, node, text.substring(start, end), font); Element elem = getElement(node); CascadedStyle ps = c.css.getPseudoElementStyle(elem, "first-letter"); CalculatedStyle parent = c.css.getStyle(elem); | CascadedStyle ps = c.css.getPseudoElementStyle(node, "first-letter"); CalculatedStyle parent = c.css.getStyle(node); | public static InlineBox generateFirstLetterInlineBox(Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail) { // u.p("gen first letter box"); // u.p("node = " + node); // u.p("start = " + start); ... |
CalculatedStyle style = c.css.getStyle(getElement(node)); Font font = FontUtil.getFont(c, style, node); | CalculatedStyle style = c.css.getStyle(node); Font font = FontUtil.getFont(c, style); | public static InlineBox generateMultilineBreak(Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount = 0;... |
int len2 = FontUtil.len(c, node, text.substring(start, next_space), font); | int len2 = FontUtil.len(c, text.substring(start, next_space), font); | public static InlineBox generateMultilineBreak(Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail) { int extra = 0; // calc end index to most words that will fit int end = start; int dbcount = 0;... |
CascadedStyle cs = c.css.getPseudoElementStyle(getElement(node), "first-letter"); | CascadedStyle cs = c.css.getPseudoElementStyle(node, "first-letter"); | public static boolean isFirstLetter(Context c, Node node, int start) { //u.p("looking at node: " + node); //u.p("start = " + start); if (start > 0) { return false; } if (node == null) { return false; } //u.p("parent's first child = " + node.getP... |
if (avail < FontUtil.len(c, node, first_word, font)) { | if (avail < FontUtil.len(c, first_word, font)) { | public static boolean isUnbreakableLine(Context c, Node node, int start, String text, int avail, Font font) { //u.p("isUnbreakableLine( start = " + start + " text = " + text + " avail = " + avail + " font = " + font); // extract the first real word from the text int first_word_index = text.inde... |
Font font = FontUtil.getFont(c, style, box.getNode()); | Font font = FontUtil.getFont(c, style); | public static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) { box.color = style.getColor(); TextDecoration.setupTextDecoration(style, box.getNode(), box); Font font = FontUtil.getFont(c, style, box.getNode()); box.setFont(font); box.width = FontUtil.len(c, b... |
public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if (node instanceof Element) { el = (Element) node; } else { el = (Element) node.getParentNode(); } | public static void setupTextDecoration(InlineBox box) { | public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if (node instanceof Element) { el = (Element) node; } else { el = (Element) node.getParentNode(); } // set to defaults box.underline = false; ... |
String text_decoration = c.css.getStyle(el).getStringProperty(CSSName.TEXT_DECORATION); | String text_decoration = box.getContent().getStyle().getStringProperty(CSSName.TEXT_DECORATION); | public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if (node instanceof Element) { el = (Element) node; } else { el = (Element) node.getParentNode(); } // set to defaults box.underline = false; ... |
String s = derivedProperty.propertyName(); sb.append(s).append(" | "); | if(derivedProperty != null) { sb.append(derivedProperty.propertyName()); } else { sb.append("null"); } sb.append("|"); | public String toString() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < _derivedPropertiesById.length; i++) { DerivedProperty derivedProperty = _derivedPropertiesById[i]; String s = derivedProperty.propertyName(); sb.append(s).append(" | "); } ... |
throws NotImplementedException | public AccessibleRole getAccessibleRole() throws NotImplementedException { return AccessibleRole.SLIDER; } | |
if (paint && majorTickSpacing > 0) | if (paint && majorTickSpacing > 0 && labelTable == null) | public void setPaintLabels(boolean paint) { if (paint != paintLabels) { paintLabels = paint; if (paint && majorTickSpacing > 0) labelTable = createStandardLabels(majorTickSpacing); firePropertyChange("paintLabels", !paint, paint); } } |
return new Dimension(this.x - initialX, this.y - initialY); | setRelativeOffset(new Dimension(this.x - initialX, this.y - initialY)); return getRelativeOffset(); | public Dimension positionRelative(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); if (! style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { this.x += style.getFloatPropertyProportionalWidth( ... |
if (trace) { log.trace("message " + m + " is not expired, returning it to the caller"); } | if (trace) { log.trace("message " + m + " is not expired, pushing it to the caller"); } | public MessageProxy receive(long timeout) throws JMSException { synchronized (mainLock) { if (closed) { throw new JMSException("Cannot call receive(..) Consumer is closed"); } if (listener != null) { throw... |
Thread.sleep(30000); | Thread.sleep(60000); | public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i... |
currentLine.setContainsBlockLevelContent(true); | public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin... | |
l.add(new Integer(id)); | l.add(Integer.valueOf(id)); | public void addSubjectAlternativeName(int id, String name) throws IOException { if (id < 0 || id > 8 || name == null) throw new IOException("illegal alternative name"); if (altNames == null) altNames = new LinkedList(); ArrayList l = new ArrayList(2); l.add(new Integer(id)); l.add(name); ... |
int cnt = stats.getMessageCount(); if (cnt > maxMessages) { maxMessages = cnt; | if (stats != null) { int cnt = stats.getMessageCount(); | public ClusteredQueue chooseQueue(List queues) { Iterator iter = queues.iterator(); ClusteredQueue chosenQueue = null; int maxMessages = 0; while (iter.hasNext()) { ClusteredQueue queue = (ClusteredQueue)iter.next(); if (!queue.isLocal()) ... |
chosenQueue = queue; | if (cnt > maxMessages) { maxMessages = cnt; chosenQueue = queue; } | public ClusteredQueue chooseQueue(List queues) { Iterator iter = queues.iterator(); ClusteredQueue chosenQueue = null; int maxMessages = 0; while (iter.hasNext()) { ClusteredQueue queue = (ClusteredQueue)iter.next(); if (!queue.isLocal()) ... |
Point maxOffset = root.getLayer().getMaxOffset(); root.getLayer().setPositionsFinalized(true); intrinsic_size = new Dimension(maxOffset.x, maxOffset.y); | Dimension intrinsic_size = root.getLayer().getPaintingDimension(c); | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; } LayoutContext c = newLayoutContext(pageInfo, (Graphics2D) g); synchronized (this) ... |
getSharedContext().setMaxWidth(0); | protected LayoutContext newLayoutContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; extents = getBaseExtents(pageInfo); //Uu.p("newContext() = extents = " + extents); getSharedCo... | |
getSharedContext().setMaxWidth(0); | protected RenderingContext newRenderingContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; extents = getBaseExtents(pageInfo); //Uu.p("newContext() = extents = " + extents); getSh... | |
ConnectionDelegate cd = delegate.createConnectionDelegate(username, password, null); | ConnectionDelegate cd = delegate.createConnectionDelegate(username, password); | protected JBossConnection createConnectionInternal(String username, String password, boolean isXA, int type) throws JMSException { ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger(); try { tccc.set(getClass()... |
buf.append(stack[i].getType()); | buf.append(JvmType.toString(stack[i].getType())); | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } return buf.toString(); } |
buf.append(stack[i].getKind()); | buf.append(Item.Kind.toString(stack[i].getKind())); | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } return buf.toString(); } |
buf.append("TOS"); | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } return buf.toString(); } | |
d.acknowledge(null); | if (d.isSelectorAccepted()) { d.acknowledge(null); } else { d.cancel(); } | void acknowledgeAll() throws JMSException { try { for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); d.acknowledge(null); } deliveries.clear(); } catc... |
for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); if (!d.isSelectorAccepted()) { try { d.cancel(); } catch(Throwable t) { log.error("Failed to cancel delivery " + d, t); } } } | protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (trace) { log.trace(this + " removed from the channel"); } } } | |
if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID()); } | if (trace) { log.trace(this + " rejects reference with ID " + ref.getMessageID()); } | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... |
JBossMessage message = (JBossMessage)reference.getMessage(); boolean accept = this.accept(message); if (!accept) { if (trace) { log.trace(this + " DOES NOT accept the message"); } return null; } if (reference.getDeliveryCount() > MAX_DELIVERY_ATTEMPTS) | JBossMessage message = (JBossMessage)ref.getMessage(); if (ref.getDeliveryCount() > MAX_DELIVERY_ATTEMPTS) | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... |
delivery = new SimpleDelivery(observer, (MessageReference)reference, true); | delivery = new SimpleDelivery(observer, ref, true); | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... |
} delivery = new SimpleDelivery(observer, (MessageReference)reference); deliveries.put(new Long(reference.getMessageID()), delivery); MessageProxy md = JBossMessage.createThinDelegate(message, reference.getDeliveryCount()); | } selectorRejected = !this.accept(message); delivery = new SimpleDelivery(observer, ref, false, !selectorRejected); deliveries.put(new Long(ref.getMessageID()), delivery); if (selectorRejected) { if (trace) { log.trace(this + " DOES NOT accept the message because the selector rejected it"); } return delivery... | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... |
active = false; grabbing = false; | if (!selectorRejected) { active = false; grabbing = false; } | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... |
if (trace) { log.trace(this + " prompts delivery"); } channel.deliver(this); | while(true) { if (trace) { log.trace(this + " prompts delivery"); } selectorRejected = false; channel.deliver(this); if (!selectorRejected) { break; } } | protected void promptDelivery() { if (active || grabbing) { if (trace) { log.trace(this + " prompts delivery"); } channel.deliver(this); } } |
if (currentBounds.intersects(lastBounds)) { if (direction == LEFT) { currentBounds.x = lastBounds.x + last.getWidth(); } else if (direction == RIGHT) { currentBounds.x = lastBounds.y - current.getWidth(); } | moveOver = true; } if (currentBounds.y >= lastBounds.y && currentBounds.y < lastBounds.y + lastBounds.width) { moveOver = true; } if (moveOver) { if (direction == LEFT) { currentBounds.x = lastBounds.x + last.getWidth(); } else if (direction == RIGHT) { currentBounds.x = lastBounds.x - current.getWidth(); | private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g... |
public void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, | private void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, | public void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, LEFT); save(current, bfc, LEFT); } |
public void floatRight(CssContext cssCtx, BlockFormattingContext bfc, | private void floatRight(CssContext cssCtx, BlockFormattingContext bfc, | public void floatRight(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, RIGHT); save(current, bfc, RIGHT); } |
FloatedBlockBox current, List floats) { | Box current, List floats) { | private void moveClear(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, List floats) { Point offset = bfc.getOffset(); Rectangle bounds = current.getBounds(cssCtx, -offset.x, -offset.y); int y = findLowestAbsoluteY(cssCtx, floats); if (b... |
} | } c.getGraphics().translate(-master.x, -master.y); c.translate(-master.x, -master.y); | public void paintFloats(RenderingContext c) { for (Iterator i = leftFloats.iterator(); i.hasNext(); ) { Box floater = (Box)i.next(); Point offset = (Point)offsetMap.get(floater); floater.paint(c, -offset.x, -offset.y); } for (Iterator i = rightFloats.ite... |
if (current.getStyle().isCleared()) { clear(cssCtx, bfc, current); } | private void position(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { moveAllTheWayOver(current, direction); alignToLastFloat(cssCtx, bfc, current, direction); if (! fitsInContainingBlock(current) || overlaps(cssCtx, b... | |
logger.setLevel(Level.OFF); | public BrowserMenuBar(BrowserStartup root) { this.root = root; } | |
String clazz = TypeResolver.getFunction(type); if (clazz == null) { clazz = (String) args.get(CLASS_NAME); } FunctionProvider provider = (FunctionProvider) loadObject(clazz); | FunctionProvider provider = TypeResolver.getResolver().getFunction(type, args); | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... |
String message = "Could not load FunctionProvider class: " + clazz; | String message = "Could not load FunctionProvider class"; | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... |
String clazz = TypeResolver.getCondition(type); if (clazz == null) { clazz = (String) args.get(CLASS_NAME); } Condition condition = (Condition) loadObject(clazz); | Condition condition = TypeResolver.getResolver().getCondition(type, args); | protected boolean passesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { String type = conditionDesc.getType(); Map args = new HashMap(conditionDesc.getArgs()); for (Iterator iterator = args.entrySet().iterator(); ... |
String message = "Could not load Condition: " + clazz; throw new WorkflowException(message); | context.setRollbackOnly(); throw new WorkflowException("Could not load condition"); | protected boolean passesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { String type = conditionDesc.getType(); Map args = new HashMap(conditionDesc.getArgs()); for (Iterator iterator = args.entrySet().iterator(); ... |
throw new WorkflowException("Unknown exception encountered when trying condition: " + clazz, e); | throw new WorkflowException("Unknown exception encountered when checking condition " + condition, e); | protected boolean passesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { String type = conditionDesc.getType(); Map args = new HashMap(conditionDesc.getArgs()); for (Iterator iterator = args.entrySet().iterator(); ... |
String clazz = TypeResolver.getRegister(type); if (clazz == null) { clazz = (String) args.get(CLASS_NAME); } Register r = (Register) loadObject(clazz); | Register r = TypeResolver.getResolver().getRegister(type, args); | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... |
String message = "Could not load register class: " + clazz; | String message = "Could not load register class"; context.setRollbackOnly(); | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... |
throw new WorkflowException("An unknown exception occured while registering variable using class: " + clazz, e); | throw new WorkflowException("An unknown exception occured while registering variable using register " + r, e); | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... |
String clazz = TypeResolver.getValidator(type); if (clazz == null) { clazz = (String) args.get(CLASS_NAME); } Validator validator = (Validator) loadObject(clazz); | Validator validator = TypeResolver.getResolver().getValidator(type, args); | protected void verifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps) throws WorkflowException { for (Iterator iterator = validators.iterator(); iterator.hasNext();) { ValidatorDescriptor input = (ValidatorDescriptor) iterator.next(); if (input != null) { ... |
String message = "Could not load validator class: " + clazz; | String message = "Could not load validator class"; context.setRollbackOnly(); | protected void verifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps) throws WorkflowException { for (Iterator iterator = validators.iterator(); iterator.hasNext();) { ValidatorDescriptor input = (ValidatorDescriptor) iterator.next(); if (input != null) { ... |
String message = "An unknown exception occured executing Validator: " + clazz; | String message = "An unknown exception occured executing Validator " + validator; | protected void verifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps) throws WorkflowException { for (Iterator iterator = validators.iterator(); iterator.hasNext();) { ValidatorDescriptor input = (ValidatorDescriptor) iterator.next(); if (input != null) { ... |
Reader reader = ctx.getUac().getReader(uri); return XMLResource.load(reader).getDocument(); | return XMLResource.load(ctx.getUac().getInputStream(uri)).getDocument(); | protected Document loadDocument(final String uri) { Reader reader = ctx.getUac().getReader(uri); return XMLResource.load(reader).getDocument(); } |
Document dom = XMLResource.load(new InputSource(getRenderingContext().getUac().getReader(url))).getDocument(); | Document dom = loadDocument(url); | protected void setDocumentRelative(String filename) { String url = getRenderingContext().getUac().resolveURI(filename); Document dom = XMLResource.load(new InputSource(getRenderingContext().getUac().getReader(url))).getDocument(); setDocument(dom, url); } |
Color light = MetalLookAndFeel.getWhite(); | Color light = MetalLookAndFeel.getControlHighlight(); | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... |
g.drawRect(x + 1, y + h - 2, 0, 0); g.drawRect(x + w - 2, y + 1, 0, 0); | g.drawLine(x + 1, y + h - 2, x + 1, y + h - 2); g.drawLine(x + w - 2, y + 1, x + w - 2, y + 1); | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... |
} | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | |
Color bc = defaults.getColor( | Color bc = UIManager.getColor( | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... |
if (log.isTraceEnabled()) { log.trace("created transaction " + tx); } | if (trace) { log.trace("created transaction " + tx); } | public Transaction createTransaction(Xid xid) throws TransactionException { if (globalToLocalMap.containsKey(xid)) { throw new TransactionException("There is already a local tx for global tx " + xid); } Transaction tx = new Transaction(xid, transactionLog); if (log.isTraceEna... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipText = UIManager.getString("FileChooser.cancelButtonToolTipText"); | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... |
acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString("FileChooser.cancelButtonText"); cancelButtonToolTipText = defaults.getString("FileChooser.cancelButtonToolTipText"); | dirDescText = UIManager.getString("FileChooser.directoryDescriptionText"); fileDescText = UIManager.getString("FileChooser.fileDescriptionText"); | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... |
dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); | helpButtonMnemonic = UIManager.getInt("FileChooser.helpButtonMnemonic"); helpButtonText = UIManager.getString("FileChooser.helpButtonText"); helpButtonToolTipText = UIManager.getString("FileChooser.helpButtonToolTipText"); | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... |
helpButtonMnemonic = defaults.getInt("FileChooser.helpButtonMnemonic"); helpButtonText = defaults.getString("FileChooser.helpButtonText"); helpButtonToolTipText = defaults.getString("FileChooser.helpButtonToolTipText"); | openButtonMnemonic = UIManager.getInt("FileChooser.openButtonMnemonic"); openButtonText = UIManager.getString("FileChooser.openButtonText"); openButtonToolTipText = UIManager.getString("FileChooser.openButtonToolTipText"); | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... |
openButtonMnemonic = defaults.getInt("FileChooser.openButtonMnemonic"); openButtonText = defaults.getString("FileChooser.openButtonText"); openButtonToolTipText = defaults.getString("FileChooser.openButtonToolTipText"); saveButtonMnemonic = defaults.getInt("FileChooser.saveButtonMnemonic"); saveButtonText = defaults.g... | saveButtonMnemonic = UIManager.getInt("FileChooser.saveButtonMnemonic"); saveButtonText = UIManager.getString("FileChooser.saveButtonText"); saveButtonToolTipText = UIManager.getString("FileChooser.saveButtonToolTipText"); | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.