rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
sessionDelegate.addAsfMessage(m, receiverID);
sessionDelegate.addAsfMessage(m, receiverID, cons);
void addAsfMessage(Message m, String receiverID) { sessionDelegate.addAsfMessage(m, receiverID); }
int trackW = trackRect.width - 1;
int trackW = trackRect.width;
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
int trackH = trackRect.height - 1;
int trackH = trackRect.height;
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler,
ServerConsumerEndpoint(int id, Channel channel,
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]");
log.debug("creating ConsumerEndpoint[" + id + "]");
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
this.callbackHandler = callbackHandler;
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
if (log.isTraceEnabled()) log.trace("creating selector:" + selector);
if (trace) log.trace("creating selector:" + selector);
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
if (log.isTraceEnabled()) log.trace("created selector");
if (trace) log.trace("created selector");
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); }
if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); }
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (acc...
String conId = ((JBossMessage)r).getConnectionID(); if (log.isTraceEnabled()) { log.trace("message connection id: " + conId); } if (conId != null) { if (log.isTraceEnabled()) { log.trace("current connection connection id: " + sessionEndpoint.connectionEndpoint.connectionID); } accept = !conId.equals(sessionEndpoint.con...
int conId = ((JBossMessage)r).getConnectionID(); if (trace) { log.trace("message connection id: " + conId); } if (trace) { log.trace("current connection connection id: " + sessionEndpoint.connectionEndpoint.connectionID); } accept = conId != sessionEndpoint.connectionEndpoint.connectionID; if (trace) { log.trace("acce...
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (acc...
if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); }
if (trace) { log.trace("acknowledging " + messageID); }
void acknowledge(String messageID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } SingleReceiverDelivery d = null; if (tx == null) { //No transaction so we remove the delivery now d = (SingleReceiverDelive...
if (log.isTraceEnabled()) { log.trace(this + " just activated"); }
if (trace) { log.trace(this + " just activated"); }
public void activate() throws JMSException { synchronized (channel) { if (closed) { //Do nothing return; } active = true; if (log.isTraceEnabled()) { log.trace(this + " just activated"); } promptDelivery(); } }
if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); }
if (trace) { log.trace(this + " cancels deliveries"); }
void cancelAllDeliveries() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List t...
if (log.isTraceEnabled()) { log.trace(d + " canceled"); }
if (trace) { log.trace(d + " canceled"); }
void cancelAllDeliveries() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List t...
if (log.isTraceEnabled()) { log.trace(this + " close"); }
if (trace) { log.trace(this + " close"); }
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we d...
Dispatcher.singleton.unregisterTarget(this.id);
JMSDispatcher.instance.unregisterTarget(Integer.valueOf(id));
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we d...
if (log.isTraceEnabled()) { log.trace(this + " closing"); }
if (trace) { log.trace(this + " closing"); }
public void closing() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " closing"); } }
if (log.isTraceEnabled()) { log.trace(this + " deactivated"); }
if (trace) { log.trace(this + " deactivated"); }
public void deactivate() throws JMSException { synchronized (channel) { active = false; if (log.isTraceEnabled()) { log.trace(this + " deactivated"); } } }
if (log.isTraceEnabled()) { log.trace(this + " disconnected from the channel"); }
if (trace) { log.trace(this + " disconnected from the channel"); }
protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (log.isTraceEnabled()) { log.trace(this + " disconnected from the channel"); } } }
public javax.jms.Message getMessageNow() throws JMSException
public javax.jms.Message getMessageNow(boolean wait) throws JMSException
public javax.jms.Message getMessageNow() throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ...
if (wait && ret == null) { active = true; }
public javax.jms.Message getMessageNow() throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ...
if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); }
if (trace) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); }
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
if (log.isTraceEnabled()) { log.trace(this + " rejects " + Util.guidToString(reference.getMessageID())); }
if (trace) { log.trace(this + " rejects " + Util.guidToString(reference.getMessageID())); }
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
if (log.isTraceEnabled()) { log.trace(this + " DOES NOT accept the message"); }
if (trace) { log.trace(this + " DOES NOT accept the message"); }
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
if (log.isTraceEnabled()) { log.trace("queueing message " + message + " for delivery to client"); } threadPoolDelegate.execute(new DeliveryRunnable(callbackHandler, md));
if (trace) { log.trace("queueing message " + message + " for delivery to client"); } threadPoolDelegate.execute(new DeliveryRunnable(md, sessionEndpoint.connectionEndpoint.getCallbackClient(), id, trace));
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
if (log.isTraceEnabled()) { log.trace(this + " not ready"); }
if (trace) { log.trace(this + " not ready"); }
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (log.isTraceEnabled()) { log.trace(this + " not r...
if (log.isTraceEnabled()) { log.trace(this + " closed"); }
if (trace) { log.trace(this + " closed"); }
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (log.isTraceEnabled()) { log.trace(this + " not r...
if (log.isTraceEnabled()) { log.trace(this + " prompts delivery"); }
if (trace) { log.trace(this + " prompts delivery"); }
protected void promptDelivery() { if (active || grabbing) { if (log.isTraceEnabled()) { log.trace(this + " prompts delivery"); } channel.deliver(this); } }
if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel);
if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel);
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
this.sessionEndpoint.connectionEndpoint.consumers.remove(id);
this.sessionEndpoint.connectionEndpoint.consumers.remove(Integer.valueOf(id));
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
this.sessionEndpoint.consumers.remove(this.id);
this.sessionEndpoint.consumers.remove(Integer.valueOf(id));
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
if (log.isTraceEnabled()) { log.trace(this + (started ? " started" : " stopped")); }
if (trace) { log.trace(this + (started ? " started" : " stopped")); }
void setStarted(boolean started) { if (log.isTraceEnabled()) { log.trace(this + (started ? " started" : " stopped")); } this.started = started; if (started) { //need to prompt delivery promptDelivery(); } }
return "ConsumerEndpoint[" + Util.guidToString(id) + "]" + (active ? "(active)" : "");
return "ConsumerEndpoint[" + id + "]" + (active ? "(active)" : "");
public String toString() { return "ConsumerEndpoint[" + Util.guidToString(id) + "]" + (active ? "(active)" : ""); }
fireTreeCollapsed(path);
public void collapsePath(TreePath path) { setExpandedState(path, false); }
if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; }
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
if (parent != null)
if (!isExpanded(parent) && parent != null)
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
fireTreeExpanded(path);
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; setExpandedState(path, true); }
if (child_box.clear_left || child_box.clear_right) {
if (child_box.getStyle().isCleared()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (child_box.clear_left) {
if (child_box.getStyle().isClearLeft()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (child_box.clear_right) {
if (child_box.getStyle().isClearRight()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (child_box.fixed) {
if (child_box.getStyle().isFixed()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (child_box.absolute) {
if (child_box.getStyle().isAbsolute()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
if (LayoutUtil.isOutsideNormalFlow(child_box)) {
if (child_box.getStyle().isOutsideNormalFlow()) {
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
return tab.containsKey(name) && tab.get(name).equals(value);
return (tab.containsKey(name) && tab.get(name).equals(value)) || (getResolveParent() != null && getResolveParent(). containsAttribute(name, value));
public boolean containsAttribute(Object name, Object value) { return tab.containsKey(name) && tab.get(name).equals(value); }
removeAttributes(attributes.getAttributeNames());
Enumeration e = attributes.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = attributes.getAttribute(name); if (containsAttributeLocally(name, val)) removeAttribute(name); }
public void removeAttributes(AttributeSet attributes) { removeAttributes(attributes.getAttributeNames()); }
private boolean handleConfiguration(boolean loaded, String conf) {
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) {
private boolean handleConfiguration(boolean loaded, String conf) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFet...
} else if (!isRoot() && c.getVisibility() != Configuration.Visibility.PUBLIC) {
} else if (shouldBePublic && !isRoot() && c.getVisibility() != Configuration.Visibility.PUBLIC) {
private boolean handleConfiguration(boolean loaded, String conf) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFet...
public boolean loadData(String conf) {
public boolean loadData(String conf, boolean shouldBePublic) {
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
resolved.loadData(conf);
resolved.loadData(conf, shouldBePublic);
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
return handleConfiguration(loaded, conf) && loaded;
return handleConfiguration(loaded, conf, shouldBePublic) && loaded;
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
if (!handleConfiguration(loaded, conf)) {
if (!handleConfiguration(loaded, conf, shouldBePublic)) {
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
Message m6 = queueConsumer.receive(); log.trace("Correlation id bytes:" + m6.getJMSCorrelationIDAsBytes());
Message m6 = queueConsumer.receive();
public void testJMSDestination() throws Exception { Message m1 = queueProducerSession.createMessage(); //Test with correlation id containing a message id final String messageID = "ID:812739812378"; m1.setJMSCorrelationID(messageID); queueProducer.send(m1); Message m2 = qu...
return "JSeparator";
String superParamStr = super.paramString(); if (orientation == HORIZONTAL) return superParamStr + ",orientation=HORIZONTAL"; else return superParamStr + ",orientation=VERTICAL";
protected String paramString() { return "JSeparator"; }
firePropertyChange("orientation", old, orientation);
public void setOrientation(int orientation) { if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a valid orientation."); this.orientation = orientation; }
port = getSourcePortAt(e.getPoint());
port = graph.getPortViewAt(e.getX(), e.getY());
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately return true; // Find and Remember Port port = getSourcePortAt(e.getPoint()); // If Port Found and in...
return true;
{ int edgeCount = ((WorkflowPort)port.getCell()).getEdgeCount(); if(edgeCount == 0) return true; }
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately return true; // Find and Remember Port port = getSourcePortAt(e.getPoint()); // If Port Found and in...
PortView newPort = getTargetPortAt(e.getPoint());
PortView newPort = graph.getPortViewAt(e.getX(), e.getY());
public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa...
if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed())
PortView portView = graph.getPortViewAt(e.getX(), e.getY()); if(portView != null && !e.isConsumed())
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superc...
graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); e.consume();
int edgeCount = ((WorkflowPort)portView.getCell()).getEdgeCount(); if(edgeCount == 0) { graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); e.consume(); }
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superc...
WorkflowCell source = (WorkflowCell)((WorkflowPort)firstPort.getCell()).getParent(); WorkflowCell target = (WorkflowCell)((WorkflowPort)port.getCell()).getParent();
WorkflowPort sourcePort = (WorkflowPort)firstPort.getCell(); WorkflowCell source = (WorkflowCell)sourcePort.getParent(); WorkflowPort targetPort = (WorkflowPort)port.getCell(); WorkflowCell target = (WorkflowCell)targetPort.getParent(); source.setSelectedPort(source.getIndex(sourcePort)); target.setSelectedPort(target....
public void mouseReleased(MouseEvent e) { // If Valid Event, Current and First Port // first connect first is OK if(e != null && !e.isConsumed() && port != null && firstPort != null && readyToConnect) { readyToConnect = false; // Then Establish Connection WorkflowCell source = (WorkflowCel...
boolean isFloating = (GraphConstants.getOffset(port.getAttributes()) != null);
protected void paintPort(Graphics g) { // If Current Port is Valid if(port != null) { // If Not Floating Port... boolean isFloating = (GraphConstants.getOffset(port.getAttributes()) != null); // ...Then use Parent's Bounds Rectangle2D r = isFloating ? port.getBounds() : port.getParentVie...
Rectangle2D r = isFloating ? port.getBounds() : port.getParentView().getBounds();
Rectangle2D r = port.getBounds();
protected void paintPort(Graphics g) { // If Current Port is Valid if(port != null) { // If Not Floating Port... boolean isFloating = (GraphConstants.getOffset(port.getAttributes()) != null); // ...Then use Parent's Bounds Rectangle2D r = isFloating ? port.getBounds() : port.getParentVie...
protected Message createMessage(int i) throws Exception
protected Message createMessage(byte i) throws Exception
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossStreamMessage m = new JBossStreamMessage(new GUID().toString(), true, System.currentTim...
new GUID().toString(),
randInt().intValue(),
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossStreamMessage m = new JBossStreamMessage(new GUID().toString(), true, System.currentTim...
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString());
public void goBack() { String uri = manager.getBack(); view.setDocument(uri);
public void goBack() throws Exception { root.history.goPrevious(); view.setDocument(root.history.getCurrentDocument(), url.toString()); updateButtons(); }
root.history.goNext(); view.setDocument(root.history.getCurrentDocument(), url.toString());
String uri = manager.getForward(); view.setDocument(uri);
public void goForward() { root.history.goNext(); view.setDocument(root.history.getCurrentDocument(), url.toString()); updateButtons(); }
public void loadPage(String url_text) throws Exception {
public void loadPage(String url_text) {
public void loadPage(String url_text) throws Exception { try { logger.info("Loading Page: " + url_text); view.setDocument(url_text); view.addDocumentListener(this); //root.history.goNewDocument(doc, ref); updateButtons(); setStatus(...
if (root.history.hasPrevious()) {
if (manager.hasBack()) {
protected void updateButtons() { if (root.history.hasPrevious()) { root.actions.backward.setEnabled(true); } else { root.actions.backward.setEnabled(false); } if (root.history.hasNext()) { root.actions.forward.setEnabled(true); } else { ...
if (root.history.hasNext()) {
if (manager.hasForward()) {
protected void updateButtons() { if (root.history.hasPrevious()) { root.actions.backward.setEnabled(true); } else { root.actions.backward.setEnabled(false); } if (root.history.hasNext()) { root.actions.forward.setEnabled(true); } else { ...
url.setText(manager.getBaseURL());
protected void updateButtons() { if (root.history.hasPrevious()) { root.actions.backward.setEnabled(true); } else { root.actions.backward.setEnabled(false); } if (root.history.hasNext()) { root.actions.forward.setEnabled(true); } else { ...
public void paintBorder(RenderingContext c, int additionalClearance) {
public void paintBorder(RenderingContext c, int additionalClearance, short mode) { int top = 0; if (mode == Layer.PAGED_MODE_SCREEN) { top = getPaintingTop(); }
public void paintBorder(RenderingContext c, int additionalClearance) { c.getOutputDevice().paintBorder(c, getStyle().getCalculatedStyle(), getBorderEdge(additionalClearance, getPaintingTop(), c), BorderPainter.ALL); }
getBorderEdge(additionalClearance, getPaintingTop(), c),
getBorderEdge(additionalClearance, top, c),
public void paintBorder(RenderingContext c, int additionalClearance) { c.getOutputDevice().paintBorder(c, getStyle().getCalculatedStyle(), getBorderEdge(additionalClearance, getPaintingTop(), c), BorderPainter.ALL); }
log.info("************** messags: " + NUM_PERSISTENT_MESSAGES);
public void test_Simple_TP_LT() throws Exception { Connection conn1 = cf.createConnection(); Connection conn2 = cf.createConnection(); conn2.start(); Session sessSend = conn1.createSession(true, Session.SESSION_TRANSACTED); Session sessReceive = conn2.createSession(true, Session.SESS...
prev_align_inline = prev_inline;
public Box layoutChildren( Context c, Box box ) { //u.p("starting to lay out the children"); if ( LayoutUtil.isHiddenNode( box.getElement(), c ) ) { return box; } if ( !box.isAnonymous() ) { if ( LayoutUtil.isBlockLayout( box.getElement(), c ) ) { // ...
public java.util.Map getDerivedPropertiesMap(Element e);
public java.util.Map getDerivedPropertiesMap(Element e) { org.xhtmlrenderer.css.style.CalculatedStyle cs = _styler.getCalculatedStyle(e); java.util.LinkedHashMap props = new java.util.LinkedHashMap(); for (java.util.Iterator i = cs.getAvailablePropertyNames().iterator(); i.hasNext();) { String propName = (String) i.nex...
public java.util.Map getDerivedPropertiesMap(Element e);
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched);
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched) { return _styler.getDerivedStyle(parent, matched); }
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched);
public CascadedStyle getPseudoElementStyle(Node node, String pseudoElement);
public CascadedStyle getPseudoElementStyle(Node node, String pseudoElement) { Element e = null; if (node.getNodeType() == Node.ELEMENT_NODE) { e = (Element) node; } else { e = (Element) node.getParentNode(); } return _matcher.getPECascadedStyle(e, pseudoElement); }
public CascadedStyle getPseudoElementStyle(Node node, String pseudoElement);
public void setDocumentContext(Context context, NamespaceHandler nsh, AttributeResolver ar, Document doc);
public void setDocumentContext(Context context, NamespaceHandler nsh, AttributeResolver ar, Document doc) { _context = context; _nsh = nsh; _doc = doc; _attRes = ar; List infos = getStylesheets(); matchStyles(infos); }
public void setDocumentContext(Context context, NamespaceHandler nsh, AttributeResolver ar, Document doc);
public boolean wasHoverRestyled(Element e);
public boolean wasHoverRestyled(Element e) { boolean isHoverStyled = _matcher.isHoverStyled(e); if (_matcher.isHoverStyled(e)) { _styler.restyleTree(e); return true; } return false; }
public boolean wasHoverRestyled(Element e);
u.p( "" ); u.p( "XRStyleReference" );
public static void main( String[] args ) throws Exception { // load doc String fileURL = Configuration.valueFor("xr.test.files.hamlet"); InputStream is = GeneralUtil.openStreamFromClasspath(fileURL); if ( is == null ) { System.err.println("Can't find test file on CLASSP...
c.css = new CSSBank();
c.css = new XRStyleReference( c );
public static void main( String[] args ) throws Exception { // load doc String fileURL = Configuration.valueFor("xr.test.files.hamlet"); InputStream is = GeneralUtil.openStreamFromClasspath(fileURL); if ( is == null ) { System.err.println("Can't find test file on CLASSP...
InputStream stream = GeneralUtil.openStreamFromClasspath(defaultStyleSheetLocation); /*
public static void runLoopTest( Context c, Graphics g, Element html ) throws Exception { Element body = x.child( html, "body" ); Point origin = new Point( 0, 0 ); Point last = new Point( 0, 0 ); Object marker = new DefaultCSSMarker(); //InputStream stream = marker.getClass(...
*/ c.css.parse( new InputStreamReader( stream ), XRStyleSheet.USER_AGENT );
public static void runLoopTest( Context c, Graphics g, Element html ) throws Exception { Element body = x.child( html, "body" ); Point origin = new Point( 0, 0 ); Point last = new Point( 0, 0 ); Object marker = new DefaultCSSMarker(); //InputStream stream = marker.getClass(...
VmClassLoader loader, int typeSize, boolean floatingPoint, ProtectionDomain protectionDomain) {
VmClassLoader loader, int jvmType, int typeSize, boolean floatingPoint, ProtectionDomain protectionDomain) {
public VmPrimitiveClass(String name, VmNormalClass superClass, VmClassLoader loader, int typeSize, boolean floatingPoint, ProtectionDomain protectionDomain) { super(name, superClass, loader, typeSize, protectionDomain); this.floatingPoint = floatingPoint; this.wide = (typeSize == 8);...
this.jvmType = jvmType;
public VmPrimitiveClass(String name, VmNormalClass superClass, VmClassLoader loader, int typeSize, boolean floatingPoint, ProtectionDomain protectionDomain) { super(name, superClass, loader, typeSize, protectionDomain); this.floatingPoint = floatingPoint; this.wide = (typeSize == 8);...
mcf.setUserName("root");
private void startManagedConnectionFactory(ObjectName on) throws Exception { LocalManagedConnectionFactory mcf = new LocalManagedConnectionFactory(); switch (DB) { case (HSQL) : { mcf.setConnectionURL("jdbc:hsqldb:mem:test"); mcf.setDriverClass("org.hsq...
ServerManagement.deInit();
public void tearDown() throws Exception { connection.close(); ServerManagement.deInit(); super.tearDown(); }
childAllocation(i, r);
childAllocation(i, copy);
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); childAllocation(i, r); if (copy.contains(x, y)) { result = getVi...
r.setBounds(copy);
protected View getViewAtPoint(int x, int y, Rectangle r) { View result = null; int count = getViewCount(); Rectangle copy = new Rectangle(r); for (int i = 0; i < count; ++i) { copy.setBounds(r); childAllocation(i, r); if (copy.contains(x, y)) { result = getVi...
if (trace) { log.trace("creating session, transacted=" + transacted + " ackMode=" + ToString.acknowledgmentMode(acknowledgmentMode) + " XA=" + isXA); }
log.debug("creating session " + (transacted ? "transacted" :"non transacted")+ ", " + ToString.acknowledgmentMode(acknowledgmentMode) + ", " + (isXA ? "XA": "non XA"));
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
log.debug("created session delegate (sessionID=" + sessionID + ")");
log.debug("created " + d);
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep...
processRollback(request.getState());
cancelDeliveriesForTransaction(request.getState());
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
if (request.getState() != null) { processRollback(request.getState()); }
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
holder.connectionConsumerDelegate = connectionConsumerDelegate;
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (trace) { log.trace("addAsfMessage()"); } MethodInvocation mi = (MethodInvocation)invocation; // Load the session with a message to be processed during a subsequent call to run() MessageProxy m = (Message...
holder.msg, ackMode, holder.maxDeliveries);
holder.msg, ackMode, holder.maxDeliveries, holder.connectionConsumerDelegate);
public Object handleRun(Invocation invocation) throws Throwable { if (trace) { log.trace("run()"); } MethodInvocation mi = (MethodInvocation)invocation; SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = getSessionState(invocation).getAcknowledgeM...
endpoint.setRemotingClientSessionId(sessionId);
String jmsClientID = (String)mi.getMetaData(MetaDataConstants.JMS, MetaDataConstants.JMS_CLIENT_ID); if (jmsClientID == null) { throw new IllegalStateException("Can't find jms client id"); } endpoint.setRemotingInformation(jmsClientID, sessionId);
public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; //First we inject the callback client for the connection ServerInvokerCallbackHandler handler = (ServerInvokerCallbackHandler)mi.getM...
public ClientConsumerDelegate(String objectID)
public ClientConsumerDelegate(int objectID)
public ClientConsumerDelegate(String objectID) { super(objectID); }
public Message getMessageNow() throws JMSException
public Message getMessageNow(boolean wait) throws JMSException
public Message getMessageNow() throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); }
id, PayloadKey.TRANSIENT);
Integer.valueOf(id), PayloadKey.TRANSIENT);
public void init() { super.init(); getMetaData().addMetaData(MetaDataConstants.JMS, MetaDataConstants.CONSUMER_ID, id, PayloadKey.TRANSIENT); }
return "ConsumerDelegate[" + Util.guidToString(id) + "]";
return "ConsumerDelegate[" + id + "]";
public String toString() { return "ConsumerDelegate[" + Util.guidToString(id) + "]"; }