rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
g.drawRect(overall.x - 1, overall.y - 1, overall.width + 1, overall.height + 1); | g.drawRect(overall.x, overall.y, overall.width, overall.height); | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... |
c.getGraphics().translate(0, -ty); | void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - margin.top - border.top - padding.top + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); Rectangle bounds = new Rectangle(start, ... | |
NodeList args = validator.getElementsByTagName("arg"); | List args = XMLUtil.getChildElements(validator, "arg"); | protected void init(Element validator) { type = validator.getAttribute("type"); try { setId(Integer.parseInt(validator.getAttribute("id"))); } catch (NumberFormatException e) { } this.args = new HashMap(); NodeList args = validator.getElementsByTagName("arg"); ... |
for (int l = 0; l < args.getLength(); l++) { Element arg = (Element) args.item(l); | for (int l = 0; l < args.size(); l++) { Element arg = (Element) args.get(l); | protected void init(Element validator) { type = validator.getAttribute("type"); try { setId(Integer.parseInt(validator.getAttribute("id"))); } catch (NumberFormatException e) { } this.args = new HashMap(); NodeList args = validator.getElementsByTagName("arg"); ... |
if (cont == null) return; if (cont.isFocusCycleRoot (cont)) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (cont); if (defaultComponent != null) defaultComponent.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (cont); } | if (cont != null) cont.transferFocusDownCycle(); | public void downFocusCycle (Container cont) { if (cont == null) return; if (cont.isFocusCycleRoot (cont)) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (cont); if (defaultComponent != null) defaultC... |
Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (focusCycleRoot, focusComp); if (next != null) next.requestFocusInW... | if (comp != null) comp.transferFocus(); | public void focusNextComponent (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (fo... |
Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentBefore (focusCycleRoot, focusComp); if (previous != null) previous.re... | if (comp != null) comp.transferFocusBackward(); | public void focusPreviousComponent (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentB... |
Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component defaultComponent = policy.getDefaultComponent (focusCycleRo... | if (comp != null) comp.transferFocusUpCycle(); | public void upFocusCycle (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); ... |
else { Container parentFocusCycleRoot = focusCycleRoot.getFocusCycleRootAncestor (); focusCycleRoot.requestFocusInWindow (); setGlobalCurrentFocusCycleRoot (parentFocusCycleRoot); } } | public void upFocusCycle (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); if (focusCycleRoot instanceof Window) { FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); ... | |
InvokerLocator locator = new InvokerLocator(serverLocatorURI); | InvokerLocator locator = new InvokerLocator(serverLocatorURI + "&dummy=xyz"); | protected synchronized Client getClient() throws Exception { if (client == null) { InvokerLocator locator = new InvokerLocator(serverLocatorURI); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); client.connect(); } return client; ... |
client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); | Map config = new HashMap(); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM, config); | protected synchronized Client getClient() throws Exception { if (client == null) { InvokerLocator locator = new InvokerLocator(serverLocatorURI); client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); client.connect(); } return client; ... |
mi.getMetaData().addMetaData(MetaDataConstants.JMS, MetaDataConstants.JMS_CLIENT_ID, JMSClientIdentifier.instance, PayloadKey.AS_IS); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } String methodName = ((MethodInvocation)invocation).getMethod().getName(); Object ret = null; ... | |
session.save(hStep); | public void moveToHistory(Step step) throws StoreException { HibernateWorkflowEntry entry; Transaction tx; try { tx = session.beginTransaction(); entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.i... | |
Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx()); | Border margin = block.getMarginWidth(c, width); | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... |
Rectangle2D oldclip = (Rectangle2D) c.getGraphics().getClip(); | Shape oldclip = (Shape) c.getGraphics().getClip(); | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... |
c.getGraphics().setClip(oldclip.createIntersection(new_clip)); | c.getGraphics().clip(new_clip); | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... |
if (toolkit instanceof ClasspathToolkit) ((ClasspathToolkit)toolkit).registerImageIOSpis(this); | private IIORegistry() { super(defaultCategories.iterator()); // XXX: Register built-in Spis here. Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof ClasspathToolkit) ((ClasspathToolkit)toolkit).registerImageIOSpis(this); registerApplicationClasspathSpis(); } | |
if (!ServerManagement.isRemote()) return; | public void testClientCrash() throws Exception { if (!ServerManagement.isRemote()) return; InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)i... | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); paletteTitleHeight = defaults.getInt("InternalFrame.paletteTitleHeight"); paletteCloseIcon = defaults.getIcon("InternalFrame.paletteCloseIcon"); | paletteTitleHeight = UIManager.getInt("InternalFrame.paletteTitleHeight"); paletteCloseIcon = UIManager.getIcon("InternalFrame.paletteCloseIcon"); | protected void installDefaults() { super.installDefaults(); selectedTextColor = MetalLookAndFeel.getControlTextColor(); selectedTitleColor = MetalLookAndFeel.getWindowTitleBackground(); notSelectedTextColor = MetalLookAndFeel.getInactiveControlTextColor(); notSelectedTitleColor = MetalLookAndFeel.getW... |
if (UIManager.get("InternalFrame.activeTitleGradient") != null && frame.isSelected()) { MetalUtils.paintGradient(g, 0, 0, getWidth(), getHeight(), SwingConstants.VERTICAL, "InternalFrame.activeTitleGradient"); } | public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(... | |
g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); | if (UIManager.get("InternalFrame.activeTitleGradient") != null && frame.isSelected()) { MetalUtils.paintGradient(g, b.x, b.y, b.width, b.height, SwingConstants.VERTICAL, "InternalFrame.activeTitleGradient"); } | public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width - palet... |
JTextComponent.KeyBinding[] bindings = null; String prefix = getPropertyPrefix(); InputMapUIResource m = (InputMapUIResource) UIManager.get(prefix + ".focusInputMap"); if (m != null) | String keymapName = getKeymapName(); Keymap keymap = JTextComponent.getKeymap(keymapName); if (keymap == null) | protected Keymap createKeymap() { // FIXME: It seems to me that this method implementation is wrong. It seems // to fetch the focusInputMap and transform it to the KeyBinding/Keymap // implemenation. I would think that it should be done the other way, // fetching the keybindings (from prefix + ".bindings... |
KeyStroke[] keys = m.keys(); int len = keys.length; bindings = new JTextComponent.KeyBinding[len]; for (int i = 0; i < len; i++) | Keymap parentMap = JTextComponent.getKeymap(JTextComponent.DEFAULT_KEYMAP); keymap = JTextComponent.addKeymap(keymapName, parentMap); Object val = UIManager.get(getPropertyPrefix() + ".keyBindings"); if (val != null && val instanceof JTextComponent.KeyBinding[]) | protected Keymap createKeymap() { // FIXME: It seems to me that this method implementation is wrong. It seems // to fetch the focusInputMap and transform it to the KeyBinding/Keymap // implemenation. I would think that it should be done the other way, // fetching the keybindings (from prefix + ".bindings... |
KeyStroke curr = keys[i]; bindings[i] = new JTextComponent.KeyBinding(curr, (String) m.get(curr)); | JTextComponent.KeyBinding[] bindings = (JTextComponent.KeyBinding[]) val; JTextComponent.loadKeymap(keymap, bindings, getComponent().getActions()); | protected Keymap createKeymap() { // FIXME: It seems to me that this method implementation is wrong. It seems // to fetch the focusInputMap and transform it to the KeyBinding/Keymap // implemenation. I would think that it should be done the other way, // fetching the keybindings (from prefix + ".bindings... |
if (bindings == null) bindings = new JTextComponent.KeyBinding[0]; Keymap km = JTextComponent.addKeymap(getKeymapName(), JTextComponent.getKeymap(JTextComponent.DEFAULT_KEYMAP)); JTextComponent.loadKeymap(km, bindings, textComponent.getActions()); return km; | return keymap; | protected Keymap createKeymap() { // FIXME: It seems to me that this method implementation is wrong. It seems // to fetch the focusInputMap and transform it to the KeyBinding/Keymap // implemenation. I would think that it should be done the other way, // fetching the keybindings (from prefix + ".bindings... |
throws BadLocationException | throws BadLocationException, NotImplementedException | public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { return 0; // TODO: Implement me. } |
Keymap km = JTextComponent.getKeymap(getKeymapName()); if (km == null) km = createKeymap(); textComponent.setKeymap(km); | textComponent.setKeymap(createKeymap()); | protected void installKeyboardActions() { // load key bindings for the older interface Keymap km = JTextComponent.getKeymap(getKeymapName()); if (km == null) km = createKeymap(); textComponent.setKeymap(km); // load any bindings for the newer InputMap / ActionMap interface SwingUtilities.r... |
List msgs = sendMessages("topic", persistent, office1, 3, null); | List msgs = sendMessages("topic", persistent, office1, 1, null); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
msgs = sendMessages("topic", persistent, office1, 3, null); | msgs = sendMessages("topic", persistent, office1, 1, null); | protected void notLocal(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; ClusteredPostOffice office3 = null; ClusteredPostOffice office4 = null; ClusteredPostOffice office5 = null; ClusteredPos... |
if (box.isInlineElement() || !(box.content instanceof TextContent)) { | if (LayoutUtil.isBlockOrInlineElementBox(box)) { | public static Color getBackgroundColor(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.background_color == null) { CalculatedStyle style = c.g... |
if (box.isInlineElement() || !(box.content instanceof TextContent)) { | if(LayoutUtil.isBlockOrInlineElementBox(box)) { | public static Border getMargin(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.margin == null) { box.margin = c.getCurrentStyle().getMarginWid... |
if (box.isInlineElement() || !(box.content instanceof TextContent)) { | if(LayoutUtil.isBlockOrInlineElementBox(box)) { | public static Border getPadding(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.padding == null) { box.padding = c.getCurrentStyle().getPaddin... |
this.policyFile = new PolicyFile(); | this.policyFile = new PolicyFile(ClassLoader .getSystemResource("/org/jnode/security/jnode.policy")); | public JNodePolicy(ExtensionPoint permissionsEp) { this.policyFile = new PolicyFile(); //TODO SECURITY DISABLED !!! (need Classpath and/or JNode workaround)// this.policyFile.parse(ClassLoader// .getSystemResource("/org/jnode/security/jnode.policy")); this.codeSource2Permi... |
log.info("********* SENDING MSGS"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
log.info("*********** SENT MSGSSGS"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
log.info("********* SENDING MOREMSGS"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
log.info("********* SENT MORE MSGS"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
log.info("COMMITTING"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
log.info("COMMITTED"); | public void testTransactionalAcknowlegment() throws Exception { Connection conn = cf.createConnection(); Session producerSess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer producer = producerSess.createProducer(queue); Session consumerSess = conn.createSession(true, Se... | |
KeyStroke[] array = new KeyStroke[size()]; | if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size()]; | public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) set.addAll(Arrays.asList(parent.allKeys())); set.addAll(inputMap.keySet()); KeyStroke[] array = new KeyStroke[size()]; return (KeyStroke[]) set.toArray(array); } |
return null; } | public KeyStroke[] keys() { KeyStroke[] array = new KeyStroke[size()]; return (KeyStroke[]) inputMap.keySet().toArray(array); } | |
getState(invocation).getCallbackServer().stop(); getState(invocation).getClient().disconnect(); | getState(invocation).getRemotingConnection().close(); | public Object handleClose(Invocation invocation) throws Throwable { Object ret = invocation.invokeNext(); //Finished with the connection - we need to shutdown callback server getState(invocation).getCallbackServer().stop(); getState(invocation).getClient().disconnect(); return ... |
Client client = getState(invocation).getClient(); | Client client = getState(invocation).getRemotingConnection().getInvokingClient(); | public Object handleSetExceptionListener(Invocation invocation) throws Throwable { justCreated = false; MethodInvocation mi = (MethodInvocation)invocation; exceptionListener = (ExceptionListener)mi.getArguments()[0]; Client client = getState(invocation).getClient()... |
} | if (parent.countComponents() == 1) { Component c = parent.getComponent(0); } } | public void layoutContainer(Container parent) { // TODO } // layoutContainer() |
if (hasAlpha() && isAlphaPremultiplied()) | if (hasAlpha() && isAlphaPremultiplied() && getAlpha(pixel) != 0) | private int extractAndNormalizeSample(int pixel, int component) { int value = extractAndScaleSample(pixel, component); if (hasAlpha() && isAlphaPremultiplied()) value = value*255/getAlpha(pixel); return value; } |
if (log.isTraceEnabled()) log.trace("In SessionInterceptor: method is " + methodName); | if (log.isTraceEnabled()) { log.trace("handling " + methodName); } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... |
if (log.isTraceEnabled()) log.trace("I have " + unacked.size() + " messages in the session to ack"); | if (log.isTraceEnabled()) { log.trace("I have " + unacked.size() + " messages in the session to ack"); } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... |
if (log.isTraceEnabled()) log.trace("Session is transacted - doing nothing"); | if (log.isTraceEnabled()) { log.trace("session is transacted, noop and ending the invocation"); } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... |
} | } if (log.isTraceEnabled()) { log.trace("acknowledged, ending the invocation"); } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... |
if (log.isTraceEnabled()) { log.trace("set acknowledgment mode to " + ToString.acknowledgmentMode(ackMode) + ", ending the invocation"); } | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (log.isTrace... | |
LineMetrics metrics = FontUtil.getLineMetrics( c, new_inline ); lineHeight = FontUtil.lineHeight( c ); ascent = (int)metrics.getAscent(); descent = (int)metrics.getDescent(); | LineMetrics metrics = FontUtil.getLineMetrics(c, new_inline); lineHeight = FontUtil.lineHeight(c); ascent = (int) metrics.getAscent(); descent = (int) metrics.getDescent(); leading = (int) metrics.getLeading(); | public static int getBaselineOffset( Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics ) { int lineHeight; int ascent; int descent; int baselineOffset; if ( new_inline instanceof InlineTextBox ) { // should be the metr... |
baselineOffset = (int)( -blockLineMetrics.getStrikethroughOffset() * 2.0 ); | baselineOffset = (int) Math.round(-blockLineMetrics.getStrikethroughOffset() * 1.5); | public static int getBaselineOffset( Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics ) { int lineHeight; int ascent; int descent; int baselineOffset; if ( new_inline instanceof InlineTextBox ) { // should be the metr... |
} else if ( vertical_align == IdentValue.TOP ) { baselineOffset = curr_line.getBaseline() - ascent; } else if ( vertical_align == IdentValue.BOTTOM ) { baselineOffset = descent - ( curr_line.height - curr_line.getBaseline() ); | } else if (vertical_align == IdentValue.MIDDLE) { int halfxheight = -(int) (blockLineMetrics.getStrikethroughOffset()); int boxmiddle = (int) Math.round(new_inline.height / 2.0); int boxbase = (int) Math.round(ascent + leading / 2.0); int boxalign = boxbase - boxmiddle; baselineOffset = halfxheight - boxalign; } else ... | public static int getBaselineOffset( Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics ) { int lineHeight; int ascent; int descent; int baselineOffset; if ( new_inline instanceof InlineTextBox ) { // should be the metr... |
if (log.isTraceEnabled()) { log.trace("internalArray:" + payload); } | if (trace) { log.trace("internalArray:" + payload); } | void checkRead() throws JMSException { // We have just received/reset() the message, and the client is trying to // read it if (istream == null || m == null) { if (log.isTraceEnabled()) { log.trace("internalArray:" + payload); } istream = new ByteArrayInputStream((byte[])pay... |
public int getType() | public byte getType() | public int getType() { return JBossBytesMessage.TYPE; } |
if (log.isTraceEnabled()) log.trace("reset()"); | if (trace) log.trace("reset()"); | public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (ostream != null) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); payload = ostream.toByteArray(); if (lo... |
if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } | if (trace) { log.trace("Flushing ostream to array"); } | public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (ostream != null) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); payload = ostream.toByteArray(); if (lo... |
if (log.isTraceEnabled()) { log.trace("Array is now: " + payload); } | if (trace) { log.trace("Array is now: " + payload); } | public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (ostream != null) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); payload = ostream.toByteArray(); if (lo... |
restriction.getConditions().add(conditions); | restriction.setConditionsDescriptor(conditions); | protected void updateView() { InitialActionCell cell = (InitialActionCell)getCell(); descriptor = cell.getActionDescriptor(); RestrictionDescriptor restriction = descriptor.getRestriction(); if(restriction == null) { restriction = new RestrictionDescriptor(); restriction.setParent(descriptor); Cond... |
conditionsModel.setList(((ConditionsDescriptor)restriction.getConditions().get(0)).getConditions()); | conditionsModel.setList(restriction.getConditionsDescriptor().getConditions()); | protected void updateView() { InitialActionCell cell = (InitialActionCell)getCell(); descriptor = cell.getActionDescriptor(); RestrictionDescriptor restriction = descriptor.getRestriction(); if(restriction == null) { restriction = new RestrictionDescriptor(); restriction.setParent(descriptor); Cond... |
String subscriptionName) | String subscriptionName, boolean isCC) | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if ("".e... |
public void redeliver() throws JMSException | public void redeliver(String asfReceiverID) throws JMSException | public void redeliver() throws JMSException { if (log.isTraceEnabled()) { log.trace("redeliver"); } Iterator iter = this.consumers.values().iterator(); while (iter.hasNext()) { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered ServerConsumerDelegate scd = (... |
if (log.isTraceEnabled()) { log.trace("redeliver"); } | if (log.isTraceEnabled()) { log.trace("redelivering messages for session"); } if (asfReceiverID != null) { if (log.isTraceEnabled()) { log.trace("Redelivering the connectionconsumer's messages"); } this.connectionEndpoint.redeliverForConnectionConsumer(asfReceiverID); } | public void redeliver() throws JMSException { if (log.isTraceEnabled()) { log.trace("redeliver"); } Iterator iter = this.consumers.values().iterator(); while (iter.hasNext()) { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered ServerConsumerDelegate scd = (... |
if (log.isTraceEnabled()) log.trace("MethodName=" + methodName + " declaringclass=" + m.getDeclaringClass()); | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... | |
else if ("createSessionDelegate".equals(methodName) || "start".equals(methodName) || "stop".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerConnectionDelegate.class))) | else if (m.getDeclaringClass().equals(ServerConnectionDelegate.class)) | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... |
else if ("createProducerDelegate".equals(methodName) || "createConsumer".equals(methodName) || "sendTransaction".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerSessionDelegate.class))) | else if (m.getDeclaringClass().equals(ServerSessionDelegate.class)) | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... |
else if ("send".equals(methodName) || (("close".equals(methodName) || "closing".equals(methodName)) && m.getDeclaringClass().equals(ServerProducerDelegate.class))) | else if (m.getDeclaringClass().equals(ServerProducerDelegate.class)) | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... |
else if ("acknowledge".equals(methodName)) | else if (m.getDeclaringClass().equals(Consumer.class)) | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... |
} | ServerSessionDelegate ssd = scd.getSessionDelegate(sessionID); if (scd == null) { throw new Exception("The connection " + clientID + " doesn't know of any session " + "with sessionID=" + sessionID); } String browserID = (String)invocation.getMetaData(). getMetaData(JMSAdvisor.JMS, JMSAdvisor.BROWSER_ID); ServerBrows... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)m... |
Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); | Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); | public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 for (int i = 0; i < 99; i+... |
sb.append(binding.getSelector()); | sb.append(filterString); | private String getSubscriptionsAsText(List bindings, boolean durable) { StringBuffer sb = new StringBuffer(); Iterator iter = bindings.iterator(); while (iter.hasNext()) { Binding binding = (Binding)iter.next(); if (durable && binding.isDurable()) { ... |
public Class getCategory() | public final Class getCategory() | public Class getCategory() { return Finishings.class; } |
public String getName() | public final String getName() | public String getName() { return "finishings"; } |
System.out.println("got an image for: " + e.getAttribute("src") + " " + im); | public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | |
System.out.println("i2 = " + i2); | public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | |
Collection joinSteps = new HashSet(); | Collection joinSteps = new ArrayList(); | private void transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // val... |
return beanProvider; | return (BeanProvider)beanProvider; | public BeanProvider getBeanProvider() { return beanProvider; } |
o = beanProvider.getProperty(o, var.substring(firstDot + 1)); | o = ((BeanProvider)beanProvider).getProperty(o, var.substring(firstDot + 1)); | public Object getVariableFromMaps(String var, Map transientVars, PropertySet ps) { int firstDot = var.indexOf('.'); String actualVar = var; if (firstDot != -1) { actualVar = var.substring(0, firstDot); } Object o = transientVars.get(actualVar); if (o == null) { ... |
transientVars.put("createdStep", newStep); | private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... | |
ClientSessionDelegate d = new ClientSessionDelegate(sessionID, serverPeer.getLocator()); log.debug("created and registered " + ep); | ClientSessionDelegate d = new ClientSessionDelegate(sessionID); log.debug("created session delegate (sessionID=" + Util.guidToString(sessionID) + ")"); | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedExcep... |
this.y = staticEquivalent.getAbsY() - getAbsY(); setAbsY(staticEquivalent.getAbsY()); | if (staticEquivalent.getAbsY() != getAbsY()) { this.y = staticEquivalent.getAbsY() - getAbsY(); setAbsY(staticEquivalent.getAbsY()); } | private void alignToStaticEquivalent() { this.y = staticEquivalent.getAbsY() - getAbsY(); setAbsY(staticEquivalent.getAbsY()); } |
public void positionAbsolute(CssContext cssCtx) { | public void positionAbsolute(CssContext cssCtx, int direction) { | public void positionAbsolute(CssContext cssCtx) { CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height; if (getContainingBlock() instanceof BlockBox) { ... |
if (!style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { this.x = (int)style.getFloatPropertyProportionalWidth(CSSName.LEFT, getContainingBlock().getContentWidth(), cssCtx); } else if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { this.x = boundingBox.width - (int)style.getFloatPropertyProportionalWidth(CSSName.RIGHT, ... | if ((direction & POSITION_HORIZONTALLY) != 0) { if (!style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { this.x = (int)style.getFloatPropertyProportionalWidth(CSSName.LEFT, getContainingBlock().getContentWidth(), cssCtx); } else if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { this.x = boundingBox.width - (int)style.g... | public void positionAbsolute(CssContext cssCtx) { CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height; if (getContainingBlock() instanceof BlockBox) { ... |
if (!style.isIdent(CSSName.TOP, IdentValue.AUTO)) { this.y = (int)style.getFloatPropertyProportionalHeight(CSSName.TOP, cbContentHeight, cssCtx); } else if (!style.isIdent(CSSName.BOTTOM, IdentValue.AUTO)) { this.y = boundingBox.height - (int)style.getFloatPropertyProportionalWidth(CSSName.BOTTOM, cbContentHeight, cssC... | if ((direction & POSITION_VERTICALLY) != 0) { if (!style.isIdent(CSSName.TOP, IdentValue.AUTO)) { this.y = (int)style.getFloatPropertyProportionalHeight(CSSName.TOP, cbContentHeight, cssCtx); } else if (!style.isIdent(CSSName.BOTTOM, IdentValue.AUTO)) { this.y = boundingBox.height - (int)style.getFloatPropertyProportio... | public void positionAbsolute(CssContext cssCtx) { CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height; if (getContainingBlock() instanceof BlockBox) { ... |
if (getStyle().isTopAuto() && getStyle().isBottomAuto()) { | if ((direction & POSITION_VERTICALLY) != 0 && getStyle().isTopAuto() && getStyle().isBottomAuto()) { | public void positionAbsolute(CssContext cssCtx) { CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height; if (getContainingBlock() instanceof BlockBox) { ... |
elementStack = new Stack(); | public ElementBuffer(Element root) { this.root = root; } | |
split(el, offset); | Element[] res = split(el, offset, 0); BranchElement par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getElementIndex(offset); Element[] removed; Element[] added; if (res[0] == null) { removed = new Element[0]; added = new Element[]{ res[1] }; index++; } else { removed = new Element[]{ ... | protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); split(el, offset); int endOffset = offset + length; el = getCharacterElement(endOffset); split(el, endOffset); } |
split(el, endOffset); | res = split(el, endOffset, 0); par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getElementIndex(offset); Element[] removed; Element[] added; if (res[1] == null) { removed = new Element[0]; added = new Element[]{ res[1] }; } else { removed = new Element[]{ el }; added = new Element[]{ r... | protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); split(el, offset); int endOffset = offset + length; el = getCharacterElement(endOffset); split(el, endOffset); } |
elementStack.clear(); elementStack.push(root); elementStack.push(root.getElement(root.getElementIndex(offset))); numEndTags = 0; numStartTags = 0; | public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { this.offset = offset; this.length = length; documentEvent = ev; insertUpdate(data); } | |
void insertContentTag(ElementSpec tag) | private void insertContentTag(ElementSpec tag) | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Element join = createLeafElement(prevParent, tag.getAttributes(), prev.getStartOffset(), Math.max(prev.getEndOffset(), offset + len)); int ind = prevParent.getElementIndex(offset); if (ind == -1) ind = 0; Ele... | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... | |
Element next = getCharacterElement(offset + len); BranchElement nextParent = (BranchElement) next.getParentElement(); Element join = createLeafElement(nextParent, tag.getAttributes(), | BranchElement paragraph = (BranchElement) elementStack.peek(); int currentIndex = paragraph.getElementIndex(offset); Element current = paragraph.getElement(currentIndex); Element next = paragraph.getElement(currentIndex + 1); Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset... | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
int ind = nextParent.getElementIndex(offset + len); if (ind == -1) ind = 0; Element[] add = new Element[]{join}; nextParent.replace(ind, 1, add); | Element[] add = new Element[] {newEl1, newEl2}; Element[] remove = new Element[] {current, next}; paragraph.replace(currentIndex, 2, add); | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
ElementEdit edit = new ElementEdit(nextParent, ind, new Element[]{next}, add); documentEvent.addEdit(edit); | addEdit(paragraph, currentIndex, remove, add); | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
BranchElement par = (BranchElement) getParagraphElement(offset); | BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
int ind = par.getElementIndex(offset); Element prev = par.getElement(ind); if (prev != null && prev.getStartOffset() < offset) | Element[] added; Element[] removed; Element[] splitRes = split(current, offset, length); if (splitRes[0] == null) | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Element cutPrev = createLeafElement(par, prev.getAttributes(), prev.getStartOffset(), offset); Element[] remove = new Element[]{prev}; Element[] add = new Element[]{cutPrev}; if (prev.getEndOffset() > offset + len) { Element rem = createLeafElement(par, prev.getAttributes(), offset + len, prev.getEndOffset()); add = ne... | added = new Element[2]; added[0] = createLeafElement(paragraph, tag.getAttributes(), offset, offset + length); added[1] = splitRes[1]; removed = new Element[0]; index++; | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Element next = par.getElement(ind); if (next != null && next.getStartOffset() < offset + len) | else if (current.getStartOffset() == offset) | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Element cutNext = createLeafElement(par, next.getAttributes(), offset + len, next.getEndOffset()); Element[] remove = new Element[]{next}; Element[] add = new Element[]{cutNext}; par.replace(ind, 1, add); documentEvent.addEdit(new ElementEdit(par, ind, remove, add)); | added = new Element[2]; added[0] = createLeafElement(paragraph, tag.getAttributes(), offset, offset + length); added[1] = splitRes[1]; removed = new Element[] { current }; | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Element newEl = createLeafElement(par, tag.getAttributes(), offset, offset + len); Element[] added = new Element[]{newEl}; par.replace(ind, 0, added); ElementEdit edit = new ElementEdit(par, ind, new Element[0], added); documentEvent.addEdit(edit); | else if (current.getEndOffset() - length == offset) { added = new Element[2]; added[0] = splitRes[0]; added[1] = createLeafElement(paragraph, tag.getAttributes(), offset, offset + length); removed = new Element[] { current }; } else { added = new Element[3]; added[0] = splitRes[0]; added[1] = createLeafElement(paragrap... | void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); if (dir == ElementSpec.JoinPreviousDirection) { Element prev = getCharacterElement(offset); BranchElement prevParent = (BranchElement) prev.getParentElement(); Elemen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.