rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void columnAdded(TableColumnModelEvent event); | void columnAdded(TableColumnModelEvent event); | public void columnAdded(TableColumnModelEvent event); |
public void columnMoved(TableColumnModelEvent event); | void columnMoved(TableColumnModelEvent event); | public void columnMoved(TableColumnModelEvent event); |
public void columnRemoved(TableColumnModelEvent event); | void columnRemoved(TableColumnModelEvent event); | public void columnRemoved(TableColumnModelEvent event); |
return 0; | int i = 0; int runningTotal = 0; while (i < sizes.length && position >= runningTotal + sizes[i]) { runningTotal += sizes[i]; i++; } return i; | public int getIndex(int position) { return 0; // TODO } |
int[] array; int index; array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index]; return array; | return (int[]) sizes.clone(); | public int[] getSizes() { int[] array; int index; // Create new array. array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index]; // Return newly created array. return array; } |
int[] array; int index; int arrayIndex; int loop; array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; loop++) { array[arrayIndex] = value; arrayIndex++; } } else { array[arrayIndex] = sizes[index]; arrayIndex++; }... | int[] newSizes = new int[sizes.length + length]; System.arraycopy(sizes, 0, newSizes, 0, start); for (int i = start; i < start + length; i++) newSizes[i] = value; System.arraycopy(sizes, start, newSizes, start + length, sizes.length - start); sizes = newSizes; | public void insertEntries(int start, int length, int value) { int[] array; int index; int arrayIndex; int loop; // Create new array. array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { f... |
int[] array; int index; int arrayIndex; | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | |
array = new int[sizes.length - length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) index += length - 1; else { array[arrayIndex] = sizes[index]; arrayIndex++; | int[] newSizes = new int[sizes.length - length]; System.arraycopy(sizes, 0, newSizes, 0, start); System.arraycopy(sizes, start + length, newSizes, start, sizes.length - start - length); sizes = newSizes; | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... |
} } | public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex; // Sanity check. if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); // Cr... | |
if (index >= 0 && index < sizes.length) | public void setSize(int index, int size) { sizes[index] = size; } | |
int index; this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) this.sizes[index] = sizes[index]; | this.sizes = (int[]) sizes.clone(); | public void setSizes(int[] sizes) { int index; // Initialize sizes. this.sizes = new int[sizes.length]; for (index = 0; index < sizes.length; index++) this.sizes[index] = sizes[index]; } |
queue = (Queue)initialContext.lookup("/queue/Queue"); drainDestination(cf, queue); | queue = (Queue)initialContext.lookup("/queue/Queue"); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (QueueConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerMan... |
PersistenceManager pm) | PersistenceManager pm, boolean acceptReliableMessages) | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... |
if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } | if (log.isTraceEnabled()) { log.trace("creating " + (pm != null ? "recoverable " : "non-recoverable ") + "channel[" + channelID + "]"); } | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... |
state = new UnreliableState(this); | state = new NonRecoverableState(this, acceptReliableMessages); | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... |
state = new ReliableState(this, pm); | state = new RecoverableState(this, pm); | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm) { if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } this.channelID = channelID; this.ms = ms; ... |
acknowledgeNoTx(d); | if (tx == null) { acknowledgeNoTx(d); return; } if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } try { state.remove(d, tx); } catch (Throwable t) { log.error("Failed to remove delivery " + d + " from state", t); } | public void acknowledge(Delivery d, Transaction tx) { acknowledgeNoTx(d); } |
return state.browse(null); | return browse(null); | public List browse() { return state.browse(null); } |
if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } | if (log.isTraceEnabled()){ log.trace("attempting to deliver channel's " + this + " messages"); } | public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } List messages = state.undelivered(null); if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } for(Iterator i = messages.iterator(); i.hasNext(); ) {... |
if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } | public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver messages"); } List messages = state.undelivered(null); if (log.isTraceEnabled()){ log.trace("there are " + messages.size() + " messages to deliver"); } for(Iterator i = messages.iterator(); i.hasNext(); ) {... | |
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { | public final Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } return handleNoTx(sender, r); } |
return handleNoTx(sender, r); | if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); if (tx == null) { return handleNoTx(sender, r); } if (log.isTraceEnabled()){ log.trace("adding " + ref + " to state " + (tx == null ? "non-transactionally... | public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } return handleNoTx(sender, r); } |
if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } | private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... | |
if (r.isReliable() && !state.acceptReliableMessages()) { log.error("Cannot handle reliable message " + r + " because the channel has a non-recoverable state!"); return null; } if (log.isTraceEnabled()){ log.trace("handling non-transactionally " + r); } | private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... | |
if (log.isTraceEnabled()){ log.trace("Added state"); } | if (log.isTraceEnabled()){ log.trace("adding reference to state successful"); } | private Delivery handleNoTx(DeliveryObserver sender, Routable r) { checkClosed(); if (log.isTraceEnabled()){ log.trace("handling non transactionally " + r); } if (r == null) { return null; } MessageReference ref = ref(r); Set deliveries = router.handle(this, ref, nu... |
sessionEndpoint.sendMessage(m); | sessionEndpoint.connectionEndpoint.sendMessage(m); | public void send(Message m) throws JMSException { if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); } sessionEndpoint.sendMessage(m); } |
switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { ((Component)component).paint(g); } } break; | final int id = event.getID(); switch (id) { case PaintEvent.PAINT: | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... |
((Component)component).update(g); | if (id == PaintEvent.PAINT) { ((Component)component).paint(g); } else { ((Component)component).update(g); } | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... |
g.dispose(); | public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { final Graphics g = jComponent.getGraphics(); if (g != null) { //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ... | |
List contentList = box.getContent().getContent(c); | List contentList = box.getContent().getChildContent(c); | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... |
Iterator contentIterator = contentList.iterator(); | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... | |
while (contentIterator.hasNext()) { Object o = contentIterator.next(); | while (contentList.size() > 0) { Object o = contentList.get(0); contentList.remove(0); | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getContent(c); if (contentList.size() == 0) retu... |
public abstract BigInteger getCrtCoefficient(); | BigInteger getCrtCoefficient(); | public abstract BigInteger getCrtCoefficient(); |
public abstract BigInteger getPrimeExponentP(); | BigInteger getPrimeExponentP(); | public abstract BigInteger getPrimeExponentP(); |
public abstract BigInteger getPrimeExponentQ(); | BigInteger getPrimeExponentQ(); | public abstract BigInteger getPrimeExponentQ(); |
public abstract BigInteger getPrimeP(); | BigInteger getPrimeP(); | public abstract BigInteger getPrimeP(); |
public abstract BigInteger getPrimeQ(); | BigInteger getPrimeQ(); | public abstract BigInteger getPrimeQ(); |
public abstract BigInteger getPublicExponent(); | BigInteger getPublicExponent(); | public abstract BigInteger getPublicExponent(); |
s = Integer.toString(c.getCurrentPage() + 1); | s = Integer.toString(c.getPageNo() + 1); | public void setPageCounterValue(RenderingContext c) { String s = null; switch (this.pageCounterType) { case PAGE_COUNTER_PAGE: s = Integer.toString(c.getCurrentPage() + 1); break; case PAGE_COUNTER_PAGES: s = Integer.toString(c.getPage... |
current = graph.toScreen(port.getLocation(null)); | current = graph.toScreen(port.getLocation()); | public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa... |
start = graph.toScreen(port.getLocation(null)); | start = graph.toScreen(port.getLocation()); | public void mousePressed(final MouseEvent e) { // If Right Mouse Button if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // if(e.isPopupTrigger()) { // Scale From Screen to Model //Point loc = fromScreen(e.getPoint()); // Find Cell in Model Coordinates Object cell = g... |
} | public void mousePressed(final MouseEvent e) { // If Right Mouse Button if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // if(e.isPopupTrigger()) { // Scale From Screen to Model //Point loc = fromScreen(e.getPoint()); // Find Cell in Model Coordinates Object cell = g... | |
MessageIdGeneratorFactory.instance.clear(); | public static synchronized void start(String config) throws Exception { create(); if (isLocal()) { log.info("IN-VM TEST"); } else { log.info("REMOTE TEST"); } server.start(config); log.debug("server started"); } | |
short type = guessType(initialValue); | short type = ValueConstants.guessType(initialValue); | private FSDerivedValue valueByName(CSSName cssName) { FSDerivedValue val = _derivedValuesById[cssName.FS_ID]; // but the property may not be defined for this Element if (val == null) { // if it is inheritable (like color) and we are not root, ask our parent // for the valu... |
Component parent = frame.getContentPane(); | Component parent = frame.getLayeredPane(); | private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoi... |
return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); | Dimension max = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null && layout instanceof LayoutManager2) max = ((LayoutManager2) layout).maximumLayoutSize(frame); else max = new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); return max; | public Dimension getMaximumSize(JComponent x) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } |
return internalFrameLayout.minimumLayoutSize(x); | Dimension min = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null) min = layout.minimumLayoutSize(frame); else min = new Dimension(0, 0); return min; | public Dimension getMinimumSize(JComponent x) { return internalFrameLayout.minimumLayoutSize(x); } |
return internalFrameLayout.preferredLayoutSize(x); | Dimension pref = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null) pref = layout.preferredLayoutSize(frame); else pref = new Dimension(100, 100); return pref; | public Dimension getPreferredSize(JComponent x) { return internalFrameLayout.preferredLayoutSize(x); } |
internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); | protected void installDefaults() { LookAndFeel.installBorder(frame, "InternalFrame.border"); frame.setFrameIcon(UIManager.getIcon("InternalFrame.icon")); // InternalFrames are invisible by default. frame.setVisible(false); } | |
internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); | public void installUI(JComponent c) { if (c instanceof JInternalFrame) { frame = (JInternalFrame) c; internalFrameLayout = createLayoutManager(); frame.setLayout(internalFrameLayout); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(false); frame.getRootPane().ge... | |
frame.setLayout(null); internalFrameLayout = null; | protected void uninstallDefaults() { frame.setBorder(null); } | |
frame.setLayout(null); | public void uninstallUI(JComponent c) { uninstallKeyboardActions(); uninstallComponents(); uninstallListeners(); uninstallDefaults(); frame.setLayout(null); ((JComponent) frame.getRootPane().getGlassPane()).setOpaque(true); frame.getRootPane().getGlassPane().setVisible(false); frame = null; ... | |
modelChanged(); | { setView(create(textComponent.getDocument().getDefaultRootElement())); } | protected void propertyChange(PropertyChangeEvent ev) { JTextArea comp = (JTextArea)getComponent(); if (ev.getPropertyName() == "lineWrap" || ev.getPropertyName() == "wrapStyleWord") modelChanged(); } |
public WrappedPlainView (Element elem, boolean wordWrap) | public WrappedPlainView (Element elem) | public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } |
super (elem, Y_AXIS); this.wordWrap = wordWrap; | this (elem, false); | public WrappedPlainView (Element elem, boolean wordWrap) { super (elem, Y_AXIS); this.wordWrap = wordWrap; } |
super.setUp(); | public void setUp() throws Exception { super.setUp(); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); log.debug("Done setup()"); } | |
initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); | initialContext = new InitialContext(RemoteInitialContextFactory.getJNDIEnvironment()); | public void setUp() throws Exception { super.setUp(); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); log.debug("Done setup()"); } |
ServerManagement.deInit(); super.tearDown(); | public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | |
ConnectionState state = (ConnectionState)((DelegateSupport)cd).getState(); if(trace) { log.trace(this + " registering " + listener + " on " + cd); } state.getRemotingConnection().getInvokingClient().addConnectionListener(listener); | ((ConnectionState)((DelegateSupport)cd).getState()). getRemotingConnectionListener().addDelegateListener(listener); | public Object handleCreateConnectionDelegate(Invocation invocation) throws Throwable { // maintain the identity of the delegate that sends invocation through this aspect, for // logging purposes. It makes sense, since it's an PER_INSTANCE aspect. if (id == null) { id = DelegateIdentity.... |
Object execute(); | JobResult execute(); | Object execute(); |
ms2 = new PagingMessageStore("s45"); | ms2 = new SimpleMessageStore("s45"); | public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new PagingMessageStore("s45"); ms3 = new PagingMess... |
ms3 = new PagingMessageStore("s46"); | ms3 = new SimpleMessageStore("s46"); | public void setUp() throws Exception { super.setUp(); channel = new DistributedQueue("test", ms, dispatcher); PersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); pm.start(); ms2 = new PagingMessageStore("s45"); ms3 = new PagingMess... |
throw new IllegalStateException("Cannot update queue stats for current node"); | throw new IllegalStateException("Received stats from node with id that matches this nodes id. You may have started two or more nodes with the same node id!"); | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
throw new IllegalStateException("Cannot find binding for queue name: " + st.getQueueName()); | if (trace) { log.trace(this.nodeId + " cannot find binding for queue " + st.getQueueName() + " it could have been unbound"); } | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
RemoteQueueStub stub = (RemoteQueueStub)bb.getQueue(); stub.setStats(st); if (trace) { log.trace(this.nodeId + " setting stats: " + st + " on remote stub " + stub.getName()); } ClusterRouter router = (ClusterRouter)routerMap.get(st.getQueueName()); LocalClusteredQueue localQueue = router.getLocalQueue(); if (loc... | else { RemoteQueueStub stub = (RemoteQueueStub)bb.getQueue(); | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
if (trace) { log.trace(this.nodeId + " recalculated pull queue for queue " + st.getQueueName() + " to be " + toQueue); } | stub.setStats(st); | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
if (toQueue != null) { localQueue.setPullInfo(toQueue, pullSize); | if (trace) { log.trace(this.nodeId + " setting stats: " + st + " on remote stub " + stub.getName()); } ClusterRouter router = (ClusterRouter)routerMap.get(st.getQueueName()); LocalClusteredQueue localQueue = router.getLocalQueue(); if (localQueue != null) { RemoteQueueStub toQueue = (RemoteQueueStub)messagePullPol... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
localQueue.deliver(false); if (trace) { log.trace(this.nodeId + " triggered delivery for " + localQueue.getName()); } } } | if (trace) { log.trace(this.nodeId + " recalculated pull queue for queue " + st.getQueueName() + " to be " + toQueue); } if (toQueue != null) { localQueue.setPullInfo(toQueue, pullSize); localQueue.deliver(false); if (trace) { log.trace(this.nodeId + " triggered delivery for " + localQueue.getName()); } } } } | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); if (trace) { log.trace(this.nodeId + " updating queue stats from node " + nodeId + " stats size: " + statsList.size()); } try { if (nodeId == this.nodeId) { ... |
String serverID = cfd.getServerID(); | int serverID = cfd.getServerID(); | public Object handleCreateConnectionDelegate(Invocation inv) throws Throwable { ClientConnectionFactoryDelegate cfd = (ClientConnectionFactoryDelegate)inv.getTargetObject(); ClientConnectionDelegate connectionDelegate = (ClientConnectionDelegate)inv.invokeNext(); connectionDelegate.init(); Stri... |
return "JFrame"; | return super.paramString(); | protected String paramString() { return "JFrame"; } |
root.layout_context.stopRendering(); | if(root.layout_context != null) { root.layout_context.stopRendering(); } | private void doRelayout(ReflowEvent evt) throws InterruptedException{ // if layout is already in progress if (root.layoutInProgress) { // Uu.p("layout already in progress. stopping for" + evt); root.layout_context.stopRendering(); while (root.layoutInProgress) { ... |
if (index >= 0) { String historic = (String) history.get(index); if (historic.equals(baseUrl)) return; } index++; for (int i = index; i < history.size(); history.remove(i)) ; history.add(index, baseUrl); | public void setBaseURL(String url) { baseUrl = resolveURI(url); } | |
return calcSize(target, MAX); | return new Dimension (Integer.MAX_VALUE, Integer.MAX_VALUE); | public Dimension maximumLayoutSize(Container target) { return calcSize(target, MAX); } |
if (log.isDebugEnabled()) { try { c.descriptor = load(c.wfName); } catch (FactoryException e) { throw e; } catch (Exception e) { throw new FactoryException("Error loading workflow", e); } | try { c.descriptor = load(c.wfName); } catch (FactoryException e) { throw e; } catch (Exception e) { throw new FactoryException("Error loading workflow", e); | public WorkflowDescriptor getWorkflow(String name) throws FactoryException { WfConfig c = (WfConfig) workflows.get(name); if (c == null) { throw new RuntimeException("Unknown workflow name \"" + name + "\""); } if (log.isDebugEnabled()) { log.debug("getWorkflow " + ... |
public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashIndex)); } else { Message.warn("configuration u... | public void setConfigurationVariables(File configurationFile) { try { setVariable("ivy.conf.dir", new File(configurationFile.getAbsolutePath()).getParent()); setVariable("ivy.conf.file", configurationFile.getAbsolutePath()); setVariable("ivy.conf.url", configurationFile.toURL().toExternalForm()); } catch (MalformedURLE... | public void setConfigurationVariables(URL configurationURL) { String confURL = configurationURL.toExternalForm(); setVariable("ivy.conf.url", confURL); int slashIndex = confURL.lastIndexOf('/'); if (slashIndex != -1) { setVariable("ivy.conf.dir", confURL.substring(0, slashInde... |
0, | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossStreamMessage m = new JBossStreamMessage(i, reliable, ... | |
observer.acknowledge(this, tx); | public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | |
observer.acknowledge(this, tx); | public synchronized void acknowledge(Transaction tx) throws Throwable { // deals with the race condition when acknowledgment arrives before the delivery // is returned back to the sending delivery observer if (tx == null) { //TODO Why don't we set done to true if the ack is transactiona... | |
public synchronized boolean cancel() throws Throwable | public synchronized void cancel() throws Throwable | public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } |
observer.cancel(this); | public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | |
return observer.cancel(this); | public synchronized boolean cancel() throws Throwable { // deals with the race condition when cancellation arrives before the delivery // is returned back to the sending delivery observer cancelled = true; return observer.cancel(this); } | |
MarkerData markerData = c.getCurrentMarkerData(); if (markerData != null && box.getStyle().getCalculatedStyle().isIdent( CSSName.LIST_STYLE_POSITION, IdentValue.INSIDE)) { remainingWidth -= markerData.getLayoutWidth(); currentLine.x += markerData.getLayoutWidth(); } | public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin... | |
StrutMetrics strutMetrics = maybeSaveStrutMetrics(c, container, strutLM, measurements); | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... | |
if (strutMetrics != null) { strutMetrics.setBaseline(strutMetrics.getBaseline() - vaContext.getInlineTop()); } | } if (c.getCurrentMarkerData() != null) { StrutMetrics strutMetrics = c.getCurrentMarkerData().getStructMetrics(); strutMetrics.setBaseline(measurements.getBaseline() - vaContext.getInlineTop()); c.getCurrentMarkerData().setReferenceLine(current); c.setCurrentMarkerData(null); | private static void positionVertically(LayoutContext c, Box container, LineBox current) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignContext vaContext = new VerticalAlignCo... |
"FileChooserUI", "javax.swing.plaf.metal.MetalFileChooserUI", | protected void initClassDefaults(UIDefaults defaults) { super.initClassDefaults(defaults); // Variables Object[] uiDefaults; // Initialize Class Defaults uiDefaults = new Object[] { "ButtonUI", "javax.swing.plaf.metal.MetalButtonUI", "CheckBoxUI", "javax.swing.plaf.metal.MetalCheckBoxUI", ... | |
"MenuItem.arrowIcon", MetalIconFactory.getMenuItemArrowIcon(), | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get... | |
root.paint(c); | root.paint(c, 0, 0); | protected void executeRenderThread(RenderingContext c, Layer root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof Pri... |
root.paint(c); | root.paint(c, 0, 0); | public void paintPage(Graphics2D g, int page) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } RenderingContext c = newRenderingContext(getPageInfo(), (Graphics2D) g); PageInfo info = c.getPageInfo(); Borde... |
root.paint(c); | root.paint(c, 0, 0); | private void renderPagedView(RenderingContext c, Layer root) { int pageCount = getPageCount(sharedContext); setPreferredSize(new Dimension(sharedContext.getMaxWidth(), (int) (pageCount * c.getPageInfo().getContentHeight() + pageCount * c.getPageInfo().getMargins().top + ... |
return new Vector().elements(); } | Vector v = new Vector(); v.add("JMSXGroupID"); v.add("JMSXGroupSeq"); return v.elements(); } | public Enumeration getJMSXPropertyNames() throws JMSException { //TODO return new Vector().elements(); } |
if (log.isTraceEnabled()) { log.trace("closed"); } | protected synchronized void closed() throws Throwable { state = CLOSED; } | |
if (log.isTraceEnabled()) { log.trace(methodName + " " + ((JMSMethodInvocation)invocation).getHandler().getDelegateID()); } | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... | |
{ if (log.isTraceEnabled()) { log.trace("Closing..."); } | { | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); boolean isClosing = methodName.equals("closing"); boolean isClose = methodName.equals("close"); if (isClosing) { if (checkC... |
public String getNodeId() | public int getNodeId() | public String getNodeId() { // TODO Auto-generated method stub return null; } |
return null; | return -1; | public String getNodeId() { // TODO Auto-generated method stub return null; } |
public java.math.BigInteger getModulus(); | BigInteger getModulus(); | public java.math.BigInteger getModulus(); |
g.drawString(text, insets.left + 5, fm.getAscent() + 4); | Rectangle textR = new Rectangle(); text = SwingUtilities.layoutCompoundLabel(fm, text, null, SwingConstants.TOP, SwingConstants.LEFT, SwingConstants.CENTER, SwingConstants.RIGHT, innerArea, new Rectangle(), textR, 0); int yAdj = (textR.height - fm.getAscent()) / 2 + 1; g.setFont(comboBox.getFont()); g.drawString(text, ... | public void paintComponent(Graphics g) { if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String te... |
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) | void addAsfMessage(Message m, int consumerID, ConsumerDelegate cons) | void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } |
delegate.addAsfMessage(m, receiverID, cons); | delegate.addAsfMessage(m, consumerID, cons); | void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { delegate.addAsfMessage(m, receiverID, cons); } |
d.width = d.width + arrowIcon.getIconWidth() + defaultTextIconGap; | d.width = d.width + arrowIcon.getIconWidth() + defaultTextArrowIconGap; | protected Dimension getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Dimension d = BasicGraphicsUtils.getPreferredButtonSize(m, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.