rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void paintFixed( Context c, BlockBox block ) { | public void paintFixed( Context c, Box block ) { | public void paintFixed( Context c, BlockBox block ) { int xoff = 0; int yoff = 0; xoff = c.canvas.getWidth(); yoff = c.canvas.getHeight(); if ( block.right_set ) { xoff = xoff - block.width; } if ( block.bottom_set ) { //joshy: this should reall... |
public void paintNormal( Context c, BlockBox block ) { | public void paintNormal( Context c, Box block ) { | public void paintNormal( Context c, BlockBox block ) { paintBackground( c, block ); c.translateInsets( block ); paintComponent( c, block ); paintChildren( c, block ); c.untranslateInsets( block ); paintBorder( c, block ); } |
public void paintRelative( Context ctx, BlockBox block ) { | public void paintRelative( Context ctx, Box block ) { | public void paintRelative( Context ctx, BlockBox block ) { ctx.getGraphics().translate( block.left, block.top ); paintNormal( ctx, block ); ctx.getGraphics().translate( -block.left, -block.top ); } |
public List query(WorkflowQuery query) throws WorkflowException { | public List query(WorkflowExpressionQuery query) throws WorkflowException { | public List query(WorkflowQuery query) throws WorkflowException { try { return wf.query(query); } catch (RemoteException e) { log.error("Error querying", e); throw new WorkflowException(e); } } |
ResultLayout(Point2D labelPosition, float lineWidth, int color) | ResultLayout(Point2D labelPosition, float lineWidth, int color, int from, int to) | ResultLayout(Point2D labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = labelPosition; this.lineWidth = lineWidth; this.color = color; } |
this.from = from; this.to = to; | ResultLayout(Point2D labelPosition, float lineWidth, int color) { if(labelPosition != null) this.labelPosition = labelPosition; this.lineWidth = lineWidth; this.color = color; } | |
if (log.isTraceEnabled()) { log.trace("Attempting to create ServerConsumerDelegate with noLocal:" + noLocal); } | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if (log.... | |
if (log.isTraceEnabled()) { log.trace("Creating ServerConsumerDelegate for dest:" + d.getName() + " selector:" + selector + " noLocal:" + noLocal + " subName:" + subscriptionName); } | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { if (log.... | |
ms = new PagingMessageStore("s9"); | ms = new SimpleMessageStore("s9"); | public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("s9"); ms2 = new PagingMessageStore("s10"); log.debug("setup done"); } |
ms2 = new PagingMessageStore("s10"); | ms2 = new SimpleMessageStore("s10"); | public void setUp() throws Exception { super.setUp(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms = new PagingMessageStore("s9"); ms2 = new PagingMessageStore("s10"); log.debug("setup done"); } |
if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo + " is not between 1 " + | if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo + " is not between 0 " + | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... |
PageBox page = (PageBox)root.getPages().get(pageNo-1); | PageBox page = (PageBox)root.getPages().get(pageNo); | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... |
int leftMBP = page.getStyle().getMarginBorderPadding(c, CalculatedStyle.LEFT); int topMBP = page.getStyle().getMarginBorderPadding(c, CalculatedStyle.TOP); g.translate(0, -page.getTop()); g.translate(leftMBP, topMBP); g.clipRect(0, page.getTop(), page.getContentWidth(c), page.getContentHeight(c)); | Rectangle content = page.getPrintingClippingBounds(c); g.clip(content); g.translate(0, -page.getPaintingTop()); | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... |
g.translate(-leftMBP, -topMBP); g.translate(0, page.getTop()); | g.translate(0, page.getPaintingTop()); g.setClip(working); page.paintAlternateFlows(c, root, 0); page.paintBorder(c, 0); | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... |
if (working.intersects(overall)) { | Rectangle bounds = new Rectangle(overall); bounds.width += 1; bounds.height += 1; if (working.intersects(bounds)) { | 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), ... |
Rectangle content = page.getContentClippingBounds(c, PAGE_PAINTING_CLEARANCE); | Rectangle content = page.getPagedViewClippingBounds(c, PAGE_PAINTING_CLEARANCE); | 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), ... |
if (trace) { log.trace("Retrieved nex block of size " + bigBlockSize + " from pm starting at " + nextBlock); } | if (trace) { log.trace("Retrieved next block of size " + bigBlockSize + " from pm starting at " + nextBlock); } | protected void getNextBigBlock() throws Exception { nextBlock = pm.reserveIDBlock(counterName, bigBlockSize); if (trace) { log.trace("Retrieved nex block of size " + bigBlockSize + " from pm starting at " + nextBlock); } high = nextBlock + bigBlockSize - 1; } |
ic.rebind("java:/" + CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind("java:/" + XACONNECTION_FACTORY_JNDI_NAME, cf); log.info("Bound connection factory to jndi names: " + CONNECTION_FACTORY_JNDI_NAME + " and " + XACONNECTION_FACTORY_JNDI_NAME); | private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... | |
Context jmsContext = JNDIUtil.createContext(ic, "jms"); | Context jmsContext = null; try { jmsContext = (Context)ic.lookup("jms"); } catch (Exception ignore) { } if (jmsContext == null) { jmsContext = ic.createSubcontext("jms"); } | private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... |
if (log.isTraceEnabled()) { log.trace("Invoked server"); } | public Object invoke(Invocation invocation) throws Throwable { // look for a Client, it's possible that it has been created already Client client = (Client)invocation.getMetaData(REMOTING, CLIENT); if (client == null) { InvokerLocator locator = (InvokerLocator)invocation.getMetaData(REM... | |
if (ContentUtil.mayHaveFirstLine(_style)) { | c.pushStyle(_style); if (ContentUtil.mayHaveFirstLine(c.getCurrentStyle())) { | protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... |
if (ContentUtil.mayHaveFirstLetter(_style)) { | if (ContentUtil.mayHaveFirstLetter(c.getCurrentStyle())) { | protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... |
c.popStyle(); | protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... | |
TableRowContent() { _elem = null; _style = null; _children = new LinkedList(); | TableRowContent(Element e, CascadedStyle style) { _elem = e; _style = style; _children = null; | TableRowContent() { _elem = null; _style = null; _children = new LinkedList(); } |
throws NamingException | public String getLinkName () { StringRefAddr sra = (StringRefAddr) get (0); return (String) sra.getContent (); } | |
throw new JBossJMSException(contextName + " is already bound " + | throw new MessagingJMSException(contextName + " is already bound " + | private void createContext(String contextName) throws Exception { Object context = null; try { context = initialContext.lookup(contextName); if (!(context instanceof Context)) { throw new JBossJMSException(contextName + " is already bound " + ... |
throw new JBossJMSException("JNDI failure", e); | throw new MessagingJMSException("JNDI failure", e); | public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { String parentContext; String jndiNameInContext; if (jndiName == null) { parentContext = isQueue ? ... |
throw new JBossJMSException("JNDI failure", e); | throw new MessagingJMSException("JNDI failure", e); | public void unregisterDestination(boolean isQueue, String name) throws JMSException { String jndiName = null; if (isQueue) { jndiName = (String)queueNameToJNDI.remove(name); } else { jndiName = (String)topicNameToJNDI.remove(name); } if (jndiName == null) ... |
consumers = new ConcurrentReaderHashMap(); | ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password) { this.serverPeer = serverPeer; channelMapper = serverPeer.getChannelMapperDelegate(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository(); cm =... | |
if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } | if (trace) { log.trace(this + " processing acknowledge for message " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... |
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); | ServerConsumerEndpoint consumer = getConsumerEndpoint(consumerID); | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... |
throw new IllegalStateException("Cannot find consumer:" + consumerID); | throw new IllegalStateException("Cannot find consumer " + consumerID); | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... |
ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); | if (trace) { log.trace(this + " processing cancel for message " + messageID + " from consumer " + consumerID); } ServerConsumerEndpoint consumer = getConsumerEndpoint(consumerID); | protected void cancel(long messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.ca... |
throw new IllegalStateException("Cannot find consumer:" + consumerID); | throw new IllegalStateException("Cannot find consumer " + consumerID); | protected void cancel(long messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.ca... |
Iterator iter = new HashSet(sessions.values()).iterator(); while (iter.hasNext()) | for(Iterator i = new HashSet(sessions.values()).iterator(); i.hasNext(); ) | public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already... |
ServerSessionEndpoint sess = (ServerSessionEndpoint)iter.next(); | ServerSessionEndpoint sess = (ServerSessionEndpoint)i.next(); for(Iterator j = sess.getConsumerEndpointIDs().iterator(); j.hasNext(); ) { Integer consumerID = (Integer)j.next(); serverPeer.removeConsumerEndpoint(consumerID); } | public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already... |
iter = temporaryDestinations.iterator(); while (iter.hasNext()) | for(Iterator i = temporaryDestinations.iterator(); i.hasNext(); ) | public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already... |
JBossDestination dest = (JBossDestination)iter.next(); | JBossDestination dest = (JBossDestination)i.next(); | public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already... |
consumers.clear(); | public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is already... | |
if (trace) { log.trace("One phase rollback request received"); } | if (trace) { log.trace("one phase rollback request received"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
if (trace) { log.trace("Two phase commit prepare request received"); } | if (trace) { log.trace("two phase commit prepare request received"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
if (trace) { log.trace("Two phase commit commit request received"); } | if (trace) { log.trace("two phase commit commit request received"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
if (trace) { log.trace("Two phase commit rollback request received"); } | if (trace) { log.trace("two phase commit rollback request received"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
if (trace) { log.trace("Request processed ok"); } | if (trace) { log.trace("request processed ok"); } | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... |
super.drainDestination(cf, queue); super.drainDestination(cf, queue2); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.dep... | |
log.info("sent messages"); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
log.info("received message:" + r1); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
log.info("closed consumer"); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
log.info("trying to receive"); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
log.info("Received r2:" + r2); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
log.info("Received r3:" + r3); | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | |
u.p("set height to: " + block.height); | private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ... | |
if (trace) { log.trace(this + " incrementing delivery count for " + del); } | protected void deliverInternal() throws Throwable { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (... | |
for(Iterator i = messageHolders.iterator(); i.hasNext(); ) | if (messageHolders == null) | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... |
sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) | sb.append("EMPTY"); } else { for(Iterator i = messageHolders.iterator(); i.hasNext(); ) | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... |
sb.append(','); | sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... |
goToPage.setAction(root.actions.goToPage); | public void createActions() { backward.setAction(root.actions.backward); forward.setAction(root.actions.forward); reload.setAction(root.actions.reload); print_preview.setAction(root.actions.print_preview); url.setAction(root.actions.load); updateButtons(); } | |
c.gridx++; c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 10.0; gbl.setConstraints(url, c); add(url); | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | |
c.ipadx = 0; c.ipady = 0; | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | |
public void init() { | public void init(String startPage) { | public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... |
SharedContext rc = view.getSharedContext(); try { rc.setFontMapping("Fuzz", Font.createFont(Font.TRUETYPE_FONT, new DemoMarker().getClass().getResourceAsStream("/demos/fonts/fuzz.ttf"))); } catch (Exception ex) { Uu.p(ex); } | loadCustomFonts(); | public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... |
setLayout(new BorderLayout()); this.add(scroll, BorderLayout.CENTER); | public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | |
public void loadPage(String url_text) { | public void loadPage(final String url_text) { | public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... |
view.addDocumentListener(this); | view.addDocumentListener(BrowserPanel.this); | public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... |
return new Rectangle(left, top, viewport.width, viewport.height); | return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); | protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } |
return new Rectangle(left, top, viewport.width, viewport.height); | return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); | public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } |
setFocusable(b); | public void setEnabled(boolean b) { // Do nothing if state does not change. if (b == isEnabled()) return; super.setEnabled(b); ButtonModel mod = getModel(); if (mod != null) mod.setEnabled(b); } | |
log.info("Using this url for rmi server lookup " + n); | public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; log.info("Using this url for rmi server lookup " + n); namingDelegate = (NamingD... | |
log.info("remote context for server " + remoteServerIndex + " acquired from rmi:" + n); | public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; log.info("Using this url for rmi server lookup " + n); namingDelegate = (NamingD... | |
sel.append(")"); | sel.append(')'); | private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) { sel.append("SELECT DISTINCT("); // Changed by Anthony on 2 June 2004, to query from OS_CURRENTSTEP instead //sel.append(entryId); sel.append(stepEntryId); sel.append(") FROM "); /... |
String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", " + stepOwner + ", " + stepStartDate + ", " + stepFinishDate + ", " + stepStatus + ", " + stepCaller + ") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"; | String sql = "INSERT INTO " + historyTable + " (" + stepId + ',' + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", " + stepOwner + ", " + stepStartDate + ", " + stepFinishDate + ", " + stepStatus + ", " + stepCaller + ") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"; | public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); | public List query(WorkflowExpressionQuery e) throws StoreException { if (log.isDebugEnabled()) { log.debug("Starting Query"); } | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... |
StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; | Expression expression = e.getExpression(); if (log.isDebugEnabled()) { log.debug("Have all variables"); } | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... |
columnName = buildNested((NestedExpression) expression, sel, values); | NestedExpression nestedExp = (NestedExpression) expression; StringBuffer sel = new StringBuffer(); StringBuffer columns = new StringBuffer(); StringBuffer leftJoin = new StringBuffer(); StringBuffer where = new StringBuffer(); StringBuffer whereComp = new StringBuffer(); StringBuffer orderBy = new StringBuffer(); List... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... |
columnName = buildSimple((FieldExpression) expression, sel, values); | StringBuffer qry; List values = new LinkedList(); qry = new StringBuffer(); String columnName = buildSimple((FieldExpression) expression, qry, values); if (e.getSortOrder() != WorkflowExpressionQuery.SORT_NONE) { qry.append(" ORDER BY "); if (e.getOrderBy() != 0) { String fName = fieldName(e.getOrderBy()); qry.app... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... |
if (query.getSortOrder() != WorkflowExpressionQuery.SORT_NONE) { sel.append(" ORDER BY "); if (query.getOrderBy() != 0) { String fName = fieldName(query.getOrderBy()); if (log.isDebugEnabled()) { log.debug("Found fieldName as: " + fName); } sel.append(fName); String current = sel.toString(); String entry = ... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | |
right = "'" + escape(value.toString()) + "'"; | right = '\'' + escape(value.toString()) + '\''; | private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... |
return "(" + queryWhere(left) + " AND " + queryWhere(right) + ")"; | return '(' + queryWhere(left) + " AND " + queryWhere(right) + ')'; | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... |
return "(" + queryWhere(left) + " OR " + queryWhere(right) + ")"; | return '(' + queryWhere(left) + " OR " + queryWhere(right) + ')'; | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... |
return "(" + queryWhere(left) + " XOR " + queryWhere(right) + ")"; | return '(' + queryWhere(left) + " XOR " + queryWhere(right) + ')'; | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... |
ServerManagement.deInit(); | public void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); ServerManagement.deInit(); super.tearDown(); log.debug("tear down done"); } | |
if (!(box.getContent() instanceof ReplacedContent)) { | if (!(box.getContent() instanceof InlineBlockContent)) { | public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof ReplacedContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { return true; } } return false; } |
private void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { | private void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterator(... |
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { | private boolean 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); // ... |
prev_inline.width += rp; | prev_inline.setWidth( prev_inline.getWidth() + rp); | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... |
SimpleAttributeSet atts = new SimpleAttributeSet(); atts.addAttribute(StyleConstants.ComponentAttribute, component); atts.addAttribute(StyleConstants.NameAttribute, StyleConstants.ComponentElementName); try { getDocument().insertString(getCaret().getDot(), " ", atts); } catch (BadLocationException ex) { AssertionError ... | public void insertComponent(Component component) { // TODO: One space must be inserted here with attributes set to indicate // that the component must be displayed here. Have to figure out the // attributes. } | |
SimpleAttributeSet atts = new SimpleAttributeSet(); atts.addAttribute(StyleConstants.IconAttribute, icon); atts.addAttribute(StyleConstants.NameAttribute, StyleConstants.IconElementName); try { getDocument().insertString(getCaret().getDot(), " ", atts); } catch (BadLocationException ex) { AssertionError err = new Asser... | public void insertIcon(Icon icon) { // TODO: One space must be inserted here with attributes set to indicate // that the icon must be displayed here. Have to figure out the // attributes. } | |
c.getGraphics().translate(-xoff, -yoff); | static void paintFloat(Context c, InlineBox inline, boolean restyle) { restyle = restyle || inline.restyle;//should already have been done, but it can't hurt inline.restyle = false;//reset // Uu.p("painting a float: " + inline); Rectangle oe = c.getExtents(); c.setExtents(new Rect... | |
c.getGraphics().translate(-padX, 0); | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | |
c.getGraphics().translate(-box.x, -box.y); | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because blocks may be in... | |
Border margin = box.getMarginWidth(); | Border margin = box.getStyle().getMarginWidth(); | public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null && !(box... |
MessageReference ref = ms.reference(r); | MessageReference ref; if (r.isReference()) { ref = ms.reference((MessageReference)r); } else { ref = ms.reference((Message)r); } | public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... |
if (d.getReference() == null) { d = new SimpleDelivery(ref, d.isDone()); } | public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | |
ImageIcon ii = new ImageIcon(im.getScaledInstance(setWidth, setHeight, Image.SCALE_FAST), e.getAttribute("alt")); | Image i2 = im.getScaledInstance(setWidth, setHeight, Image.SCALE_FAST); System.out.println("i2 = " + i2); ImageIcon ii = new ImageIcon(i2, e.getAttribute("alt")); | 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; ... |
return null; | return super.getAccessibleStateSet(); | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO } |
return new Icon() | if (menuArrow == null) menuArrow = new Icon() | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(... |
return menuArrow; | public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(... | |
return getMenuArrowIcon(); | if (menuItemArrow == null) menuItemArrow = new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); for (int i = 0; i < 4; i++) g.drawLine(x + i, y + i, x + i, y + 7... | public static Icon getMenuItemArrowIcon() { return getMenuArrowIcon(); } |
{ return 13; } | { return 8; } | public int getIconHeight() { return 13; } |
{ return 13; } | { return 4; } | public int getIconWidth() { return 13; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.