rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); | VmThreadQueueEntry entry, boolean ignorePriority, String caller) { entry.setInUse(this, caller); | protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne... |
entry.next = t; | entry.setNext(t); | protected final VmThreadQueueEntry addToQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry, boolean ignorePriority) { entry.setQueue(this); if (queue == null) { return entry; } else if (ignorePriority) { VmThreadQueueEntry t = queue; while (t.ne... |
protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, | static VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, | protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ... |
entry.resetQueue(this); | entry.setInUse(null, null); | protected final VmThreadQueueEntry removeFromQueue(VmThreadQueueEntry queue, VmThreadQueueEntry entry) { if (queue == null) { return queue; } else if (entry == null) { return queue; } else if (queue == entry) { VmThreadQueueEntry result = entry.next; ... |
public void repaint(long tm, int x, int y, int width, int height) {} | public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); } | public void repaint(long tm, int x, int y, int width, int height) {} |
try { sleep(init_delay); | try { sleep(initialDelay); | public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc... |
sleep(interval); | sleep(delay); | public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc... |
if (verbose) { | if (logTimers) | public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc... |
} ticks++; fireActionPerformed(); | public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc... | |
if (! repeat_ticks) | if (! repeats) | public void run() { running = true; try { sleep(init_delay); while (running) { sleep(interval); if (verbose) { System.out.println("javax.swing.Timer -> clocktick"); } ticks++; fireActionPerformed(); if (! repeat_ticks) break; } running = false; } catc... |
return verbose; | return logTimers; | public static boolean getLogTimers() { return verbose; } |
public void setInitialDelay(int initialDelay) | public void setInitialDelay(int i) | public void setInitialDelay(int initialDelay) { init_delay = initialDelay; } |
init_delay = initialDelay; | initialDelay = i; | public void setInitialDelay(int initialDelay) { init_delay = initialDelay; } |
public static void setLogTimers(boolean flag) | public static void setLogTimers(boolean lt) | public static void setLogTimers(boolean flag) { verbose = flag; } |
verbose = flag; | logTimers = lt; | public static void setLogTimers(boolean flag) { verbose = flag; } |
public PseudoInstructions(final Map labels) { super(labels); | public PseudoInstructions(final Map labels, final Map constants) { super(labels, constants); | public PseudoInstructions(final Map labels) { super(labels); } |
public X86Support(Assembler assembler, List instructions, Map labels) { | public X86Support(Assembler assembler, List instructions, Map labels, Map constants) { | public X86Support(Assembler assembler, List instructions, Map labels) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels)); modules.add(assembler.getPseudo()); } |
modules.add(new X86Core(labels)); | modules.add(new X86Core(labels, constants)); | public X86Support(Assembler assembler, List instructions, Map labels) { this.modules = new ArrayList(); this.assembler = assembler; this.instructions = instructions; this.labels = labels; modules.add(new X86Core(labels)); modules.add(assembler.getPseudo()); } |
"-E", "-w", "-B", "-N", | "-b", | protected Flags runDiff(SourceFile vmFile, SourceFile cpFile, String diffFileName, Map<String, String> packageDiffs) throws IOException, InterruptedException { final String[] cmd = { "diff", //"-b", // Ignore white space change "-E", // Ignore changes due ... |
public void mouseWheelMoved(MouseWheelEvent event) | public void mouseWheelMoved(MouseWheelEvent e) | public void mouseWheelMoved(MouseWheelEvent event) { // TODO: Implement this properly. } |
if (scrollpane.getViewport().getComponentCount() == 0) return; Component target = scrollpane.getViewport().getComponent(0); JScrollBar bar = scrollpane.getVerticalScrollBar(); Scrollable scrollable = (target instanceof Scrollable) ? (Scrollable) target : null; boolean tracksHeight = scrollable != null && scrollable.g... | public void mouseWheelMoved(MouseWheelEvent event) { // TODO: Implement this properly. } | |
sp.getViewport().addChangeListener(viewportChangeListener); | protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont... | |
sp.addMouseWheelListener(mouseWheelListener); | if (containerListener == null) containerListener = new ViewportContainerListener(); JViewport v = sp.getViewport(); v.addChangeListener(viewportChangeListener); v.addContainerListener(containerListener); for (int i = 0; i < v.getComponentCount(); i++) v.getComponent(i).addMouseWheelListener(mouseWheelListener); | protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizont... |
sp.getViewport().removeChangeListener(viewportChangeListener); sp.removeMouseWheelListener(mouseWheelListener); | JViewport v = sp.getViewport(); v.removeChangeListener(viewportChangeListener); v.removeContainerListener(containerListener); for (int i = 0; i < v.getComponentCount(); i++) v.getComponent(i).removeMouseWheelListener(mouseWheelListener); | protected void uninstallListeners(JComponent c) { JScrollPane sp = (JScrollPane) c; sp.removePropertyChangeListener(spPropertyChangeListener); sp.getHorizontalScrollBar().getModel() .removeChangeListener(hsbChangeListener); sp.getVerticalScrollBar().getModel() ... |
status = ABORTED & COMPLETE; | status = ABORTED | COMPLETE; | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ... |
status = ERRORED & COMPLETE; | status = ERRORED | COMPLETE; | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ... |
status = LOADING; | status = 0; | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ... |
return ((status & COMPLETE) != 0); | } return (status & COMPLETE) == 0; | public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height) { if ((flags & ABORT) != 0) status = ABORTED & COMPLETE; else if ((flags & ERROR) != 0) status = ERRORED & COMPLETE; else if ((flags & ALLBITS) != 0) status = COMPLETE; else ... |
target.checkImage(image, e); | int flags = target.checkImage(image, e); e.imageUpdate(image, flags, -1, -1, -1, -1); | public void addImage(Image image, int id) { MediaEntry e = new MediaEntry(); e.id = id; e.image = image; e.next = head; head = e; // Start tracking image status. target.checkImage(image, e); } |
public CloneNotSupportedException() { super(); } | public CloneNotSupportedException() { } | public CloneNotSupportedException() { super(); } |
public void activateFrame(JInternalFrame frame) { | public void activateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } frame.toFront(); | public void activateFrame(JInternalFrame frame) { // TODO } // activateFrame() |
public void beginDraggingFrame(JComponent component) { | public void beginDraggingFrame(JComponent component) { if (component instanceof JDesktopIcon) pane = ((JDesktopIcon) component).getInternalFrame().getDesktopPane(); else pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if (! (pane instanceof JDesktopPa... | public void beginDraggingFrame(JComponent component) { // TODO } // beginDraggingFrame() |
public void beginResizingFrame(JComponent component, int direction) { | public void beginResizingFrame(JComponent component, int direction) { pane = ((JInternalFrame) component).getDesktopPane(); if (pane == null) return; dragCache = component.getBounds(); if (! (pane instanceof JDesktopPane)) currentDragMode = JDesktopPane.LIVE_DRAG_MODE; else currentDragMode = ((JDesktopPane) pane).getD... | public void beginResizingFrame(JComponent component, int direction) { // TODO } // beginResizingFrame() |
public void closeFrame(JInternalFrame frame) { | public void closeFrame(JInternalFrame frame) { Container c = frame.getParent(); frame.doDefaultCloseAction(); if (c != null) { if (frame.isIcon()) c.remove(frame.getDesktopIcon()); else c.remove(frame); c.repaint(); } | public void closeFrame(JInternalFrame frame) { // TODO } // closeFrame() |
public void deactivateFrame(JInternalFrame frame) { | public void deactivateFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); if (p != null) { if (p.getSelectedFrame() == frame) p.setSelectedFrame(null); } else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } | public void deactivateFrame(JInternalFrame frame) { // TODO } // deactivateFrame() |
public void deiconifyFrame(JInternalFrame frame) { | public void deiconifyFrame(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); removeIconFor(frame); c.add(frame); frame.setVisible(true); if (! frame.isSelected()) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.s... | public void deiconifyFrame(JInternalFrame frame) { // TODO } // deiconifyFrame() |
public void dragFrame(JComponent component, int newX, int newY) { | public void dragFrame(JComponent component, int newX, int newY) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { } else { Rectangle b = component.getBounds(); if (component instanceof JDesktopIcon) component.setBounds(newX, newY, b.width, b.height); else setBoundsForFrame((JInternalFrame) component, newX, ne... | public void dragFrame(JComponent component, int newX, int newY) { // TODO } // dragFrame() |
public void endDraggingFrame(JComponent component) { | public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); | public void endDraggingFrame(JComponent component) { // TODO } // endDraggingFrame() |
public void endResizingFrame(JComponent component) { | public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); | public void endResizingFrame(JComponent component) { // TODO } // endResizingFrame() |
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; | protected Rectangle getBoundsForIconOf(JInternalFrame frame) { JDesktopPane desktopPane = frame.getDesktopPane(); Rectangle paneBounds = desktopPane.getBounds(); Insets insets = desktopPane.getInsets(); Dimension pref = frame.getDesktopIcon().getPreferredSize(); if (desktopPane == null) return frame.getDesktopIco... | protected Rectangle getBoundsForIconOf(JInternalFrame frame) { return null; // TODO } // getBoundsForIconOf() |
protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; | protected Rectangle getPreviousBounds(JInternalFrame frame) { return frame.getNormalBounds(); | protected Rectangle getPreviousBounds(JInternalFrame frame) { return null; // TODO } // getPreviousBounds() |
public void iconifyFrame(JInternalFrame frame) { | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } Container c = frame.getParent();... | public void iconifyFrame(JInternalFrame frame) { // TODO } // iconifyFrame() |
public void maximizeFrame(JInternalFrame frame) { | public void maximizeFrame(JInternalFrame frame) { if (frame.isIcon()) return; frame.setNormalBounds(frame.getBounds()); Container p = frame.getParent(); if (p != null) { Rectangle pBounds = p.getBounds(); Insets insets = p.getInsets(); pBounds.width -= insets.left + insets.right; pBounds.height -= insets.top + inse... | public void maximizeFrame(JInternalFrame frame) { // TODO } // maximizeFrame() |
public void minimizeFrame(JInternalFrame frame) { | public void minimizeFrame(JInternalFrame frame) { Rectangle normalBounds = frame.getNormalBounds(); JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(frame); else { try { frame.setSelected(true); } catch (PropertyVetoException e) { } } setBoundsForFrame(frame, normalBounds.x, normalBounds.y,... | public void minimizeFrame(JInternalFrame frame) { // TODO } // minimizeFrame() |
public void openFrame(JInternalFrame frame) { | public void openFrame(JInternalFrame frame) { Container c = frame.getParent(); if (c == null) c = frame.getDesktopIcon().getParent(); if (c == null) return; c.remove(frame.getDesktopIcon()); c.add(frame); frame.setVisible(true); | public void openFrame(JInternalFrame frame) { // TODO } // openFrame() |
protected void removeIconFor(JInternalFrame frame) { | protected void removeIconFor(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); if (c != null && icon != null) c.remove(icon); | protected void removeIconFor(JInternalFrame frame) { // TODO } // removeIconFor() |
int newWidth, int newHeight) { | int newWidth, int newHeight) { dragCache.setBounds(newX, newY, newWidth, newHeight); dragCache = findMinimum(dragCache, component); if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { } else setBoundsForFrame(component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); | public void resizeFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // resizeFrame() |
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { | public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); if (component.getParent() != null) component.getParent().repaint(); else component.repaint(); | public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { // TODO } // setBoundsForFrame() |
protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { | protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { frame.setNormalBounds(rect); | protected void setPreviousBounds(JInternalFrame frame, Rectangle rect) { // TODO } // setPreviousBounds() |
protected void setWasIcon(JInternalFrame frame, Boolean value) { | protected void setWasIcon(JInternalFrame frame, boolean value) { frame.setWasIcon(value, WAS_ICON_ONCE_PROPERTY); | protected void setWasIcon(JInternalFrame frame, Boolean value) { // TODO } // setWasIcon() |
protected boolean wasIcon(JInternalFrame frame) { return false; | protected boolean wasIcon(JInternalFrame frame) { return frame.getWasIcon(); | protected boolean wasIcon(JInternalFrame frame) { return false; // TODO } // wasIcon() |
if (currentTip != null) currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event)); | public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (enterTimer.isRunning()) enterTimer.restart(); } | |
return null; | String result = super.getAccessibleDescription(); if (result == null) result = text; return result; | public String getAccessibleDescription() { return null; } |
return null; | return AccessibleRole.TOOL_TIP; | public AccessibleRole getAccessibleRole() { return null; } |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJToolTip(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } |
return "JToolTip"; | StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tiptext="); if (text != null); sb.append(text); return sb.toString(); | protected String paramString() { return "JToolTip"; } |
firePropertyChange("component", oldValue, c); | public void setComponent(JComponent c) { component = c; } | |
firePropertyChange("tiptext", oldValue, tipText); | public void setTipText(String tipText) { text = tipText; } | |
public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; | public SummedAreaTable(BitSet master, int width, int height) { this.width = width; this.height = height; this.table = new int[width * height]; | public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } |
createTable(src); | createTable(master); | public SummedAreaTable(Raster src) { if (src.getNumBands() != 1) { throw new IllegalArgumentException("src.bands != 1"); } this.width = src.getWidth(); this.height = src.getHeight(); this.table = new float[width * height]; createTable(src); } |
private final void createTable(Raster src) { | private final void createTable(BitSet master) { | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... |
float sum; | int sum; | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... |
sum = 0.0f; | sum = 0; | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... |
for (int i = 0; i < x; i++) { sum += src.getSampleFloat(i, y, 0); | for (int i = 0; i <= x; i++) { if (master.get(y * width + i)) { sum += 1; } | private final void createTable(Raster src) { for (int y = 0; y < height; y++) { final int yOfs = y * width; for (int x = 0; x < width; x++) { float sum; // Start with the sum directly above me if (y > 0) { sum = table[(y - 1) * width + x]; } else { sum = 0.0f; } // Add the sum of the val... |
final float sum_xy = getSum(x, y); final float sum_x2y2 = getSum(x2, y2); final float sum_xy2 = getSum(x, y2); final float sum_x2y = getSum(x2, y); | final int sum_xy = getSum(x, y); final int sum_x2y2 = getSum(x2, y2); final int sum_xy2 = getSum(x, y2); final int sum_x2y = getSum(x2, y); | public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... |
return (sum_x2y2 + sum_xy - (sum_xy2 + sum_x2y)) / (w * h); | return ((float)(sum_x2y2 + sum_xy - (sum_xy2 + sum_x2y))) / ((float)(w * h)); | public final float getIntensity(int x, int y, int w, int h) { if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (x + w > width) { w = Math.max(0, width - x); } if (y + h > height) { h = Math.max(0, height - y); } if ((w <= 0) || (h <= 0)) { return 0.0f; } final int x2 = x + w; fi... |
public final float getSum(int x, int y) { | public final int getSum(int x, int y) { | public final float getSum(int x, int y) { if ((x < 0) || (x >= width)) { throw new IllegalArgumentException("x"); } if ((y < 0) || (y >= height)) { throw new IllegalArgumentException("y"); } return table[y * width + x]; } |
switch(mode) | if(read) | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... |
case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value = READ_WRITE; break; case FileChannelImpl.EXCL: case FileChannelImpl.SYNC: case FileChannelImpl.DSYNC: default: value = null; break; | value = READ; | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... |
log.debug("mode="+mode+" VMOpenMode="+value); | else if(write && !append) { value = WRITE; } else if(write && append) { value = READ_WRITE; } else { throw new IllegalArgumentException("unknown open mode: "+mode); } | public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; switch(mode) { case FileChannelImpl.READ: value = READ; break; case FileChannelImpl.WRITE: value = WRITE; break; case FileChannelImpl.APPEND: value =... |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); button.setFont(defaults.getFont("Button.font")); | public void installDefaults(AbstractButton button) { super.installDefaults(button); } | |
this (null, 0, null, true, null); | this (null, DnDConstants.ACTION_COPY_OR_MOVE, null, true, null); | public DropTarget () { this (null, 0, null, true, null); } |
if (dtl == null) return; if (dtl.equals(this)) throw new IllegalArgumentException(); if (dropTargetListener != null) throw new TooManyListenersException(); | public void addDropTargetListener (DropTargetListener dtl) throws TooManyListenersException { dropTargetListener = dtl; } | |
public void addNotify(java.awt.peer.ComponentPeer peer) | public void addNotify(ComponentPeer p) | public void addNotify(java.awt.peer.ComponentPeer peer) { } |
Component c = component; while (c != null && p instanceof LightweightPeer) { p = c.getPeer(); c = c.getParent(); } if (p instanceof DropTargetPeer) { peer = ((DropTargetPeer) p); peer.addDropTarget(this); } else peer = null; | public void addNotify(java.awt.peer.ComponentPeer peer) { } | |
autoscroller = null; | protected void clearAutoscroll() { } | |
return new DropTarget.DropTargetAutoScroller (c, p); | if (autoscroller == null) autoscroller = new DropTarget.DropTargetAutoScroller (c, p); return autoscroller; | protected DropTarget.DropTargetAutoScroller createDropTargetAutoScroller (Component c, Point p) { return new DropTarget.DropTargetAutoScroller (c, p); } |
return new DropTargetContext (this); | if (dropTargetContext == null) dropTargetContext = new DropTargetContext (this); return dropTargetContext; | protected DropTargetContext createDropTargetContext() { return new DropTargetContext (this); } |
if (dropTargetListener != null) dropTargetListener.dragEnter(dtde); | public void dragEnter(DropTargetDragEvent dtde) { } | |
if (dropTargetListener != null) dropTargetListener.dragExit(dte); | public void dragExit(DropTargetEvent dte) { } | |
if (dropTargetListener != null) dropTargetListener.dragOver(dtde); | public void dragOver(DropTargetDragEvent dtde) { } | |
if (dropTargetListener != null) dropTargetListener.drop(dtde); | public void drop(DropTargetDropEvent dtde) { } | |
if (dropTargetListener != null) dropTargetListener.dropActionChanged(dtde); | public void dropActionChanged(DropTargetDragEvent dtde) { } | |
createDropTargetAutoScroller (component, p); | protected void initializeAutoscrolling(Point p) { } | |
if (dropTargetListener != null) | public void removeDropTargetListener(DropTargetListener dtl) { // FIXME: Do we need to do something with dtl ? dropTargetListener = null; } | |
public void removeNotify(java.awt.peer.ComponentPeer peer) | public void removeNotify(ComponentPeer p) | public void removeNotify(java.awt.peer.ComponentPeer peer) { } |
((DropTargetPeer) peer).removeDropTarget(this); peer = null; p = null; | public void removeNotify(java.awt.peer.ComponentPeer peer) { } | |
if (autoscroller != null) autoscroller.updateLocation(dragCursorLocn); | protected void updateAutoscroll(Point dragCursorLocn) { } | |
if (dstAddr.isBroadcast()) { shouldProcess = true; | if (myAddrInfo != null) { shouldProcess = myAddrInfo.contains(dstAddr); | public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... |
if (myAddrInfo != null) { shouldProcess = myAddrInfo.contains(dstAddr); } else { shouldProcess = !skbuf.getLinkLayerHeader() .getDestinationAddress().isBroadcast(); } | shouldProcess = !skbuf.getLinkLayerHeader() .getDestinationAddress().isBroadcast(); | public void receive(SocketBuffer skbuf, NetDeviceAPI deviceAPI) throws SocketException { // Update statistics stat.ipackets.inc(); // Get IP header final IPv4Header hdr = new IPv4Header(skbuf); if (!hdr.isChecksumOk()) { stat.badsum.inc(); //log.de... |
return addresses.containsKey(address); | Collection c = addresses.values(); IPv4IfAddress ipv4IfAddress; for (Iterator iterator = c.iterator(); iterator.hasNext();) { ipv4IfAddress = (IPv4IfAddress) iterator.next(); if (ipv4IfAddress.matches(address)) { return true; } } return false; | public boolean contains(IPv4Address address) { return addresses.containsKey(address); } |
if (instance == null) | if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSplitPaneUI instance; if (o == null) { | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSplitPaneUI(); return instance; } |
instances.put(component, instance); } else instance = (MetalSplitPaneUI) o; | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSplitPaneUI(); return instance; } | |
Unsafe.debug("Debug-sleep\n"); | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | |
Unsafe.debug("Error-sleep "); Unsafe.debug(descr.getId()); Unsafe.debug('\n'); | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | |
Unsafe.debug("wait-sleep\n"); | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | |
Unsafe.debug("wait-sleep-returns\n"); | public void startSystemPlugins(List descriptors) throws PluginException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(START_SYSTEM_PLUGINS_PERM); } // Resolve all plugins ((PluginRegistryModel) registry).resolveDescript... | |
while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (event != null) { dispatchEvent(event); } } catch (Throwable ex) { ex.printStackTrace(); } } } | while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); KeyboardEvent event = kbInterpreter .interpretScancode(scancode & 0xff); if (event != null) { if ((event.getKeyCode() == KeyEvent.VK_PRINTSCREEN) && event.isKeyPressed() && event.is... | public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } byte scancode = buf.get(0); //Syslog.debug("Interpreting " + scancode); KeyboardEvent event = kbInterpreter.interpretScancode(scancode & 0xff); if (ev... |
listeners.add(l); } | kbListeners.add(l); } | public synchronized void addKeyboardListener(KeyboardListener l) { listeners.add(l); } |
for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event); } if (event.isConsumed()) { break; } } } | for (Iterator i = kbListeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.keyReleased(event); } if (event.isConsumed()) { break; } } } | protected void dispatchEvent(KeyboardEvent event) { //Syslog.debug("Dispatching event to " + listeners.size()); for (Iterator i = listeners.iterator(); i.hasNext();) { KeyboardListener l = (KeyboardListener) i.next(); if (event.isKeyPressed()) { l.keyPressed(event); } else if (event.isKeyReleased()) { l.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.