rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } | if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp... |
if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed " : " did NOT remove ") + receiver); } | if (trace) { log.trace(this + (removed ? " removed " : " did NOT remove ") + receiver); } | public boolean remove(Receiver receiver) { boolean removed = router.remove(receiver); if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed " : " did NOT remove ") + receiver); } return removed; } |
int original_height = block.height; | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... | |
if (child.getNodeType() == child.COMMENT_NODE) { | if (child.getNodeType() == Node.COMMENT_NODE) { | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... |
if (child.getNodeType() == child.ELEMENT_NODE) { | if (child.getNodeType() == Node.ELEMENT_NODE) { | public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th... |
public ReceiverJob(Element e) throws ConfigurationException | public ReceiverJob() | public ReceiverJob(Element e) throws ConfigurationException { super(e); } |
super(e); | public ReceiverJob(Element e) throws ConfigurationException { super(e); } | |
r.acknowledge(ackm, null); | try { r.acknowledge(ackm, null); } catch(IllegalStateException e) { log.info(e); } | public void testRecoverableChannel_27_race() throws Throwable { if (!queue.isRecoverable()) { // we test only recoverable channels now return; } // add an NACKING receiver to the channel SimpleReceiver r = new SimpleReceiver("NackingReceiver", SimpleReceiver.ACCEPTING); ... |
public void deliver() | public void deliver(Receiver receiver) | public void deliver() { log.trace(""); deliveryNotification = true; } |
fetchDependencies(node, extendedConfs[i]); | fetchDependencies(node, extendedConfs[i], false); | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... |
fetchDependencies(dep, confs[i]); | fetchDependencies(dep, confs[i], true); | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... |
private void fetchDependencies(IvyNode node, String conf) { | private void fetchDependencies(IvyNode node, String conf, boolean shouldBePublic) { | private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... |
if (node.loadData(conf)) { | if (node.loadData(conf, shouldBePublic)) { | private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... |
fetchDependencies(selected, conf); | fetchDependencies(selected, conf, true); | private void fetchDependencies(IvyNode node, String conf) { long start = System.currentTimeMillis(); Message.debug(node.getId()+" => resolving dependencies in "+conf); resolveConflict(node, node.getParent()); if (node.loadData(conf)) { node = node.getRealNode(); // if ... |
if (immediateAsynchronousAcknowledgment) { log.info("simulating an asynchronous ACK that arrives before we return the delivery to channel"); try { delivery.acknowledge(null); } catch(Throwable t) { log.error("Cannot acknowledge", t); } } | public Delivery handle(DeliveryObserver observer, Routable r, Transaction tx) { try { if (r == null) { log.info("Receiver [" + name + "] is rejecting a null message"); return null; } if (BROKEN.equals(state)) { throw new RuntimeExce... | |
return null; | public Object[] allKeys() { Set set = new HashSet(); if (parent != null) set.addAll(Arrays.asList(parent.allKeys())); set.addAll(actionMap.keySet()); return set.toArray(); } | |
return null; | public Object[] keys() { return actionMap.keySet().toArray(); } | |
" whereby messages can be acknowledged before the call to handle() has returned):" + d.getReference().getMessageID()); | " whereby messages can be cancelled before the call to handle() has returned):" + d.getReference().getMessageID()); | void cancelAllDeliveries() throws JMSException { synchronized (deliveryLock) { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); try ... |
" whereby messages can be acknowledged before the call to handle() has returned):" + messageID); | " whereby messages can be cancelled before the call to handle() has returned):" + messageID); | public void cancelMessage(Serializable messageID) throws JMSException { boolean cancelled = false; Iterator iter = deliveries.iterator(); try { while (iter.hasNext()) { Delivery del = (Delivery)iter.next(); if (del.getReference().getMessageID().equ... |
if (clipboard == null) { Toolkit.getDefaultToolkit().beep(); return; } | public void actionPerformed(ActionEvent event) { JComponent component = (JComponent) event.getSource(); TransferHandler transferHandler = component.getTransferHandler(); Clipboard clipboard = getClipboard(component); if (command.equals(COMMAND_COPY)) transferHandler.exportToClipboard(componen... | |
SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... | |
catch (Exception e) | catch (SecurityException se) | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... |
if (clipboard == null) clipboard = new Clipboard("Clipboard"); return clipboard; | return null; | private static Clipboard getClipboard(JComponent component) { try { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSystemClipboardAccess(); // We may access the system clipboard. return component.getToolkit().getSystemClipboard(); ... |
layoutInfo = info; | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | |
int cellx = sumIntArray(layoutInfo.colWidths, constraints.gridx); int celly = sumIntArray(layoutInfo.rowHeights, constraints.gridy); int cellw = sumIntArray(layoutInfo.colWidths, | int cellx = sumIntArray(info.colWidths, constraints.gridx); int celly = sumIntArray(info.rowHeights, constraints.gridy); int cellw = sumIntArray(info.colWidths, | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... |
int cellh = sumIntArray(layoutInfo.rowHeights, | int cellh = sumIntArray(info.rowHeights, | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... |
component.setBounds(layoutInfo.pos_x + x, layoutInfo.pos_y + y, dim.width, dim.height); | component.setBounds(info.pos_x + x, info.pos_y + y, dim.width, dim.height); | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... |
layoutInfo = getLayoutInfo (parent, PREFERREDSIZE); | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; layoutInfo = info; // DEBU... | |
if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) { ModuleRevisionId mrid = ModuleRevisionId.newInstance(_organisation, _module, _revision); _properties.put("pom.version", _revision); _md.setModuleRevisionId(mrid); _md.addArtifact("master", new DefaultArtifact(mri... | if (_md.getModuleRevisionId() == null && ("project".equals(getContext()))) { fillMrid(); | public void endElement(String uri, String localName, String qName) throws SAXException { if ((_organisation != null && _module != null && _revision != null) && _md.getModuleRevisionId() == null) { ModuleRevisionId mrid = ModuleRevisionId.newInstance(_organisation, _module, _revision); ... |
} else if (_md.getModuleRevisionId() == null && ("project/dependencies/dependency".equals(getContext()))) { fillMrid(); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { _contextStack.push(qName); if ("optional".equals(qName)) { _optional = true; } else if ("exclusions".equals(qName)) { if (_dd == null) ... | |
setEnabled(table.isEnabled()); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | |
viewRect = new Rectangle(); textRect = new Rectangle(); iconRect = new Rectangle(); arrowIconRect = new Rectangle(); checkIconRect = new Rectangle(); accelRect = new Rectangle(); cachedRect = new Rectangle(); | public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); itemListener = new ItemHandler(); propertyChangeListener = new PropertyChangeHandler(); } | |
Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, defaultTextIconGap); | String accelText = getAcceleratorString(m); | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
KeyStroke accelerator = m.getAccelerator(); Rectangle rect; | layoutMenuItem(m, accelText); | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
if (accelerator != null) | cachedRect.setBounds(textRect); Rectangle pref = SwingUtilities.computeUnion(iconRect.x, iconRect.y, iconRect.width, iconRect.height, cachedRect); Container parent = m.getParent(); if (parent != null && parent instanceof JComponent && !(m instanceof JMenu && ((JMenu) m).isTopLevelMenu())) | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
rect = getAcceleratorRect( accelerator, m.getToolkit().getFontMetrics(acceleratorFont)); | JComponent p = (JComponent) parent; | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
d.width += rect.width + defaultAcceleratorLabelGap; | Integer maxTextWidth = (Integer) p.getClientProperty("maxTextWidth"); int maxTextValue = maxTextWidth == null ? 0 : maxTextWidth.intValue(); if (pref.width < maxTextValue) pref.width = maxTextValue; else p.putClientProperty("maxTextWidth", new Integer(pref.width)); | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
if (d.height < rect.height) d.height = rect.height; | Integer maxAccelWidth = (Integer) p.getClientProperty("maxAccelWidth"); int maxAccelValue = maxAccelWidth == null ? 0 : maxAccelWidth.intValue(); if (accelRect.width > maxAccelValue) { maxAccelValue = accelRect.width; p.putClientProperty("maxAccelWidth", new Integer(accelRect.width)); } pref.width += maxAccelValue; pre... | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
if (checkIcon != null) | if (! (m instanceof JMenu && ((JMenu) m).isTopLevelMenu())) | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
d.width += checkIcon.getIconWidth() + defaultTextIconGap; if (checkIcon.getIconHeight() > d.height) d.height = checkIcon.getIconHeight(); | pref.width += checkIconRect.width; pref.width += defaultTextIconGap; pref.width += arrowIconRect.width; pref.width += defaultTextIconGap; | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
if (arrowIcon != null && (c instanceof JMenu)) { int pWidth = m.getParent().getWidth(); if (!((JMenu)c).isTopLevelMenu() && d.width < pWidth) d.width = pWidth - m.getInsets().left - m.getInsets().right; else d.width += arrowIcon.getIconWidth() + MenuGap; | pref.width += 2 * defaultTextIconGap; | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
if (arrowIcon.getIconHeight() > d.height) d.height = arrowIcon.getIconHeight(); } | Insets i = m.getInsets(); pref.width += i.left + i.right; pref.height += i.top + i.bottom; | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
return d; | return pref.getSize(); | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
paintMenuItem(g, c, checkIcon, arrowIcon, c.getBackground(), | paintMenuItem(g, c, checkIcon, arrowIcon, selectionBackground, | public void paint(Graphics g, JComponent c) { paintMenuItem(g, c, checkIcon, arrowIcon, c.getBackground(), c.getForeground(), defaultTextIconGap); } |
if (menuItem.isContentAreaFilled()) | Color saved = g.getColor(); if (mod.isArmed() || ((menuItem instanceof JMenu) && mod.isSelected())) | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if (menuItem.isContentAreaFilled()) { if ((me... |
if ((menuItem.isSelected() && checkIcon == null) || (mod != null && mod.isArmed()) && (menuItem.getParent() instanceof MenuElement)) g.setColor(selectionBackground); else | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if (menuItem.isContentAreaFilled()) { if ((me... | |
g.setColor(saved); } | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if (menuItem.isContentAreaFilled()) { if ((me... | |
Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle(); Rectangle ar = new Rectangle(); Rectangle cr = new Rectangle(); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | |
int vertAlign = m.getVerticalAlignment(); int horAlign = m.getHorizontalAlignment(); int vertTextPos = m.getVerticalTextPosition(); int horTextPos = m.getHorizontalTextPosition(); | Font oldFont = g.getFont(); Font font = c.getFont(); g.setFont(font); FontMetrics accelFm = m.getFontMetrics(acceleratorFont); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
Font f = m.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); SwingUtilities.calculateInnerArea(m, vr); | String accelText = getAcceleratorString(m); layoutMenuItem(m, accelText); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
Insets insets = m.getInsets(); br.x -= insets.left; br.y -= insets.top; br.width += insets.right + insets.left; br.height += insets.top + insets.bottom; | Color oldColor = g.getColor(); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
SwingUtilities.layoutCompoundLabel(m, fm, null, checkIcon, vertAlign, horAlign, vertTextPos, horTextPos, vr, cr, tr, defaultTextIconGap); checkIcon.paintIcon(m, g, cr.x, cr.y); vr.x = cr.x + cr.width + defaultTextIconGap; | checkIcon.paintIcon(m, g, checkIconRect.x, checkIconRect.y); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
if (arrowIcon != null && (c instanceof JMenu)) | ButtonModel model = m.getModel(); if (m.getIcon() != null) | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
if (!((JMenu) c).isTopLevelMenu()) | Icon icon; if (! m.isEnabled()) | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
int width = arrowIcon.getIconWidth(); int height = arrowIcon.getIconHeight(); int offset = (vr.height - height) / 2; arrowIcon.paintIcon(m, g, vr.width - width, vr.y + offset); | icon = m.getDisabledIcon(); } else if (model.isPressed() && model.isArmed()) { icon = m.getPressedIcon(); if (icon == null) { icon = m.getIcon(); } } else { icon = m.getIcon(); } if (icon != null) { icon.paintIcon(m, g, iconRect.x, iconRect.y); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
Icon i = m.getIcon(); SwingUtilities.layoutCompoundLabel(c, fm, m.getText(), i, vertAlign, horAlign, vertTextPos, horTextPos, vr, ir, tr, defaultTextIconGap); if (i != null) i.paintIcon(c, g, ir.x, ir.y); paintText(g, m, tr, m.getText()); | String text = m.getText(); if (text != null) { View html = (View) m.getClientProperty(BasicHTML.propertyKey); if (html != null) { html.paint(g, textRect); } else { paintText(g, m, textRect, text); } } | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
String acceleratorText = ""; | if (! accelText.equals("")) { int accelOffset = 0; Container parent = m.getParent(); if (parent != null && parent instanceof JComponent) { JComponent p = (JComponent) parent; Integer maxAccelWidth = (Integer) p.getClientProperty("maxAccelWidth"); int maxAccelValue = maxAccelWidth == null ? 0 : maxAccelWidth.intValu... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
if (m.getAccelerator() != null) | g.setFont(acceleratorFont); if (! m.isEnabled()) { g.setColor(disabledForeground); } else { if (m.isArmed() || (m instanceof JMenu && m.isSelected())) g.setColor(acceleratorSelectionForeground); else g.setColor(acceleratorForeground); } g.drawString(accelText, accelRect.x - accelOffset, accelRect.y + accelFm.getAscent... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
acceleratorText = getAcceleratorText(m.getAccelerator()); fm = g.getFontMetrics(acceleratorFont); ar.width = fm.stringWidth(acceleratorText); ar.x = br.width - ar.width; vr.x = br.width - ar.width - defaultTextIconGap; | arrowIcon.paintIcon(m, g, arrowIconRect.x, arrowIconRect.y); } | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
SwingUtilities.layoutCompoundLabel(m, fm, acceleratorText, null, vertAlign, horAlign, vertTextPos, horTextPos, vr, ir, ar, defaultTextIconGap); | g.setFont(oldFont); g.setColor(oldColor); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... |
paintAccelerator(g, m, ar, acceleratorText); } | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | |
delegate.setState(new ConnectionState(delegate, | delegate.setState(new ConnectionState(cf.getServerID(), delegate, | public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { ClientConnectionFactoryDelegate cf = (ClientConnectionFactoryDelegate)invocation.getTargetObject(); ClientConnectionDelegate delegate = (ClientConnectionDelegate)invocation.invokeNext(); del... |
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); JBossBytesMessage m = new JBossBytesMessage(new GUID().toString(), true, System.currentTimeM... |
new GUID().toString(), | randInt().intValue(), | protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossBytesMessage m = new JBossBytesMessage(new GUID().toString(), true, System.currentTimeM... |
inlineList.add(new FirstLineStyle(firstLine)); | firstLineStyle = new FirstLineStyle(firstLine); | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
inlineList.add(new FirstLetterStyle(firstLetter)); | firstLetterStyle = new FirstLetterStyle(firstLetter); | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
blockList.add(new AnonymousBlockContent(elem, c.css.getStyle(elem), inlineList)); inlineList = new LinkedList(); | if (inlineList.size() != 0) { blockList.add(new AnonymousBlockContent(elem, c.css.getStyle(elem), inlineList)); inlineList = new LinkedList(); } | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
if (curr.getNodeType() == Node.ELEMENT_NODE) { | if (curr.getNodeType() == Node.ELEMENT_NODE && descend) { | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
if (curr.hasChildNodes()) { if (!LayoutUtil.isFloatedBlock(curr, c) && !LayoutUtil.isReplaced(c, curr)) { if (textContent != null) { inlineList.add(textContent); textContent = null; } style = null; curr = curr.getFirstChild(); continue; } if (LayoutUtil.isFloatedBlock(curr, c)) { if (curr == elem) { curr = c... | if (curr.hasChildNodes() && descend) { if (textContent != null) { inlineList.add(textContent); textContent = null; } style = null; curr = curr.getFirstChild(); continue; | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
if (textContent != null) { inlineList.add(textContent); textContent = null; } | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... | |
if (blockList != null) { | if (blockList == null) { if (firstLetterStyle != null) { inlineList.add(0, firstLetterStyle); } if (firstLineStyle != null) { inlineList.add(0, firstLineStyle); } return inlineList; } else { | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... |
return inlineList; | public static List getInlineContentList(Element elem, Context c) { List inlineList = new LinkedList(); List blockList = null; if (elem == null) { throw new NullPointerException("Trying to get ContentList for null element"); } if (!elem.hasChildNodes()) { //u.... | |
public ReplacedContent(Element e, CalculatedStyle style) { | ReplacedContent(Element e, CascadedStyle style) { | public ReplacedContent(Element e, CalculatedStyle style) { _elem = e; _style = style; } |
Uu.p("still null. failing :("); | protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl... | |
postCommitTasks = new ArrayList(); postRollbackTasks = new ArrayList(); | callbacks = new ArrayList(); | Transaction(Xid xid, PersistenceManager mgr) { state = STATE_ACTIVE; this.xid = xid; pm = mgr; postCommitTasks = new ArrayList(); postRollbackTasks = new ArrayList(); } |
public Set getSubscriptions(String clientID); | Set getSubscriptions(String clientID); | public Set getSubscriptions(String clientID); |
return createDestinationInternal(destinationMBeanConfig, on, jndiName, fullSize, pageSize, downCacheSize); | return createDestinationInternal(destinationMBeanConfig, on, jndiName, true, fullSize, pageSize, downCacheSize); | private String createDestination(boolean isQueue, String name, String jndiName, int fullSize, int pageSize, int downCacheSize) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // TODO - if I find a way not using UnifiedClass... |
return createDestinationInternal(destinationMBeanConfig, on, jndiName, -1, -1, -1); | return createDestinationInternal(destinationMBeanConfig, on, jndiName, false, -1, -1, -1); | private String createDestinationDefault(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // TODO - if I find a way not using UnifiedClassLoader3 directly, then get rid of // ... |
mbeanServer.setAttribute(on, new Attribute("FullSize", new Integer(fullSize))); mbeanServer.setAttribute(on, new Attribute("PageSize", new Integer(pageSize))); mbeanServer.setAttribute(on, new Attribute("DownCacheSize", new Integer(downCacheSize))); | if (params) { mbeanServer.setAttribute(on, new Attribute("FullSize", new Integer(fullSize))); mbeanServer.setAttribute(on, new Attribute("PageSize", new Integer(pageSize))); mbeanServer.setAttribute(on, new Attribute("DownCacheSize", new Integer(downCacheSize))); } | private String createDestinationInternal(String destinationMBeanConfig, ObjectName on, String jndiName, int fullSize, int pageSize, int downCacheSize) throws Exception { MBeanServer mbeanServer = getServer(); Element element = Util.stringToElement(destinationMBeanConfig); ServiceCreator sc =... |
public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception | public synchronized int registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception | public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { String id = generateConnectionFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, ... |
String id = generateConnectionFactoryID(); | int id = serverPeer.getNextObjectID(); | public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { String id = generateConnectionFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, ... |
Dispatcher.singleton.registerTarget(id, endpoint); | ConnectionFactoryAdvised connFactoryAdvised = new ConnectionFactoryAdvised(endpoint); JMSDispatcher.instance.registerTarget(Integer.valueOf(id), connFactoryAdvised); | public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { String id = generateConnectionFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, ... |
endpoints.put(id, endpoint); | endpoints.put(Integer.valueOf(id), endpoint); | public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { String id = generateConnectionFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, ... |
factories.put(id, cf); | factories.put(Integer.valueOf(id), cf); | public synchronized String registerConnectionFactory(String clientID, JNDIBindings jndiBindings) throws Exception { String id = generateConnectionFactoryID(); ServerConnectionFactoryEndpoint endpoint = new ServerConnectionFactoryEndpoint(id, ... |
layoutPool.insertUpdate(changes, a, vf); | public void insertUpdate(DocumentEvent changes, Shape a, ViewFactory vf) { strategy.insertUpdate(this, changes, getInsideAllocation(a)); } | |
ServerSessionEndpoint(int sessionID, ServerConnectionEndpoint connectionEndpoint, int acknowledgmentMode) | protected ServerSessionEndpoint(int sessionID, ServerConnectionEndpoint connectionEndpoint) | ServerSessionEndpoint(int sessionID, ServerConnectionEndpoint connectionEndpoint, int acknowledgmentMode) { this.sessionID = sessionID; this.acknowledgmentMode = acknowledgmentMode; this.connectionEndpoint = connectionEndpoint; ServerPeer sp = connectionEndpoint.getServerPeer(); dm = s... |
this.acknowledgmentMode = acknowledgmentMode; | ServerSessionEndpoint(int sessionID, ServerConnectionEndpoint connectionEndpoint, int acknowledgmentMode) { this.sessionID = sessionID; this.acknowledgmentMode = acknowledgmentMode; this.connectionEndpoint = connectionEndpoint; ServerPeer sp = connectionEndpoint.getServerPeer(); dm = s... | |
connectionEndpoint.temporaryDestinations.add(dest); | connectionEndpoint.addTemporaryDestination(dest); | public void addTemporaryDestination(Destination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } JBossDestination d = (JBossDestination)dest; if (!d.isTemporary()) { throw new InvalidDestinationException("Destination:" +... |
connectionEndpoint.sessions.remove(new Integer(sessionID)); | connectionEndpoint.removeSessionDelegate(sessionID); | public void close() throws JMSException { if (closed) { throw new IllegalStateException("Session is already closed"); } if (trace) log.trace("close()"); // clone to avoid ConcurrentModificationException HashSet consumerSet = new HashSet(consumers.values()); ... |
int browserID = connectionEndpoint.serverPeer.getNextObjectID(); | int browserID = connectionEndpoint.getServerPeer().getNextObjectID(); | public BrowserDelegate createBrowserDelegate(Destination jmsDestination, String messageSelector) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination == null) { throw new InvalidDestinationException("null destination"); } ... |
if (!connectionEndpoint.temporaryDestinations.contains(d)) | if (!connectionEndpoint.hasTemporaryDestination(d)) | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
int consumerID = connectionEndpoint.serverPeer.getNextObjectID(); | int consumerID = connectionEndpoint.getServerPeer().getNextObjectID(); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
dsm.removeDurableSubscription(connectionEndpoint.clientID, subscriptionName); | dsm.removeDurableSubscription(connectionEndpoint.getClientID(), subscriptionName); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
connectionEndpoint.consumers.put(new Integer(consumerID), ep); | connectionEndpoint.putConsumerDelegate(consumerID, ep); | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... |
int producerID = connectionEndpoint.serverPeer.getNextObjectID(); | int producerID = connectionEndpoint.getServerPeer().getNextObjectID(); | public ProducerDelegate createProducerDelegate(Destination jmsDestination) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination != null) { if (dm.getCoreDestination(jmsDestination) == null) { ... |
connectionEndpoint.temporaryDestinations.remove(dest); | connectionEndpoint.removeTemporaryDestination(dest); | public void deleteTemporaryDestination(Destination dest) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } JBossDestination d = (JBossDestination)dest; if (!d.isTemporary()) { throw new InvalidDestinationException("Destin... |
public ServerBrowserEndpoint getBrowserDelegate(int browserID) | protected ServerBrowserEndpoint getBrowserDelegate(int browserID) | public ServerBrowserEndpoint getBrowserDelegate(int browserID) { return (ServerBrowserEndpoint)browsers.get(new Integer(browserID)); } |
public ServerConsumerEndpoint getConsumerDelegate(int consumerID) | protected ServerConsumerEndpoint getConsumerDelegate(int consumerID) | public ServerConsumerEndpoint getConsumerDelegate(int consumerID) { return (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); } |
public ServerProducerEndpoint getProducerDelegate(int producerID) | protected ServerProducerEndpoint getProducerDelegate(int producerID) | public ServerProducerEndpoint getProducerDelegate(int producerID) { return (ServerProducerEndpoint)producers.get(new Integer(producerID)); } |
void setStarted(boolean s) | protected void setStarted(boolean s) | void setStarted(boolean s) { synchronized(consumers) { for(Iterator i = consumers.values().iterator(); i.hasNext(); ) { ((ServerConsumerEndpoint)i.next()).setStarted(s); } } } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.