rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public static InlineBox generateFirstLetterInlineBox(Context c, Node node, int start, String text, InlineBox prev, InlineBox prev_align, int avail) {
public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) {
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(node);
CalculatedStyle style = content.getStyle();
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); ...
InlineBox box = newBox(c, node, start, end, prev, text, prev_align, font);
InlineBox box = newBox(c, content, start, end, text, prev_align, font, firstLineStyle);
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); ...
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); ...
if (ps != null) { cs = c.css.getDerivedStyle(parent, ps);
if (firstLetterStyle != null) { cs = c.css.getDerivedStyle(style, firstLetterStyle);
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); ...
cs = parent;
cs = 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); ...
public static InlineBox generateReplacedInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) {
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) {
public static InlineBox generateReplacedInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { //u.p("generating replaced Inline Box"); // get the layout for the replaced element Layout layout = c.getLayout(node); //TODO: temporary hack...
Layout layout = c.getLayout(node); BlockBox block = (BlockBox) layout.layout(c, new BlockContent((Element) node, c.css.getStyle(node)));
Layout layout = c.getLayout(content.getElement()); BlockBox block = (BlockBox) layout.layout(c, content);
public static InlineBox generateReplacedInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { //u.p("generating replaced Inline Box"); // get the layout for the replaced element Layout layout = c.getLayout(node); //TODO: temporary hack...
InlineBox box = newBox(c, node, 0, 0, prev, text, bounds, prev_align, font);
CascadedStyle firstLineStyle = c.css.getPseudoElementStyle(content.getElement(), "first-line"); InlineBox box = newBox(c, content, 0, 0, null, bounds, prev_align, font, firstLineStyle);
public static InlineBox generateReplacedInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { //u.p("generating replaced Inline Box"); // get the layout for the replaced element Layout layout = c.getLayout(node); //TODO: temporary hack...
public static InlineBox newBox(Context c, Node node, int start, int end, InlineBox prev, String text, InlineBox prev_align, Font font) { return newBox(c, node, start, end, prev, text, null, prev_align, font);
public static InlineBox newBox(Context c, Content content, int start, int end, String text, InlineBox prev_align, Font font, CascadedStyle firstLineStyle) { return newBox(c, content, start, end, text, null, prev_align, font, firstLineStyle);
public static InlineBox newBox(Context c, Node node, int start, int end, InlineBox prev, String text, InlineBox prev_align, Font font) { return newBox(c, node, start, end, prev, text, null, prev_align, font); }
TextDecoration.setupTextDecoration(style, box.getNode(), box);
TextDecoration.setupTextDecoration(style, box);
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.setFont(font); box.width = FontUtil.len(c, box.getSubstring...
boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWidth(); int height = getContainingBlock().getHeight();
Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height;
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
usePaddingBox = true; paddingBox = getContainingBlock().getPaddingEdge(0, 0, cssCtx); width = paddingBox.width; height = paddingBox.height;
boundingBox = getContainingBlock().getPaddingEdge(0, 0, cssCtx); } else { boundingBox = getContainingBlock().getContentAreaEdge(0, 0, cssCtx);
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
this.x += width - style.getFloatPropertyProportionalWidth(CSSName.RIGHT, getContainingBlock().getContentWidth(), cssCtx) - getWidth();
if (getStyle().isAbsolute()) { this.x += boundingBox.width - style.getFloatPropertyProportionalWidth(CSSName.RIGHT, getContainingBlock().getContentWidth(), cssCtx) - getWidth(); } else { this.x += style.getFloatPropertyProportionalWidth(CSSName.RIGHT, getContainingBlock().getContentWidth(), cssCtx); }
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
this.y += style.getFloatPropertyProportionalHeight(CSSName.TOP, getContainingBlock().getHeight(), cssCtx);
this.y += style.getFloatPropertyProportionalHeight(CSSName.TOP, cbContentHeight, cssCtx);
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
this.y += height - style.getFloatPropertyProportionalWidth(CSSName.BOTTOM, getContainingBlock().getHeight(), cssCtx) - getHeight();
if (getStyle().isAbsolute()) { this.y += boundingBox.height - style.getFloatPropertyProportionalWidth(CSSName.BOTTOM, cbContentHeight, cssCtx) - getHeight(); } else { this.y += style.getFloatPropertyProportionalHeight(CSSName.BOTTOM, cbContentHeight, cssCtx); }
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
if (usePaddingBox) { this.x += paddingBox.x; this.y += paddingBox.y;
if (getStyle().isAbsolute()) { this.x += boundingBox.x; this.y += boundingBox.y;
public Dimension positionPositioned(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); boolean usePaddingBox = false; Rectangle paddingBox = null; int width = getContainingBlock().getContentWid...
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon("CheckBox.icon");
return UIManager.getIcon("CheckBox.icon");
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon("CheckBox.icon"); }
JFrame frame = new JFrame();
if(GeneralUtil.isMacOSX()) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name","FS Browser"); } JFrame frame = new JFrame();
public static void main(String[] args) throws Exception { //System.out.println(new URI("images/Stop24.gif")); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); final BrowserStartup bs = new BrowserStartup(); bs.frame = frame; ...
deliveryCount = in.readInt();
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = (Serializable)in.readObject(); reliable = in.readBoolean(); expiration = in.readLong(); timestamp = in.readLong(); headers = readMap(in); redelivered = in.readBoolean(); priorit...
out.writeInt(deliveryCount);
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(messageID); out.writeBoolean(reliable); out.writeLong(expiration); out.writeLong(timestamp); writeMap(out, headers); out.writeBoolean(redelivered); out.writeInt(priority); }
long end = System.currentTimeMillis(); System.out.println("RENDERING TOOK " + (end - start) + " ms");
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } //Uu.p("paint component () cal...
return "delivery[" + ref + "](" + (isDone() ? "done" : "active" ) + ")";
return "Delivery[" + ref + "](" + (isDone() ? "done" : "active" ) + ")";
public String toString() { return "delivery[" + ref + "](" + (isDone() ? "done" : "active" ) + ")"; }
boolean result = passesCondition(conditionDescriptor, transientVars, ps, currentStepId);
boolean result; if (conditionDescriptor.isNested()) { result = passesConditions((String) conditionDescriptor.getArgs().get("operator"), conditionDescriptor.getNestedConditions(), transientVars, ps, currentStepId); } else { result = passesCondition(conditionDescriptor, transientVars, ps, currentStepId); }
protected boolean passesConditions(String conditionType, List conditions, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException { if ((conditions == null) || (conditions.size() == 0)) { return true; } boolean and = "AND".equals(conditionType); boolean ...
public boolean containsKey(Object key)
public synchronized boolean containsKey(Object key)
public boolean containsKey(Object key) { return k2v.containsKey(key); }
public Object get(Object key)
public synchronized Object get(Object key)
public Object get(Object key) { return k2v.get(key); }
Object getKey(Object value)
public synchronized Object getKey(Object value)
Object getKey(Object value) { return v2k.get(value); }
public void put(Object key, Object value)
public synchronized void put(Object key, Object value)
public void put(Object key, Object value) { k2v.put(key, value); v2k.put(value, key); }
public void removeKey(Object key)
public synchronized void removeKey(Object key)
public void removeKey(Object key) { Object value = k2v.get(key); if (value!=null) { k2v.remove(key); v2k.remove(value); } }
"stop".equals(methodName))
"stop".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerConnectionDelegate.class)))
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.getAdvisor();...
"createConsumer".equals(methodName))
"createConsumer".equals(methodName) || "sendTransaction".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerSessionDelegate.class)))
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.getAdvisor();...
else if ("send".equals(methodName))
else if ("send".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerProducerDelegate.class)))
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.getAdvisor();...
this.messages = new BoundedBuffer(capacity); this.isConnectionConsumer = isCC;
channel = new SynchronousChannel(); isConnectionConsumer = isCC; closedLock = new Object();
public MessageCallbackHandler(boolean isCC) { this.messages = new BoundedBuffer(capacity); this.isConnectionConsumer = isCC; }
if (isClosed())
synchronized (closedLock)
public void close() { if (isClosed()) { if (log.isTraceEnabled()) { log.trace(this + " already closed, returning"); } return; } setClosed(true); log.debug("closing " + this); if (receivingThread != null) { receivingThread.interrupt(); if (log.isTra...
if (log.isTraceEnabled()) { log.trace(this + " already closed, returning"); } return;
closed = true; if (listening) { stopListener(); } if (receiving) { stopReceiver(); } try { client.removeListener(this); log.debug("Listener removed from server"); callbackServer.stop(); log.debug("Closed callback server " + callbackServer.getInvokerLocator()); } catch(Throwable e) { log.warn("Failed to clean up...
public void close() { if (isClosed()) { if (log.isTraceEnabled()) { log.trace(this + " already closed, returning"); } return; } setClosed(true); log.debug("closing " + this); if (receivingThread != null) { receivingThread.interrupt(); if (log.isTra...
setClosed(true); log.debug("closing " + this); if (receivingThread != null) { receivingThread.interrupt(); if (log.isTraceEnabled()) { log.trace("interrupted receiving thread " + receivingThread); } } messages = null; try { if (log.isTraceEnabled()) { log.trace("attempting to remove listener from callback server...
public void close() { if (isClosed()) { if (log.isTraceEnabled()) { log.trace(this + " already closed, returning"); } return; } setClosed(true); log.debug("closing " + this); if (receivingThread != null) { receivingThread.interrupt(); if (log.isTra...
Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!isListening() && !isReceiving())
synchronized (closedLock) { Message m = (Message)callback.getParameter(); if (closed)
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!i...
if (log.isTraceEnabled()) { log.trace("NOT listening and NOT receiving"); } cancel = true;
log.error("Consumer is closed - ignoring message");
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!i...
else if (isClosed())
try { boolean handled = false; while (waiting) { handled = channel.offer(m, 0); if (handled) break; } if (!handled) { cancelMessage(m); } } catch(InterruptedException e)
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!i...
log.warn("Tried to deliver message but consumer is closed!!"); cancel = true; } if (cancel) { if (log.isTraceEnabled()) { log.trace("cancelling message " + m.getJMSMessageID()); } consumerDelegate.cancelMessage(m.getJMSMessageID()); if (log.isTraceEnabled()) { log.trace("message " + m.getJMSMessageID() + " cancelled, ...
String msg = "Interrupted attempt to put message in the delivery buffer"; log.error(msg); throw new HandleCallbackException(msg, e);
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!i...
catch (JMSException e) { log.error("Failed to cancel message " + m, e); if (log.isTraceEnabled()) { log.trace("returning"); } return; } try { JBossMessage jm = (JBossMessage)m; if (!this.isConnectionConsumer) { jm.setSessionDelegate(sessionDelegate); } if (log.isTraceEnabled()) { log.trace("trying to put " + m + "...
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } Message m = (Message)callback.getParameter(); try { boolean cancel = false; if (!i...
public void postDeliver(Message m) throws JMSException
protected void postDeliver(Message m) throws JMSException
public void postDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.postDeliver(m.getJMSMessageID(), receiverID); ...
public void preDeliver(Message m) throws JMSException
protected void preDeliver(Message m) throws JMSException
public void preDeliver(Message m) throws JMSException { //If this is the callback-handler for a connection consumer we don't want //to acknowledge or add anything to the tx for this session if (!this.isConnectionConsumer) { sessionDelegate.preDeliver(m.getJMSMessageID(), receiverID); ...
throws JMSException, InterruptedException {
throws JMSException, InterruptedException { if (listening) { throw new JBossJMSException("A message listener is already registered"); } receiving = true; receiverThread = Thread.currentThread();
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
synchronized(this) { if (isClosed()) { throw new JBossJMSException("The message handler is closed"); } if (isListening()) { throw new JBossJMSException("A message listener is already registered"); } if (isReceiving()) { throw new JBossJMSException("Another thread is already receiving"); } setReceiving(true); }
JBossMessage m = null;
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
receivingThread = Thread.currentThread(); clearBuffer(); forwardToServer(jmsmi, this, receiverInt); JBossMessage m = null;
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
m = ((JBossMessage)messages.take());
if (!receiverStopping) { m = getMessage(0); } if (m == null) { return null; }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
m = ((JBossMessage)messages.poll(1000));
if (!receiverStopping) { m = getMessage(-1); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
m = ((JBossMessage)messages.poll(timeout));
if (!receiverStopping) { m = getMessage(timeout); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
stopServerDelivery();
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
stopServerDelivery(); if (isClosed())
if (closed)
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
if (log.isTraceEnabled()) { log.trace(this + " is closed"); }
if (log.isTraceEnabled()) { log.trace("It's closed"); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
if (log.isTraceEnabled()) { log.trace("got " + m + " from queue"); } receivingThread = null; preDeliver(m); postDeliver(m);
if (log.isTraceEnabled()) { log.trace("got " + m); }
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
setReceiving(false); receivingThread = null;
receiving = false; receiverThread = null;
public Message receive(long timeout, JMSMethodInvocation jmsmi, Interceptor receiverInt) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (isClo...
setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); }
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
if (log.isTraceEnabled()) { log.trace("clearing buffer"); } clearBuffer(); forwardToServer(mi, this, receiverInterceptor);
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
JBossMessage m = (JBossMessage)messages.take(); preDeliver(m); listener.onMessage(m); if (log.isTraceEnabled()) { log.trace("message successfully handled by listener"); } postDeliver(m);
if (!listenerStopping) { JBossMessage m = getMessage(0); preDeliver(m); listener.onMessage(m); if (log.isTraceEnabled()) { log.trace("message successfully handled by listener"); } postDeliver(m); } else { break; }
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
catch(Throwable t)
catch (JMSException e)
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
log.error(t);
log.error("Failed to deliver message", e);
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
{ stopServerDelivery(); setListening(false);
{ listening = false;
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } setListening(true); if (log.isTraceEnabled()) { log.trace("set listening to true"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("...
public synchronized void setMessageListener(MessageListener listener, JMSMethodInvocation mi, Interceptor receiverInterceptor) throws JMSException
public void setMessageListener(MessageListener listener) throws JMSException
public synchronized void setMessageListener(MessageListener listener, JMSMethodInvocation mi, Interceptor receiverInterceptor) throws JMSException { if (receiving) { throw new JBossJMSException("Another th...
if (listenerThread != null)
if (listening)
public synchronized void setMessageListener(MessageListener listener, JMSMethodInvocation mi, Interceptor receiverInterceptor) throws JMSException { if (receiving) { throw new JBossJMSException("Another th...
listenerThread.interrupt(); try { listenerThread.join(); } catch (InterruptedException e) { log.error("Thread interrupted", e); }
stopListener();
public synchronized void setMessageListener(MessageListener listener, JMSMethodInvocation mi, Interceptor receiverInterceptor) throws JMSException { if (receiving) { throw new JBossJMSException("Another th...
this.mi = mi; this.receiverInterceptor = receiverInterceptor;
listening = true;
public synchronized void setMessageListener(MessageListener listener, JMSMethodInvocation mi, Interceptor receiverInterceptor) throws JMSException { if (receiving) { throw new JBossJMSException("Another th...
private void stopServerDelivery()
protected void stopServerDelivery() throws JMSException
private void stopServerDelivery() { try { if (log.isTraceEnabled()) { log.trace("stopping delivery on server"); } consumerDelegate.stopDelivering(); } catch (Exception e ) { //Might be closed - ignore String msg = "Stopping delivery on server did not succeed...
try { if (log.isTraceEnabled()) { log.trace("stopping delivery on server"); } consumerDelegate.stopDelivering(); } catch (Exception e ) { String msg = "Stopping delivery on server did not succeed"; log.warn(msg); if (log.isTraceEnabled()) { log.trace(msg, e); } }
consumerDelegate.stopDelivering();
private void stopServerDelivery() { try { if (log.isTraceEnabled()) { log.trace("stopping delivery on server"); } consumerDelegate.stopDelivering(); } catch (Exception e ) { //Might be closed - ignore String msg = "Stopping delivery on server did not succeed...
public DeliveryRunnable(InvokerCallbackHandler callbackHandler, Message m)
public DeliveryRunnable(MessageDelegate msg, Client callbackClient, int consumerID, boolean trace)
public DeliveryRunnable(InvokerCallbackHandler callbackHandler, Message m) { super(m); this.callbackHandler = callbackHandler; }
super(m); this.callbackHandler = callbackHandler;
this.msg = msg; this.callbackClient = callbackClient; this.consumerID = consumerID; this.trace = trace;
public DeliveryRunnable(InvokerCallbackHandler callbackHandler, Message m) { super(m); this.callbackHandler = callbackHandler; }
if (log.isTraceEnabled()) { log.trace("handing " + this.getCallbackObject() + " over to the remoting layer"); } callbackHandler.handleCallback(this);
if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } callbackClient.invoke(this);
public void run() { try { if (log.isTraceEnabled()) { log.trace("handing " + this.getCallbackObject() + " over to the remoting layer"); } callbackHandler.handleCallback(this); } catch(Throwable t) { log.warn("Failed to deliver the message to the client, perhaps the ...
public String toString() { return null; }
public String toString() { StringBuffer buf = new StringBuffer("EventListenerList: "); buf.append(listenerList.length / 2); buf.append(" listeners: "); for (int i = 0; i < listenerList.length; i += 2) { buf.append(" type "); buf.append(((Class) listenerList[i]).getName()); buf.append(" listener "); buf.append(listenerL...
public String toString() { return null; // TODO } // toString()
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null);
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor());
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 for (int i = 0; i < 99;...
if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight()); } else if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); extents = new Rectangle(0, 0, bnds.width, bnds.height); } else { extents = new Rectangle(...
extents = getBaseExtents(pageInfo);
protected LayoutContext newLayoutContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getConten...
if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight()); } else if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); extents = new Rectangle(0, 0, bnds.width, bnds.height); } else { extents = new Rectangle(...
extents = getBaseExtents(pageInfo);
protected RenderingContext newRenderingContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.get...
LinkedList pushedOnFirstLine = new LinkedList();
LinkedList pushedOnFirstLine = null;
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next());
if (pushedOnFirstLine == null) { pushedOnFirstLine = new LinkedList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); }
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
if (c.hasFirstLineStyles()) { pushedOnFirstLine.removeLast(); }
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
getExtents().width - (margin.left + border.left + padding.left) - (margin.right + border.right + padding.right), getExtents().height - (margin.top + border.top + padding.top) - (margin.bottom + border.bottom + padding.bottom));
getExtents().width - block.totalHorizontalPadding(), getExtents().height - block.totalVerticalPadding() );
public void shrinkExtents(Box block) { extents_stack.push(getExtents()); Border border = block.border; Border padding = block.padding; Border margin = block.margin; Rectangle rect = new Rectangle(0, 0, getExtents().width - (margin.left + border.left + padding.left) ...
if ((split == 0) && (join == 0) && !((ActionDescriptor) getParent()).isFinish()) {
if ((split == 0) && (join == 0) && !(getParent() instanceof ActionDescriptor && ((ActionDescriptor) getParent()).isFinish())) {
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(preFunctions); ValidationHelper.validate(postFunctions); ValidationHelper.validate(validators); //if it's not a split or a join or a finish, then we require a next step if ((split == 0) &&...
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = style.getStringProperty("background-color"); if (value.equals("transparent")) { box.background_color = new Colo...
if (box.background_color == null) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { String value = style.getStringProperty("background-color"); if (value.equals("transparent")) { box.background_color = new Color(0, 0, 0, 0); return box.background_color;
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { ...
box.background_color = style.getBackgroundColor();
public static Color getBackgroundColor(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.background_color == null) { CalculatedStyle style = box.getContent().getStyle(); if (style.isIdentifier(CSSName.BACKGROUND_COLOR)) { ...
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); }
if (box.margin == null) { box.margin = c.getCurrentStyle().getMarginWidth();
public static Border getMargin(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.margin == null) { box.margin = box.getContent().getStyle().getMarginWidth(); } } return box.margin; }
if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = box.getContent().getStyle().getPaddingWidth(); }
if (box.padding == null) { box.padding = c.getCurrentStyle().getPaddingWidth();
public static Border getPadding(Context c, Box box) { if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.padding == null) { box.padding = box.getContent().getStyle().getPaddingWidth(); } } return box.padding; }
box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor());
box.border_color = ctx.css.getStyle(box.getRealElement()).getBorderColor();
public void restyle(Context ctx, Box box) { box.color = ctx.css.getStyle(box.getRealElement()).getColor(); box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor()); box.border_style = ctx.css.getStyle(box.getRealElement()).getStringProperty("border-top-style"); box.bac...
while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; }
public void tearDown() throws Exception { // TODO uncomment these producerConnection.close(); consumerConnection.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); }
block.colspan = (int) c.getCurrentStyle().getFloatPropertyProportionalHeight(CSSName.FS_COLSPAN, 0, c.getCtx()); block.rowspan = (int) c.getCurrentStyle().getFloatPropertyProportionalHeight(CSSName.FS_ROWSPAN, 0, c.getCtx());
block.colspan = (int) c.getCurrentStyle().getNumberProperty(CSSName.FS_COLSPAN); block.rowspan = (int) c.getCurrentStyle().getNumberProperty(CSSName.FS_ROWSPAN);
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); }
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ...
util.print( object );
StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter( sw ); utilAsString.setPrintWriter( pw ); utilAsString.print( object ); pw.flush(); XRLog.general( sw.getBuffer().toString() );
public static void pr( Object object ) { init(); util.print( object ); }
if(text == null) return "";
public String getSubstring() { String txt = text.substring( start_index, end_index ); return txt; }
m = consumer.receive(500);
m = consumer.receiveNoWait();
public void testAutoAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Mes...
m = consumer.receive(2000);
m = consumer.receiveNoWait();
public void testAutoAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Mes...
m = consumer.receive(500);
m = consumer.receiveNoWait();
public void testBulkClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.CLIENT_ACKNOWLE...
m = consumer.receive(2000);
m = consumer.receiveNoWait();
public void testBulkClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.CLIENT_ACKNOWLE...
Message m = consumer.receive(500);
Message m = consumer.receiveNoWait();
public void testClientAcknowledgeNoAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.CLIE...
Message m = consumer.receive(2000);
Message m = consumer.receiveNoWait();
public void testClientAcknowledgeNoAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.CLIE...
Message m = consumer.receive(500);
Message m = consumer.receiveNoWait();
public void testIndividualClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Sessio...
Message m = consumer.receive(2000);
Message m = consumer.receiveNoWait();
public void testIndividualClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Sessio...
m = consumer.receive(2000);
m = consumer.receiveNoWait();
public void testIndividualClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Sessio...
m = consumer.receive(500);
m = consumer.receiveNoWait();
public void testLazyAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE)...
m = consumer.receive(2000);
m = consumer.receiveNoWait();
public void testLazyAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.DUPS_OK_ACKNOWLEDGE)...
m = consumer.receive(500);
m = consumer.receiveNoWait();
public void testPartialClientAcknowledge() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(false, Session.CLIENT_ACKNO...