rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
for (int i = 0; i < args.getLength(); i++) { Element e = (Element) args.item(i); | for (int i = 0; i < args.size(); i++) { Element e = (Element) args.get(i); | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... |
NodeList props = factoryElement.getElementsByTagName("property"); | List props = XMLUtil.getChildElements(factoryElement, "property"); | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... |
for (int i = 0; i < props.getLength(); i++) { Element e = (Element) props.item(i); | for (int i = 0; i < props.size(); i++) { Element e = (Element) props.get(i); | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... |
if (log.isTraceEnabled()) { log.trace("receive with no timeout"); } | if (log.isTraceEnabled()) log.trace("receive with no timeout"); | public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... |
return m.getReceivedObject(); | return m; | public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... |
listener.onMessage(m.getReceivedObject()); | listener.onMessage(m); | public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } JBossMessage m = (JBossMessage)messages.take(); listener.onMes... |
this.context = c; | public void startRender(Context c) { Graphics g = c.getGraphics(); g.setColor(Color.black); if (this.isLayoutDone()) { if (panel.body_box != null) { try { panel.doRender(c); } catch (Throwable thr) { Uu.p("current th... | |
log.error("Receiver failed", e); | log.error("!!!!!!!!!!!!!!!!!!!!!Close failed", e); | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } } |
log.error("Sender failed", e); | log.error("!!!!!!!!!!!!!!!!!!!!!!!!Sender failed", e); | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, Session.AUTO_ACKNOWLEDGE); //Ackmode doesn't matter prod = null; if (anon) { ... |
log.error("Sender failed", e); | log.error("!!!!!!!!!!!!!!!!!!!!!!!!Sender failed", e); | public void run() { try { int count = 0; while (count < numMessages) { Message m = mf.getMessage(sess, msgSize); if (anon) { prod.send(dest, m); ... |
log.info("Use anonymous producer? " + anon); log.info("Message size: " + msgSize); log.info("Message type: " + mf.getClass().getName()); log.info("Delivery Mode:" + (deliveryMode == DeliveryMode.PERSISTENT ? "Persistent" : "Non-persistent")); | log.trace("Use anonymous producer? " + anon); log.trace("Message size: " + msgSize); log.trace("Message type: " + mf.getClass().getName()); log.trace("Delivery Mode:" + (deliveryMode == DeliveryMode.PERSISTENT ? "Persistent" : "Non-persistent")); log.trace("Initial pause:" + initialPause); | protected void logInfo() { super.logInfo(); log.info("Use anonymous producer? " + anon); log.info("Message size: " + msgSize); log.info("Message type: " + mf.getClass().getName()); log.info("Delivery Mode:" + (deliveryMode == DeliveryMode.PERSISTENT ? "Persistent" : "Non-persistent")); } |
server = new TestServer(false); | server = new LocalTestServer(); | public static synchronized void create() throws Exception { if (server != null) { return; } if (isLocal()) { server = new TestServer(false); return; } server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES); if (server != null) { // RMI server ... |
if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.close()"); | if (log.isTraceEnabled()) log.trace("close()"); | public void close() throws JMSException { if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.close()"); synchronized(consumers) { for(Iterator i = consumers.values().iterator(); i.hasNext(); ) { ((ServerConsumerDelegate)i.next()).remove(); } } ... |
if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.closing()"); | if (log.isTraceEnabled()) log.trace("closing (noop)"); | public void closing() throws JMSException { if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.closing()"); //Currently does nothing } |
assertFalse(channel.redeliver(null)); SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING); assertTrue(channel.redeliver(receiver)); assertEquals(1, receiver.getMessages().size()); assertEquals("message0", ((Message)receiver.getMessages().get(0)).getMessageID()); assertFalse(channel.redeliver... | public void testNonRecoverableChannel_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } // the channel has no receivers assertFalse(channel.iterator().hasNext()); Message m = MessageFactory.createMessage("messa... | |
SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING); for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { assertTrue(channel.redeliver(receiver)); assertEquals(1, receiver.getMessages().size()); assertEquals("message" + i, ((Message)receiver.getMessages().get(0)).getMessageID()); receiver.clear(); } ... | public void testNonRecoverableChannel_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } // the channel has no receivers assertFalse(channel.iterator().hasNext()); SimpleDeliveryObserver observer = new SimpleDel... | |
assertFalse(channel.redeliver(null)); assertFalse(channel.redeliver(new SimpleReceiver("ACKING", SimpleReceiver.ACKING))); log.info("ok"); | public void testNonRecoverableChannel_3_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (channel.acceptReliableMessages()) { // we test channels that don't accept reliable messages return; ... | |
assertFalse(channel.redeliver(null)); SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING); assertTrue(channel.redeliver(receiver)); assertEquals(1, receiver.getMessages().size()); assertEquals("message0", ((Message)receiver.getMessages().get(0)).getMessageID()); assertFalse(channel.redeliver... | public void testNonRecoverableChannel_3_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return; } ... | |
log.info("ok"); | public void testNonRecoverableChannel_4_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (channel.acceptReliableMessages()) { // we test channels that don't accept reliable messages return; ... | |
SimpleReceiver receiver = new SimpleReceiver("ACKING", SimpleReceiver.ACKING); for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { assertTrue(channel.redeliver(receiver)); assertEquals(1, receiver.getMessages().size()); assertEquals("message" + i, ((Message)receiver.getMessages().get(0)).getMessageID()); receiver.clear(); } ... | public void testNonRecoverableChannel_4_2() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } if (!channel.acceptReliableMessages()) { // we test channels that accept reliable messages return; } ... | |
return _resolver; | return _mr.getResolver(); | public DependencyResolver getResolver() { return _resolver; } |
this.descriptor = descriptor; | getAttributes().put("descriptor", descriptor); | public ResultEdge(ResultDescriptor descriptor, Point2D labelPos) { super(descriptor); setAttributes(new WorkflowAttributeMap(getAttributes())); this.descriptor = descriptor; int arrow = GraphConstants.ARROW_CLASSIC; //GraphConstants.setLabelAlongEdge(attributes, true); GraphConstants.setLineEnd(att... |
return descriptor; | return (ResultDescriptor)getAttributes().get("descriptor"); | public ResultDescriptor getDescriptor() { return descriptor; } |
GraphConstants.setRouting(attributes, EDGE_ROUTER); | GraphConstants.setRouting(attributes, new DefaultRouting()); | public void setAutoroute() { GraphConstants.setRouting(attributes, EDGE_ROUTER); } |
ResultDescriptor descriptor = getDescriptor(); | public String toString() { if(descriptor == null) return null; if(descriptor.getDisplayName() != null) { if(descriptor.getDisplayName().length() > 0) { return descriptor.getDisplayName(); } } if(descriptor.getParent() instanceof ActionDescriptor) { return ((ActionDescript... | |
public BindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { this.nodeId = nodeId; this.queueName = queueName; this.condition = condition; this.selector = selector; this.channelId = channelId; this.active = false; this.durable = durable; | public BindingImpl() { | public BindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { this.nodeId = nodeId; this.queueName = queueName; this.condition = condition; this.selector = selector; this.channelI... |
selector = (String)StreamUtils.readObject(in, false); | String filterString = (String)StreamUtils.readObject(in, false); filter = new Selector(filterString); | public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); queueName = in.readUTF(); condition = in.readUTF(); active = in.readBoolean(); selector = (String)StreamUtils.readObject(in, false); channelId = in.readLong(); durab... |
StreamUtils.writeObject(out, selector, false, false); | StreamUtils.writeObject(out, filter.getFilterString(), false, false); | public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeUTF(queueName); out.writeUTF(condition); out.writeBoolean(active); StreamUtils.writeObject(out, selector, false, false); out.writeLong(channelId); out.wri... |
logger.info( "added a mouse motion listener: " + ma ); | logger.info( "added mouse selection listener: " + ma ); HoverListener hl = new HoverListener(root.panel.view); root.panel.view.addMouseListener(hl); root.panel.view.addMouseMotionListener(hl); logger.info( "added hover listener:" + hl); | public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added a mouse motion listener: " + ma ); } |
demos.add( new LoadAction( "Rollovers with :hover ", "demo:demos/hover.xhtml")); | public void createLayout() { file.add( root.actions.open_file ); file.add( root.actions.quit ); add( file ); edit.add( root.actions.cut ); edit.add( root.actions.copy ); edit.add( root.actions.paste ); add( edit ); view.add( view_source ); add( view ); ... | |
try { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.lowagie.text.Rectangle( 0, 0, firstPage.getWidth(c) / PIXELS_PER_POINT, firstPage.getHeight(c) / PIXELS_PER_POINT); com.lowagie.text... | List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.lowagie.text.Rectangle( 0, 0, firstPage.getWidth(c) / PIXELS_PER_POINT, firstPage.getHeight(c) / PIXELS_PER_POINT); com.lowagie.text.Docum... | public void createPDF(OutputStream os) throws DocumentException { try { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.l... |
doc.close(); | public void createPDF(OutputStream os) throws DocumentException { try { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.l... | |
throws NotImplementedException | protected void installKeyboardActions() { // TODO: Implement this properly. } | |
if (rmr.getDescriptor().isDefault() && rmr.getResolver() != this) { Message.verbose("\t"+getName()+": found revision in cache: "+mrid+": but it's a default one, maybe we can find a better one"); | if (rmr.getDescriptor().isDefault() && rmr.getResolver() != this && isResolved(data, mrid)) { Message.verbose("\t"+getName()+": found revision in cache: "+mrid+" (resolved by "+rmr.getResolver().getName()+"): but it's a default one, maybe we can find a better one"); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... |
if (rmr.getDescriptor().isDefault() && rmr.getResolver() != this) { Message.verbose("\t"+getName()+": found revision in cache: "+mrid+": but it's a default one, maybe we can find a better one"); | if (rmr.getDescriptor().isDefault() && rmr.getResolver() != this && isResolved(data, resolvedMrid)) { Message.verbose("\t"+getName()+": found revision in cache: "+mrid+" (resolved by "+rmr.getResolver().getName()+"): but it's a default one, maybe we can find a better one"); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... |
void cancelDeliveries(String receiverID) throws JMSException; | void cancelDeliveries() throws JMSException; | void cancelDeliveries(String receiverID) throws JMSException; |
Uu.p("in link listener: box finder returned: " + box); | public void mouseReleased(MouseEvent evt) { //Box box = panel.findBox(evt.getX(), evt.getY()); Box box = BoxFinder.findElementBox2(panel.getRootBox(),evt.getX(),evt.getY(),null); Uu.p("in link listener: box finder returned: " + box); if (box == null) { return; } Element elem... | |
if (child.getSubstring().equals("")) { child.width = 0; child.height = 0; child.baseline = 0; } | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | |
if (consumer != null) | public void setHints(int flags) { consumer.setHints(flags); } | |
if (root.isFixedDescendant()) { | if (root.getLayer().containsFixedContent()) { | 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) ... |
valve.close(); | public void run() { try { log.info("Starting Thread " + threadId); synchronized (startSemaphore) { if (!started) { startSemaphore.wait(); } } //log.info("Thread " + threadId + "Op... | |
lineHeight = FontUtil.lineHeight(c); | lineHeight = FontUtil.lineHeight(c, new_inline); | private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actua... |
CalculatedStyle style = c.getCurrentStyle(); Font font = c.getCurrentFont(); | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | |
text = TextUtil.transformText(text, style); | text = TextUtil.transformText(text, c.getCurrentStyle()); | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... |
Breaker.breakText(c, inline, prev_align, avail, font); | Breaker.breakText(c, inline, prev_align, avail, inline.getStyle().getFont(c.getCtx())); | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... |
int blockLineHeight = FontUtil.lineHeight(c); | int blockLineHeight = FontUtil.lineHeight(c, box); | 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);... |
c.getCurrentFont(), "thequickbrownfoxjumpedoverthelazydogTHEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG"); | box.getStyle().getFont(c.getCtx()), "thequickbrownfoxjumpedoverthelazydogTHEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG"); | 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 (!box.clear_left && !box.clear_right) { | if (!box.getStyle().isCleared()) { | 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);... |
CalculatedStyle currentStyle = parentStyle; | 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);... | |
LinkedList pendingPushStyles = 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);... | |
if (pendingPushStyles == null) { pendingPushStyles = new LinkedList(); } pendingPushStyles.addLast((StylePush) o); Relative.translateRelative(c, false); | Relative.translateRelative(c, c.getCurrentStyle(), false); | 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 (pendingPushStyles != null && pendingPushStyles.size() != 0) { pendingPushStyles.removeLast(); } else { if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.... | if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); } int parent_width = bounds.width; CalculatedStyle style = c.getCurrentStyle(); Bord... | 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);... |
Relative.untranslateRelative(c, false); | Relative.untranslateRelative(c, c.getCurrentStyle(), false); | 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);... |
currentStyle = c.getCurrentStyle(); | 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);... | |
Relative.setupRelative(c, new_inline); | 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);... | |
new_inline.pushstyles = pendingPushStyles; pendingPushStyles = 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);... | |
if (!new_inline.floated && !new_inline.absolute) { | if (!new_inline.getStyle().isFloated() && !new_inline.getStyle().isAbsolute()) { | 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);... |
c.pushStyle(CascadedStyle.emptyCascadedStyle); curr_line.setStyle(new Style(c.getCurrentStyle(), 0, c.getCtx())); c.popStyle(); | private static LineBox newLine(Box box, Rectangle bounds, LineBox prev_line, LineMetrics blockLineMetrics, Context c) { LineBox curr_line = new LineBox(); if (Configuration.isTrue("xr.stackingcontext.enabled", false)) { curr_line.renderIndex = c.getNewRenderIndex(); } if (prev... | |
if (!block.clear_left) { | if (!block.getStyle().isClearLeft()) { | private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, Context c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0; i < ... |
if (ServerManagement.isRemote()) return; | public void cancelTest() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue)... | |
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... | |
if (ServerManagement.isRemote()) return; | public void testAutoAck1() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue)... | |
if (ServerManagement.isRemote()) return; | public void testAutoAck2() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue)... | |
if (ServerManagement.isRemote()) return; | public void testClientAck1() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(qu... | |
if (ServerManagement.isRemote()) return; | public void testClientAck2() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(qu... | |
if (ServerManagement.isRemote()) return; | public void testRedelivery() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(qu... | |
if (ServerManagement.isRemote()) return; | public void testTransactionCommit() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProdu... | |
if (ServerManagement.isRemote()) return; | public void testTransactionRollback() throws Exception { MessageStore store = ServerManagement.getServerPeer().getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createPro... | |
this.cColor = color; | this.color = color; | ResultEdgeColorHandler(WorkflowGraph graph, Point location, Color color) { this.graph = graph; this.location = location; this.cColor = color; } |
if(view instanceof CustomEdgeView) | if(graph.getModel().isEdge(cell)) | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {... |
GraphConstants.setForeground(((ResultEdge)cell).getAttributes(), cColor); | GraphConstants.setForeground(((ResultEdge)cell).getAttributes(), color); | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(view instanceof CustomEdgeView) {... |
Enumeration e; | Enumeration enum; | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ... |
e = bundle.getKeys(); while (e.hasMoreElements()) | enum = bundle.getKeys(); while (enum.hasMoreElements()) | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ... |
key = (String) e.nextElement(); | key = (String) enum.nextElement(); | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ... |
} | private void loadResourceBundle(UIDefaults defaults) { ResourceBundle bundle; Enumeration e; String key; String value; bundle = ResourceBundle.getBundle("resources/basic"); // Process Resources e = bundle.getKeys(); while (e.hasMoreElements()) { key = (String) e.nextElement(); ... | |
throw new JBossJMSException(msg, e); | throw new MessagingJMSException(msg, e); | public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); serverLocator = new InvokerLocator(serverLocatorURI); isMultiplex = serverLocator.getProt... |
box.setChildrenExceedBounds(true); | public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setFixedDescendant(true); box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); Calculat... | |
public void cancelDeliveries(String receiverID) throws JMSException | public void cancelDeliveries() throws JMSException | public void cancelDeliveries(String receiverID) throws JMSException { } |
return new TabbedPaneLayout(); | return super.createLayoutManager(); | protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); } |
g.setColor(MetalLookAndFeel.getControl()); | g.setColor(UIManager.getColor("TabbedPane.selected")); | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(MetalLookAndFeel.getControl()); else g.setColor(MetalLookAndFeel.getControlShadow()); int[] px, py; if (tabPlacement == TOP) { ... |
g.setColor(MetalLookAndFeel.getControlShadow()); | { Color background = UIManager.getColor("TabbedPane.unselectedBackground"); if (background == null) background = UIManager.getColor("TabbedPane.background"); g.setColor(background); } | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(MetalLookAndFeel.getControl()); else g.setColor(MetalLookAndFeel.getControlShadow()); int[] px, py; if (tabPlacement == TOP) { ... |
String nodeId = serverPeer.getServerPeerID(); | int nodeId = serverPeer.getServerPeerID(); | protected synchronized void startService() throws Exception { if (started) { throw new IllegalStateException("Service is already started"); } super.startService(); try { TransactionManager tm = getTransactionManagerReference(); ... |
public ClientSessionDelegate(String objectID) | public ClientSessionDelegate(int objectID) | public ClientSessionDelegate(String objectID) { super(objectID); } |
public void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons) | public void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons) | public void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons) { throw new IllegalStateException("This invocation should not be handled here!"); } |
public void postDeliver(String messageID, String receiverID) throws JMSException | public void postDeliver(String messageID, int receiverID) throws JMSException | public void postDeliver(String messageID, String receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } |
public void preDeliver(String messageID, String receiverID) throws JMSException | public void preDeliver(String messageID, int receiverID) throws JMSException | public void preDeliver(String messageID, String receiverID) throws JMSException { throw new IllegalStateException("This invocation should not be handled here!"); } |
return "SessionDelegate[" + Util.guidToString(id) + "]"; | return "SessionDelegate[" + id + "]"; | public String toString() { return "SessionDelegate[" + Util.guidToString(id) + "]"; } |
getDiff(sb, renderer.getRenderingContext().getRootBox(), ""); | getDiff(sb, renderer.getPanel().getRootBox(), ""); | public static String xhtmlToDiff(String xhtml, int width, int height) throws Exception { Document doc = Xx.loadDocument(xhtml); Graphics2DRenderer renderer = new Graphics2DRenderer(); renderer.setDocument(doc, new File(xhtml).toURL().toString()); BufferedImage buff = new Buffe... |
ms = new PagingMessageStore("store0"); | ms = new SimpleMessageStore("store0"); | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("store0"); } |
MessageCallbackHandler msgHandler = new MessageCallbackHandler(); | SimpleMetaData metaData = invocation.getMetaData(); MessageCallbackHandler msgHandler = new MessageCallbackHandler((Destination)mi.getArguments()[0]); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister... |
SimpleMetaData metaData = invocation.getMetaData(); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister... | |
msgHandler.setAcknowledgmentHandler((AcknowledgmentHandler)consumerDelegate); | msgHandler.setSessionDelegate(getDelegate(invocation)); msgHandler.setReceiverID((String)ih.getMetaData().getMetaData(JMSAdvisor.JMS, JMSAdvisor.CONSUMER_ID)); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); if (m.getName().equals("createConsumerDelegate")) { // register/unregister... |
if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y && y + h >= bounds.y + bounds.height) || contains(x, y)) return true; int curx = 0; int cury = 0; for (int i = 0; i < npoints; i++) { curx = xpoints[i]; cu... | if (evaluateCrossings(x, y, false, w) != 0 || evaluateCrossings(x, y + h, false, w) != 0 || evaluateCrossings(x + w, y, true, h) != 0 || evaluateCrossings(x, y, true, h) != 0) | public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y... |
} for (int i = 0; i < npoints; i++) { int priorx = curx; int priory = cury; curx = xpoints[i]; cury = ypoints[i]; if (priorx == curx) { if (curx < x || curx >= x + w) continue; if ((cury >= y + h && priory <= y) || (cury <= y && priory >= y + h)) return true; continue; } if (priory == cury) { if (cury < y || cury >=... | if ((evaluateCrossings(x, y, false, BIG_VALUE) & 1) != 0) | public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y... |
intersect = slope * (x + w - curx) + cury; if (intersect > y && intersect < y + h) return true; intersect = (y - cury) / slope + curx; if (intersect > x && intersect < x + w) return true; intersect = (y + h - cury) / slope + cury; if (intersect > x && intersect < x + w) return true; } | public boolean intersects(double x, double y, double w, double h) { // First, the obvious bounds checks. if (w <= 0 || h <= 0 || npoints == 0 || ! getBounds().intersects(x, y, w, h)) return false; // Disjoint bounds. if ((x <= bounds.x && x + w >= bounds.x + bounds.width && y <= bounds.y... | |
condensed = null; | public void invalidate() { bounds = null; condensed = null; } | |
condensed = null; | public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; ypoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } condensed = null; } | |
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 Transaction tx = tr.createTran... |
inline_block.floated = true; | public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, LineBox curr_line) { //Uu.p("generate floated block inline box: avail = " + avail); //Uu.p("generate floated block inline box"); Rectangle oe = c.getExtents();// copy the extents for safety c.set... | |
this(DEFAULT_DOTS_PER_POINT, DEFAULT_PIXELS_PER_DOT); | this(DEFAULT_DOTS_PER_POINT, DEFAULT_DOTS_PER_PIXEL); | public ITextRenderer() { this(DEFAULT_DOTS_PER_POINT, DEFAULT_PIXELS_PER_DOT); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.