rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
master.positionAbsolute(c); master.positionAbsoluteOnPage(c); | master.positionAbsolute(c, BlockBox.POSITION_HORIZONTALLY); | private void layoutAbsoluteChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); if (child.getMaster().getStyle().isBottomAuto()) { // Set top, left master.positionAbsolute(c); master.positionAbsoluteOnPage(c); c.reInit(child.g... |
master.positionAbsolute(c); | master.positionAbsolute(c, BlockBox.POSITION_BOTH); | private void layoutAlternateFlowChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); // Set top, left master.positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(child.getMaster().getContainingBlock().getPaddingEdge(0,... |
((BlockBox)getMaster()).positionAbsolute(c); | ((BlockBox)getMaster()).positionAbsolute(c, BlockBox.POSITION_BOTH); | private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { ((BlockBox)getMaster()).positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } } |
((BlockBox)fixed).positionAbsolute(c); | ((BlockBox)fixed).positionAbsolute(c, BlockBox.POSITION_BOTH); | private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = 0; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... |
ServerSessionDelegate ssd = new ServerSessionDelegate(sessionID, this); | ServerSessionDelegate ssd = new ServerSessionDelegate(sessionID, this, acknowledgmentMode); | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode) { // create the dynamic proxy that implements SessionDelegate SessionDelegate sd = null; Serializable oid = serverPeer.getSessionAdvisor().getName(); String stackName = "SessionStack"; AdviceStack stac... |
sb.append(' ').append(attr.getNodeName() + "=\"" + attr.getNodeValue() + "\""); | sb.append(' '). append(attr.getNodeName()). append("=\""). append(attr.getNodeValue()). append("\""); | public static String elementToString(Node n) throws XMLException { String name = n.getNodeName(); if (name.startsWith("#")) { return ""; } StringBuffer sb = new StringBuffer(); sb.append('<').append(name); NamedNodeMap attrs = n.getAttributes(); if (attrs != null) ... |
String textContent = null; | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... | |
String s = n.toString(); int i = s.indexOf('>'); int i2 = s.indexOf("</"); if (i == -1 || i2 == -1) | if (n.hasChildNodes()) | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... |
return null; | NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { Node c = nl.item(i); if (c.getNodeType() == Node.TEXT_NODE) { textContent = n.getNodeValue(); if (textContent == null) { String s = c.toString(); int idx = s.indexOf("#text:"); if (idx != -1) { textContent = s.substring(idx + 6).trim(); } if (t... | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... |
return s.substring(i + 1, i2); | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... | |
return textContent; | public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ... | |
return "JProgressBar"; | String superParamStr = super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(",orientation="); if (orientation == HORIZONTAL) sb.append("HORIZONTAL"); else sb.append("VERTICAL"); sb.append(",paintBorder=").append(isBorderPainted()); sb.append(",paintString=").append(isStringPainted()); sb.append(",progre... | protected String paramString() { return "JProgressBar"; } |
ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); | RMIClassLoaderSpi spi = getProviderInstance(); if (spi == null) spi = getDefaultProviderInstance(); return spi.getClassAnnotation(cl); | public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return... |
if (loader instanceof MyClassLoader) { return ((MyClassLoader) loader).getClassAnnotation(); } String s = (String) cacheAnnotations.get (loader); if (s != null) return s; if (loader instanceof URLClassLoader) { URL[] urls = ((URLClassLoader) loader).getURLs(); if (urls.length == 0) return null; StringBuffer annota... | public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return... | |
public static ClassLoader getClassLoader (String codebases) | public static ClassLoader getClassLoader(String codebase) | public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ... |
ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { StringTokenizer tok = new StringTokenizer (codebases, " "); ArrayList urls = new ArrayList(); while (tok.hasMoreTokens()) urls... | RMIClassLoaderSpi spi = getProviderInstance(); if (spi == null) spi = getDefaultProviderInstance(); return spi.getClassLoader(codebase); | public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ... |
ServerManagement.undeployQueue("Queue"); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (ConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagemen... | |
while (tableBox.columnRows[col] != 0) { | while ((col < tableBox.columnRows.length) && (tableBox.columnRows[col] != 0)) { | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... |
for (int j = 0; j < cb.colspan; j++) { | for (int j = 0; (j < cb.colspan) && (col + j < tableBox.columnRows.length); j++) { | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... |
for (int i = 0; i < cb.colspan; i++) cb.contentWidth += tableBox.columns[col + i]; | for (int i = 0; (i < cb.colspan) && (col + i < tableBox.columns.length); i++) cb.contentWidth += tableBox.columns[col + i]; | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... |
for (int j = 0; j < cb.colspan; j++) { | for (int j = 0; (j < cb.colspan) && (col + j < tableBox.columns.length); j++) { | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... |
} | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.contentWidth) { int extra = (tableBox.contentW... | |
} | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | |
ms = new PagingMessageStore("s61"); | ms = new SimpleMessageStore("s61"); | public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s61"); channel = new SimpleChannel(1, ms); // the state ACCEPTS reliable messages state = new ChannelState(channel, this.persistenceManagerDelegate, true, false, 100, 20, 10); } |
cm.unregisterHandler(consumerState.getConsumerID()); | cm.unregisterHandler(connectionState.getServerID(), consumerState.getConsumerID()); | public Object handleClosing(Invocation invocation) throws Throwable { // First we make sure closing is called on the ServerConsumerEndpoint. This ensures that any // in-transit messages are flushed out to the client side. Object res = invocation.invokeNext(); ConsumerState consumerS... |
cm.registerHandler(consumerID, messageHandler); | cm.registerHandler(serverId, consumerID, messageHandler); | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; ConsumerDelegate consumerDelegate = (ConsumerDelegate)invocation.invokeNext(); boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); // Create the me... |
getDelegate(mi).redeliver(); | SessionDelegate del = getDelegate(mi); String asfReceiverID = del.getAsfReceiverID(); if (log.isTraceEnabled()) { log.trace("Calling sessiondelegate.redeliver()"); } del.redeliver(asfReceiverID); | 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 ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createXMLReader( xmlReaderClass ); | if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default") && XMLResource.useConfiguredParser ) { try { Class.forName(xmlReaderClass); } catch (Exception ex) { XMLResource.useConfiguredParser = false; XRLog.load(Level.WARNING, "The XMLReader class you specified as a configuration property " + "could... | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... |
"Could not instantiate XMLReader class for XML parsing: " | "Could not instantiate custom XMLReader class for XML parsing: " | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... |
System.setProperty("org.xml.sax.driver","org.apache.crimson.parser.XMLReaderImpl"); | String newDefault = "org.apache.crimson.parser.XMLReaderImpl"; XRLog.load(Level.WARNING, "No value for system property 'org.xml.sax.driver'."); | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... |
saxParser = XMLReaderFactory.createXMLReader(); | saxParser = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createX... |
public ResolveResult resolveToClass(Name name, Class contextType) | ResolveResult resolveToClass(Name name, Class contextType) | public ResolveResult resolveToClass(Name name, Class contextType) throws NamingException; |
log.debug("creating ConsumerEndpoint[" + id + "]"); | if (trace) { log.trace("creating consumer endpoint " + id); } | protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" +... |
this.channel.add(this); | this.channel.add(this); log.debug(this + " created"); | protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" +... |
if (trace) { log.trace(this + " disconnected from the channel"); } | if (trace) { log.trace(this + " removed from the channel"); } | protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (trace) { log.trace(this + " disconnected from the channel"); } } } |
inputComponent = null; | inputComponent = new JTextField(15); else if (selection.length < 20) inputComponent = new JComboBox(selection); | protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... |
getMaxCharactersPerLineCount(), true); | getMaxCharactersPerLineCount(), false); | protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel(); rightSide.setLayout(new GridBagLayout()); GridBagConstraints con = createConstraints(); addMessageComponents(rightSide, c... |
return null; | return (Container) Box.createVerticalStrut(17); | protected Container createSeparator() { return null; } |
optionPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11)); | protected void installComponents() { // reset it. hasCustomComponents = false; Container msg = createMessageArea(); if (msg != null) { ((JComponent) msg).setBorder(messageBorder); msg.setForeground(messageForeground); messageAreaContainer = msg; optionPane.add(msg); } Container sep = createS... | |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { | public boolean canInitialize(String workflowName, int initialState) { | public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); throw new WorkflowException(e); ... |
throw new WorkflowException(e); | return false; | public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { try { return wf.canInitialize(workflowName, initialState); } catch (RemoteException e) { log.error("Error checking canInitialize", e); throw new WorkflowException(e); ... |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { | public boolean canModifyEntryState(long id, int newState) { | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return false; | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { try { return wf.canModifyEntryState(id, newState); } catch (RemoteException e) { log.error("Error checking modifying entry state", e); throw new WorkflowException(e); } } |
public int[] getAvailableActions(long id) throws WorkflowException { | public int[] getAvailableActions(long id) { | public int[] getAvailableActions(long id) throws WorkflowException { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return new int[0]; | public int[] getAvailableActions(long id) throws WorkflowException { try { return wf.getAvailableActions(id); } catch (RemoteException e) { log.error("Error getting available actions", e); throw new WorkflowException(e); } } |
public List getCurrentSteps(long id) throws WorkflowException { | public List getCurrentSteps(long id) { | public List getCurrentSteps(long id) throws WorkflowException { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return Collections.EMPTY_LIST; | public List getCurrentSteps(long id) throws WorkflowException { try { return wf.getCurrentSteps(id); } catch (RemoteException e) { log.error("Error getting current steps", e); throw new WorkflowException(e); } } |
public int getEntryState(long id) throws WorkflowException { | public int getEntryState(long id) { | public int getEntryState(long id) throws WorkflowException { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return WorkflowEntry.UNKNOWN; | public int getEntryState(long id) throws WorkflowException { try { return wf.getEntryState(id); } catch (RemoteException e) { log.error("Error getting entry state", e); throw new WorkflowException(e); } } |
public List getHistorySteps(long id) throws WorkflowException { | public List getHistorySteps(long id) { | public List getHistorySteps(long id) throws WorkflowException { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return Collections.EMPTY_LIST; | public List getHistorySteps(long id) throws WorkflowException { try { return wf.getHistorySteps(id); } catch (RemoteException e) { log.error("Error getting history steps", e); throw new WorkflowException(e); } } |
public PropertySet getPropertySet(long id) throws WorkflowException { | public PropertySet getPropertySet(long id) { | public PropertySet getPropertySet(long id) throws WorkflowException { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return null; | public PropertySet getPropertySet(long id) throws WorkflowException { try { return wf.getPropertySet(id); } catch (RemoteException e) { log.error("Error getting PropertySet", e); throw new WorkflowException(e); } } |
public List getSecurityPermissions(long id) throws WorkflowException { | public List getSecurityPermissions(long id) { | public List getSecurityPermissions(long id) throws WorkflowException { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return Collections.EMPTY_LIST; | public List getSecurityPermissions(long id) throws WorkflowException { try { return wf.getSecurityPermissions(id); } catch (RemoteException e) { log.error("Error getting security permissions", e); throw new WorkflowException(e); } } |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return null; | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException { try { return wf.getWorkflowDescriptor(workflowName); } catch (RemoteException e) { log.error("Error getting descriptor", e); throw new WorkflowException(e); } } |
public String getWorkflowName(long id) throws WorkflowException { | public String getWorkflowName(long id) { | public String getWorkflowName(long id) throws WorkflowException { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); throw new WorkflowException(e); } } |
throw new WorkflowException(e); | return null; | public String getWorkflowName(long id) throws WorkflowException { try { return wf.getWorkflowName(id); } catch (RemoteException e) { log.error("Error getting workflow name", e); throw new WorkflowException(e); } } |
public String[] getWorkflowNames() throws FactoryException { | public String[] getWorkflowNames() { | public String[] getWorkflowNames() throws FactoryException { try { return wf.getWorkflowNames(); } catch (RemoteException e) { log.error("Error calling getWorkflowNames", e); return new String[0]; } } |
if (transacted) { acknowledgeMode = Session.SESSION_TRANSACTED; } | protected JBossSession createSessionInternal(boolean transacted, int acknowledgeMode, boolean isXA, int type) throws JMSException { SessionDelegate sessionDelegate = delegate.createSessionDelegate(transacted, acknowledgeMode, isXA); return new JBossSession(s... | |
CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException; | DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException; | CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ... |
CoreSubscription createSubscription(String topicName, | Subscription createSubscription(String topicName, | CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException; |
CoreDurableSubscription getDurableSubscription(String clientID, | DurableSubscription getDurableSubscription(String clientID, | CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, PersistenceManager pm) throws JMSException; |
if (_drvBackgroundColor == null) { _drvBackgroundColor = valueByName(CSSName.BACKGROUND_COLOR).asColor(); XRLog.cascade(Level.FINEST, "Background color: " + _drvBackgroundColor); } return _drvBackgroundColor; | return asColor(CSSName.BACKGROUND_COLOR); | public Color getBackgroundColor() { if (_drvBackgroundColor == null) { _drvBackgroundColor = valueByName(CSSName.BACKGROUND_COLOR).asColor(); XRLog.cascade(Level.FINEST, "Background color: " + _drvBackgroundColor); } return _drvBackgroundColor; } |
if (trace) { log.trace("Closing " + this); } | if (trace) { log.trace("ConnectionConsumer Closing " + this); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("Closing " + this); } closed = true; //This will call the MessageConsumer cons to close too - which results //in the receiver thread being interrupted. sess.close(); //wait for the run thread ... |
sess.close(); | JMSInvocationHandler handler = (JMSInvocationHandler)Proxy.getInvocationHandler(cons); MessageCallbackHandler messageHandler = (MessageCallbackHandler)handler.getMetaData().getMetaData(JMSAdvisor.JMS, JMSAdvisor.CALLBACK_HANDLER); messageHandler.close(); if (trace) { log.trace("Closed message handler"); } | public void close() throws javax.jms.JMSException { if (trace) { log.trace("Closing " + this); } closed = true; //This will call the MessageConsumer cons to close too - which results //in the receiver thread being interrupted. sess.close(); //wait for the run thread ... |
} | } if (trace) { log.trace("ConnectionConsumer run() exiting"); } | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); outer: while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } b... |
public LocalClusteredQueue(PostOffice office, String nodeId, String name, long id, MessageStore ms, PersistenceManager pm, | public LocalClusteredQueue(PostOffice office, int nodeId, String name, long id, MessageStore ms, PersistenceManager pm, | public LocalClusteredQueue(PostOffice office, String nodeId, String name, long id, MessageStore ms, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, QueuedExecutor executor, Filter filter, TransactionRepository tr, ... |
public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); | public abstract Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds); | public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4); |
throws NotImplementedException | public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } | |
return 0; | int height = 0; int n = getRowCount(); Rectangle r = new Rectangle(); for (int i = 0; i < n; i++) { TreePath path = getPathForRow(i); height += getBounds(path, r).height; } return height; | public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } |
public int getPreferredWidth(Rectangle value0) throws NotImplementedException | public int getPreferredWidth(Rectangle rect) { int maximalWidth = 0; Rectangle r = new Rectangle(); int n = getRowCount(); for (int i = 0; i < n; i++) | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } |
return 0; | TreePath path = getPathForRow(i); r.setBounds(0,0,0,0); r = getBounds(path, r); if (r.x + r.width > maximalWidth) maximalWidth = r.x + r.width; invalidatePathBounds(path); } return maximalWidth; | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } |
throws NotImplementedException | protected boolean isFixedRowHeight() throws NotImplementedException { return false; // TODO } | |
invalidateSizes(); | public void setRowHeight(int height) { rowHeight = height; } | |
absVal = relVal * ctx.getPixelsPerDot(); | absVal = relVal * ctx.getDotsPerPixel(); | protected static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, ... |
method.setCompiledCode(new VmCompiledCode(this, bc, nativeCode, null, | method.addCompiledCode(new VmCompiledCode(this, bc, nativeCode, null, | public final void compileBootstrap(VmMethod method, NativeStream os, int level) { int start = os.getLength(); final CompiledMethod cm; final boolean abstractM = method.isAbstract(); if (abstractM) { if (method.isStatic()) { throw new Error("Abstract & static"); } ... |
u.p("filling background: " + block.background_color + " " + block); | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | |
Shape oldclip = c.getGraphics().getClip(); c.getGraphics().setClip(left_insets, top_insets, back_width, back_height); | Rectangle oldclip = (Rectangle)c.getGraphics().getClip(); Rectangle new_clip = new Rectangle(left_insets, top_insets, back_width, back_height); c.getGraphics().setClip(oldclip.createIntersection(new_clip)); | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... |
u.off(); | public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc... | |
Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption", new ColorUIResource(0, 0, 128), "activeCaptionBorder", new ColorUIResource(Color.light... | String[] defaultColors = new String[] { "activeCaption", "#000080", "activeCaptionBorder", "#C0C0C0", "activeCaptionText", "#FFFFFF", "control", "#C0C0C0", "controlDkShadow", "#000000", "controlHighlight", "#C0C0C0", "controlLtHighlight", "#FFFFFF", "controlShadow", "#808080", "controlText", "#000000", "desktop", "#005... | protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... |
defaults.putDefaults(uiDefaults); | loadSystemColors(defaults, defaultColors, isNativeLookAndFeel()); | protected void initSystemColorDefaults(UIDefaults defaults) { Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption",... |
throws NotImplementedException | protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) throws NotImplementedException { // TODO } | |
if (useNative) { defaults.put("activeCaption", new ColorUIResource(SystemColor.ACTIVE_CAPTION)); defaults.put("activeCaptionBorder", new ColorUIResource(SystemColor.ACTIVE_CAPTION_BORDER)); defaults.put("activeCaptionText", new ColorUIResource(SystemColor.ACTIVE_CAPTION_TEXT)); defaults.put("control", new ColorUIResour... | protected void loadSystemColors(UIDefaults defaults, String[] systemColors, boolean useNative) throws NotImplementedException { // TODO } | |
if (log.isTraceEnabled()) { log.trace(createMessage + " succeeded"); } | if (trace) { log.trace(createMessage + " succeeded"); } | protected void createSchema() throws Exception { Connection conn = null; TransactionWrapper tx = new TransactionWrapper(); try { conn = ds.getConnection(); try { conn.createStatement().executeUpdate(createMessage); if (log.isTraceEnabled())... |
rs.getInt(5), | rs.getByte(5), | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... |
rs.getInt(9), | rs.getByte(9), | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... |
rs.getString(16), | rs.getInt(16), | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... |
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(selectMessage, messageID) + " selected " + count + " row(s)"); } | if (trace) { log.trace(JDBCUtil.statementToString(selectMessage, messageID) + " selected " + count + " row(s)"); } | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... |
if (log.isTraceEnabled()) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), m.getMessageID()) + " executed successfully"); } | if (trace) { log.trace(JDBCUtil.statementToString(updateReferenceCount, new Integer(referenceCount), m.getMessageID()) + " executed successfully"); } | public Message getMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn = ds.getConne... |
if (c.isOpaque() && UIManager.get(getPropertyPrefix() + "gradient") != null) | AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.getBackground() instanceof UIResource && b.isContentAreaFilled() && b.isEnabled() && ! m.isArmed() && ! m.isPressed() && UIManager.get(getPropertyPrefix() + "gradient") != null) | public void update(Graphics g, JComponent c) { if (c.isOpaque() && UIManager.get(getPropertyPrefix() + "gradient") != null) { MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, getPropertyPrefix() + "g... |
int determineNumLines() | void determineNumLines() | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... |
return 0; | return; | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... |
i ++; | break; | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... |
return numLines; | int determineNumLines() { numLines = 0; int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | |
if (pos >= currLineStart && pos < currLineEnd || pos == end - 1) | if (pos >= currLineStart && pos < currLineEnd) | public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.hei... |
updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.getDisabledTextColor(); selectedColor = Color.WHITE; | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | |
int lineHeight = metrics.getHeight(); | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo... | |
int newNumLines = determineNumLines(); if (numLines != newNumLines) { numLines = newNumLines; getContainer().repaint(); } | int oldNumLines = numLines; determineNumLines(); if (numLines != oldNumLines) preferenceChanged(this, false, true); | void updateDamage (Rectangle a) { int newNumLines = determineNumLines(); if (numLines != newNumLines) { numLines = newNumLines; getContainer().repaint(); } else getContainer().repaint(a.x, a.y, a.width, a.height); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.