rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); | Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... |
(10000 * 3600, "Asia/Vladivostok", Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 2000 * 3600); | (10000 * 3600, "Asia/Sakhalin", Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3000 * 3600); timezones0.put("Asia/Sakhalin", tz); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... |
Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 2000 * 3600); | Calendar.OCTOBER, 1, Calendar.SUNDAY, 3000 * 3600, Calendar.MARCH, -1, Calendar.SUNDAY, 3000 * 3600); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... |
Calendar.OCTOBER, 1, Calendar.SUNDAY, 2000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2000 * 3600); | Calendar.OCTOBER, 1, Calendar.SUNDAY, 3000 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 3000 * 3600); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... |
Calendar.OCTOBER, 1, Calendar.SUNDAY, 2750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 2750 * 3600); | Calendar.OCTOBER, 1, Calendar.SUNDAY, 3750 * 3600, Calendar.MARCH, 3, Calendar.SUNDAY, 3750 * 3600); | static synchronized HashMap timezones() { if (timezones0 == null) { HashMap timezones = new HashMap(); timezones0 = timezones; TimeZone tz; // Automatically generated by scripts/timezones.pl // XXX - Should we read this data from a file? tz = new SimpleTimeZone(-11000 * 3600, "MIT"); timezones0.put("MIT... |
return false; | return isValid(); | public boolean getScrollableTracksViewportHeight() { return false; } |
return false; | return isValid(); | public boolean getScrollableTracksViewportWidth() { return false; } |
comp.addNotify(); | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | |
dispatcher.enableEvents (component[i].eventMask); | private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ... | |
if (dispatcher != null | if (eventTypeEnabled (e.id) && dispatcher != null | void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null ... |
private void invalidateTree() | void invalidateTree() | private void invalidateTree() { for (int i = 0; i < ncomponents; i++) { Component comp = component[i]; comp.invalidate(); if (comp instanceof Container) ((Container) comp).invalidateTree(); } } |
super.paint(g); | public void paint(Graphics g) { if (!isShowing()) return; // Visit heavyweights as well, in case they were // erased when we cleared the background for this container. visitChildren(g, GfxPaintVisitor.INSTANCE, false); } | |
doLayout(); | protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp =... | |
is therefore imporant that valid is not set to true before after the children has been layed out. */ | is therefore important that valid is not set to true until after the children have been layed out. */ | protected void validateTree() { if (valid) return; ContainerPeer cPeer = null; if (peer != null && ! (peer instanceof LightweightPeer)) { cPeer = (ContainerPeer) peer; cPeer.beginValidate(); } doLayout(); for (int i = 0; i < ncomponents; ++i) { Component comp =... |
if (SwingUtilities.isDescendingFrom(pressedComponent, nativeContainer)) | void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { ... | |
if ((eventMask & e.getID()) == 0) return false; | boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | |
} else if (e instanceof KeyEvent && focus != null) { focus.processKeyEvent((KeyEvent) e); | boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching ENTERED and EXITED events twice. if (mouseEventTarget != null ... | |
final Raster master = createMaster(shape); this.sumAreaTable = new SummedAreaTable(master); | final Master master = createMaster(shape); this.sumAreaTable = new SummedAreaTable(master.bits, master.width, master.height); | public GlyphRenderer(Shape shape) { final Raster master = createMaster(shape); this.sumAreaTable = new SummedAreaTable(master); } |
private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); | private final Master createMaster(Shape shape) { final Area area = new Area(shape); final double scale = MASTER_HEIGHT / area.getBounds().getHeight(); area.transform(AffineTransform.getScaleInstance(scale, scale)); Rectangle bounds = area.getBounds(); area.transform(AffineTransform.getTranslateInstance(-bounds.getMinX... | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... |
final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, width, height, 1, 1, null); | System.out.println("width=" + width + ", height=" + height); final BitSet bits = new BitSet(width * height); | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... |
if (shape.contains(x, y)) { raster.setSample(x, y, 0, 1); | if (area.contains(x, y)) { bits.set(y * width + x); | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... |
return raster; | return new Master(bits, width, height); | private final Raster createMaster(Shape shape) { final Rectangle bounds = shape.getBounds(); final int width = (int)(bounds.getMaxX() + 0.5); final int height = (int)(bounds.getMaxY() + 0.5); final WritableRaster raster; raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, ... |
public void addNotify() { | addNotify() { | public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextField(this)); } |
public boolean echoCharIsSet() { | echoCharIsSet() { | public boolean echoCharIsSet() { if (echoChar == '\u0000') return (false); else return (true); } |
public int getColumns() { return (columns); } | getColumns() { return(columns); } | public int getColumns() { return (columns); } |
public char getEchoChar() { return (echoChar); } | getEchoChar() { return(echoChar); } | public char getEchoChar() { return (echoChar); } |
public Dimension getMinimumSize() { return (getMinimumSize(getColumns())); } | getMinimumSize() { return getMinimumSize (getColumns ()); } | public Dimension getMinimumSize() { return (getMinimumSize(getColumns())); } |
public Dimension getPreferredSize() { return (getPreferredSize(getColumns())); } | getPreferredSize() { return getPreferredSize (getColumns ()); } | public Dimension getPreferredSize() { return (getPreferredSize(getColumns())); } |
public Dimension minimumSize() { return (getMinimumSize(getColumns())); } | minimumSize() { return minimumSize (getColumns ()); } | public Dimension minimumSize() { return (getMinimumSize(getColumns())); } |
protected String paramString() { return (getClass().getName() + "(columns=" + getColumns() + ",echoChar=" + getEchoChar()); } | paramString() { return(getClass().getName() + "(columns=" + getColumns() + ",echoChar=" + getEchoChar()); } | protected String paramString() { return (getClass().getName() + "(columns=" + getColumns() + ",echoChar=" + getEchoChar()); } |
public Dimension preferredSize() { return (getPreferredSize(getColumns())); } | preferredSize() { return preferredSize (getColumns ()); } | public Dimension preferredSize() { return (getPreferredSize(getColumns())); } |
public synchronized void setColumns(int columns) { | setColumns(int columns) { | public synchronized void setColumns(int columns) { if (columns < 0) throw new IllegalArgumentException("Value is less than zero: " + columns); this.columns = columns; // FIXME: How to we communicate this to our peer? } |
public void setEchoCharacter(char echoChar) { setEchoChar(echoChar); } | setEchoCharacter(char echoChar) { this.echoChar = echoChar; TextFieldPeer peer = (TextFieldPeer) getPeer (); if (peer != null) peer.setEchoChar (echoChar); } | public void setEchoCharacter(char echoChar) { setEchoChar(echoChar); } |
throw (InternalError) new InternalError().initCause(e); | public void setText(String text) { try { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).replace(0, doc.getLength(), text, null); else { doc.remove(0, doc.getLength()); doc.insertString(0, text, null); } } catch (BadLocationException e) { // Thi... | |
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { VMID vmid = lease.getVMID(); if (vmid == null) vmid = new VMID(); long leaseValue = LEASE_VALUE; lease = new Lease(vmid, leaseValue); synchronized(leaseCache){ LeaseRecord lr = (LeaseRecord)leaseCache.get(vmid); if (lr != null) lr.... | public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { long leaseValue = lease.getValue(); if (leaseValue <= 0) leaseValue = LEASE_VALUE; new RefProtector(ids, leaseValue); lease = new Lease(lease.getVMID(), leaseValue); return lease; } | public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { VMID vmid = lease.getVMID(); if (vmid == null) vmid = new VMID(); long leaseValue = LEASE_VALUE; //long leaseValue = lease.getValue(); lease = new Lease(vmid, leaseValue); synchronized(leaseCache){ ... |
int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << NON_SPACING_MARK) | (1 << COMBINING_SPACING_MARK) | (1 << DECIMAL_DIGIT_NUMBER) | (1 << LETTER_NUMBER) | (1 << CURRENCY_SYMBOL) | (1 <... | return isJavaIdentifierPart((int)ch); | public static boolean isJavaIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ... |
protected Activatable(String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented"); } | protected Activatable(String codebase, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { ActivationDesc descriptor = new ActivationDesc(getClass().getName(), codebase, data, restart); id = obtainId(descriptor); exportObject(this, id, port); } | protected Activatable(String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} |
public static ActivationID exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented"); } | public static ActivationID exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { ActivationDesc descriptor = new ActivationDesc(obj.getClass().getName(), location, data, restart); ActivationID id = obtainId(descriptor); Remote stub = ex... | public static ActivationID exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port) throws ActivationException, RemoteException { throw new Error("Not implemented");} |
protected ActivationID getID() { throw new Error("Not implemented"); } | protected ActivationID getID() { return id; } | protected ActivationID getID() { throw new Error("Not implemented");} |
public static boolean inactive(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented"); } | public static boolean inactive(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { if (id.group!=null) id.group.inactiveObject(id); return UnicastRemoteObject.unexportObject(id.activate(false), false); } | public static boolean inactive(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} |
public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { throw new Error("Not implemented"); } | public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { ActivationID id = obtainId(desc); return id.activate(false); } | public static Remote register(ActivationDesc desc) throws UnknownGroupException, ActivationException, RemoteException { throw new Error("Not implemented");} |
public static boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException { throw new Error("Not implemented"); } | public static boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException { Object aref = UnicastServer.getExportedRef(obj); if (aref instanceof ActivatableServerRef) { ActivatableServerRef aar = (ActivatableServerRef) aref; UnicastServer.unregisterActivatable(aar.actId); } return UnicastRemoteObj... | public static boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException { throw new Error("Not implemented");} |
public static void unregister(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented"); } | public static void unregister(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { ActivationGroup.currentGroupId.getSystem().unregisterObject(id); UnicastServer.unregisterActivatable(id); } | public static void unregister(ActivationID id) throws UnknownObjectException, ActivationException, RemoteException { throw new Error("Not implemented");} |
limit(capacity()); | public LongBuffer compact () { int copied = 0; while (remaining () > 0) { put (copied, get ()); copied++; } position (copied); return this; } | |
public static synchronized JarFile get (URL url) throws IOException | public static synchronized JarFile get (URL url, boolean useCaches) throws IOException | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new JarFile (f, true, ZipF... |
JarFile jf = (JarFile) cache.get (url); | JarFile jf; if (useCaches) { jf = (JarFile) cache.get (url); | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new JarFile (f, true, ZipF... |
if (useCaches) | public static synchronized JarFile get (URL url) throws IOException { JarFile jf = (JarFile) cache.get (url); if (jf != null) return jf; if ("file".equals (url.getProtocol())) { File f = new File (url.getFile()); jf = new JarFile (f, true, ZipF... | |
jar_file = JarFileCache.get (jar_url); | jar_file = JarFileCache.get (jar_url, useCaches); | public synchronized void connect() throws IOException { // Call is ignored if already connected. if (connected) return; jar_url = getJarFileURL(); jar_file = JarFileCache.get (jar_url); String entry_name = getEntryName(); if (entry_name != null && !entry_name.equals ("")) { ... |
prefSize = preferredSize; | prefSize = new Dimension(preferredSize); | public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferr... |
if (minimumSize != null && prefSize != null && (minimumSize.width > prefSize.width || minimumSize.height > prefSize.height)) prefSize = new Dimension(Math.max(minimumSize.width, prefSize.width), Math.max(minimumSize.height, prefSize.height)); | public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferr... | |
if (getArcType() != CHORD) | if (getArcType() == PIE) | public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h... |
return a >= start && a <= end; | return a >= start && a < end; | public boolean containsAngle(double a) { double start = getAngleStart(); double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; } start %= 360; while (start < 0) start +=... |
double start = Math.toDegrees(Math.atan2(y1, x1)); double extent = Math.toDegrees(Math.atan2(y2, x2)) - start; | double start = Math.toDegrees(Math.atan2(-y1, x1)); double extent = Math.toDegrees(Math.atan2(-y2, x2)) - start; | public void setAngles(double x1, double y1, double x2, double y2) { // Normalize the points. double mx = getX(); double my = getY(); double mw = getWidth(); double mh = getHeight(); x1 = x1 - (mx + mw / 2); y1 = y1 - (my + mh / 2); x2 = x2 - (mx + mw / 2); y2 = y2 - (my + mh / 2); double start = ... |
System.err.println("showDocument failed: " + e); | throw new RuntimeException("showDocument failed.", e); | public void showDocument(URL url, String target) { try { PluginAppletViewer.write("url " + url + " " + target); } catch(IOException e) { System.err.println("showDocument failed: " + e); } } |
System.err.println("showDocument failed: " + e); | throw new RuntimeException("showStatus failed.", e); | public void showStatus(String status) { try { PluginAppletViewer.write("status " + status); } catch(IOException e) { System.err.println("showDocument failed: " + e); } } |
return null; | return "Menu"; | protected String getPropertyPrefix() { return null; } |
UndoableEdit temp = content.insertString(offset, text); | UndoableEdit undo = content.insertString(offset, text); insertUpdate(event, attributes); | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... |
GapContent.UndoInsertString changes = null; if (content instanceof GapContent) changes = (GapContent.UndoInsertString) temp; insertUpdate(event, attributes); | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | |
if (changes != null) { Element root = getDefaultRootElement(); int start = root.getElementIndex(changes.where); int end = root.getElementIndex(changes.where+changes.length); if (!(start == 0 && end == 0)) { Element[] removed = new Element[1]; removed[0] = root; Element[] added = new Element[end - start + 1]; for (in... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | |
if (undo != null) fireUndoableEditUpdate(new UndoableEditEvent(this, undo)); | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc... | |
if (currentWriter.equals(Thread.currentThread())) | if (Thread.currentThread().equals(currentWriter)) | protected void writeUnlock() { synchronized (documentCV) { if (currentWriter.equals(Thread.currentThread())) { currentWriter = null; documentCV.notifyAll(); } } } |
public JWindow(Frame f) | public JWindow() | public JWindow(Frame f) { super(f); } |
super(f); | this(null); | public JWindow(Frame f) { super(f); } |
private final int d_code(int distance) { | private int d_code(int distance) { | private final int d_code(int distance) { int code = 0; while (distance >= 4) { code += 2; distance >>= 1; } return code + distance; } |
private final int l_code(int len) { | private int l_code(int len) { | private final int l_code(int len) { if (len == 255) return 285; int code = 257; while (len >= 8) { code += 4; len >>= 1; } return code + len; } |
public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; | public static GraphicsEnvironment getLocalGraphicsEnvironment() { ClasspathToolkit tk; tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit ()); return tk.getLocalGraphicsEnvironment (); | public static GraphicsEnvironment getLocalGraphicsEnvironment() { return localEnv; } |
super.focusGained(event); syncScreen(); if (claimSystemOutErrIn) { System.setOut(savedOut); System.setErr(savedErr); } } | super.focusGained(event); syncScreen(); if (claimSystemOutErrIn) { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { System.setOut(savedOut); System.setErr(savedErr); return null; } }); } } | public void focusGained(FocusEvent event) { super.focusGained(event); syncScreen(); if (claimSystemOutErrIn) { System.setOut(savedOut); System.setErr(savedErr); } } |
protected AccessibleJPasswordField(JPasswordField component) { super(component); } | protected AccessibleJPasswordField() { } | protected AccessibleJPasswordField(JPasswordField component) { super(component); // TODO } // AccessibleJPasswordField() |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPasswordField(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJPasswordField(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPasswordField(this); } // if return accessibleContext; } // getAccessibleContext() |
return new AccessibleStateSet( ); | return null; | public AccessibleStateSet getAccessibleStateSet() { return new AccessibleStateSet( );// return null; // TODO } |
return ""; | return null; | public String getAfterIndex(int value0, int value1) { return "";// return null; // TODO } |
return ""; | return null; | public String getAtIndex(int value0, int value1) { return "";// return null; // TODO } |
return ""; | return null; | public String getBeforeIndex(int value0, int value1) { return "";// return null; // TODO } |
return new SimpleAttributeSet( ); | return null; | public AttributeSet getCharacterAttribute(int value0) { return new SimpleAttributeSet( );// return null; // TODO } |
return new Rectangle( ); | return null; | public Rectangle getCharacterBounds(int value0) { return new Rectangle( );// return null; // TODO } |
return new Rectangle( ); | return null; | Rectangle getRootEditorRect() { return new Rectangle( );//todo fix// return null; } |
public void actionPerformed( ActionEvent ev ) { if( caret != null ) { caret.setVisible( !caret.isVisible() ); } | public void actionPerformed(ActionEvent ev) { caret.setVisible(!caret.isVisible()); | public void actionPerformed( ActionEvent ev ) { if( caret != null ) { caret.setVisible( !caret.isVisible() ); } } |
public void update() { if( caret != null ) { | public void update() { | public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } } |
setDelay( caret.getBlinkRate() ); if( editable ) { | setDelay(caret.getBlinkRate()); if (editable) | public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } } |
} else { caret.setVisible( false ); } } | else caret.setVisible(false); | public void update() { if( caret != null ) { stop(); setDelay( caret.getBlinkRate() ); if( editable ) { start(); } else { caret.setVisible( false ); } } } |
case Kind.FPUSTACK: stack.fpuStack.pop(this); os.writeLEA(SP, SP, 4); popFromFPU(os, SP, 0); break; | case Kind.FPUSTACK: final FPUStack fpuStack = stack.fpuStack; if (!fpuStack.isTos(this)) { FPUHelper.fxch(os, fpuStack, fpuStack.getRegister(this)); } stack.fpuStack.pop(this); os.writeLEA(SP, SP, 4); popFromFPU(os, SP, 0); break; | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ... |
case Kind.STACK: if (VirtualStack.checkOperandStack) { stack.operandStack.pop(this); } break; default: throw new IllegalArgumentException("Invalid item kind"); } release(ec); kind = Kind.STACK; | case Kind.STACK: if (VirtualStack.checkOperandStack) { stack.operandStack.pop(this); } break; | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ... |
if (VirtualStack.checkOperandStack) { stack.operandStack.push(this); } } | default: throw new IllegalArgumentException("Invalid item kind"); } release(ec); kind = Kind.STACK; if (VirtualStack.checkOperandStack) { stack.operandStack.push(this); } } | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); ... |
changeSupport = new SwingPropertyChangeSupport(this); | protected AccessibleJComponent() { // TODO: Implement this properly. } | |
super.addPropertyChangeListener(listener); | changeSupport.addPropertyChangeListener(listener); | public void addPropertyChangeListener(PropertyChangeListener listener) { // TODO: Why is this overridden? super.addPropertyChangeListener(listener); } |
public Accessible getAccessibleChild(int value0) { return null; } | public Accessible getAccessibleChild(int i) { int index = 0; Component[] children = getComponents(); Accessible found = null; for (int j = 0; index != i; j++) { if (children[j] instanceof Accessible) index++; if (index == i) found = (Accessible) children[index]; } return found; } | public Accessible getAccessibleChild(int value0) { return null; } |
public int getAccessibleChildrenCount() { return 0; } | public int getAccessibleChildrenCount() { int count = 0; Component[] children = getComponents(); for (int i = 0; i < children.length; ++i) { if (children[i] instanceof Accessible) count++; } return count; } | public int getAccessibleChildrenCount() { return 0; } |
public AccessibleRole getAccessibleRole() { return null; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.SWING_COMPONENT; } | public AccessibleRole getAccessibleRole() { return null; } |
protected String getBorderTitle(Border value0) { return null; } | protected String getBorderTitle(Border border) { String title = null; if (border instanceof CompoundBorder) { CompoundBorder compound = (CompoundBorder) border; Border inner = compound.getInsideBorder(); title = getBorderTitle(inner); if (title == null) { Border outer = compound.getOutsideBorder(); title = getBorderTit... | protected String getBorderTitle(Border value0) { return null; } |
public String getTitledBorderText() { return null; } | public String getTitledBorderText() { return getBorderTitle(getBorder()); } | public String getTitledBorderText() { return null; } |
public String getToolTipText() { return null; } | public String getToolTipText() { return JComponent.this.getToolTipText(); } | public String getToolTipText() { return null; } |
changeSupport.removePropertyChangeListener(listener); | public void removePropertyChangeListener(PropertyChangeListener listener) { // TODO: Implement this properly. } | |
while (parent != null) | while (parent != null && !(parent instanceof Window)) | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null) { Container newParent = parent.getParent(); if (newParent == null) break; // If the parent is optimizedDrawin... |
catch (InvalidEventTypeException e) | catch (JdwpException e) | private EventManager () { _requests = new Hashtable (); // Add lists for all the event types _requests.put (new Byte (EventRequest.EVENT_SINGLE_STEP), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_BREAKPOINT), new Hashtable ()); _requests.put (new Byte (EventRequest.EVENT_FRAM... |
throws JdwpException | public void clearRequests (byte kind) { Hashtable requests = (Hashtable) _requests.get (new Byte (kind)); if (requests == null) { // Did not get a valid event type throw new IllegalArgumentException ("invalid event kind: " + kind); } VMVirtualMachine.clearEvents (kind); requests.clear (); } | |
throws JdwpException | public void deleteRequest (byte kind, int id) { Hashtable requests; requests = (Hashtable) _requests.get (new Byte (kind)); if (requests == null) { // Did not get a valid event type throw new IllegalArgumentException ("invalid event kind: " + kind); } Integer iid = new Integer (id); EventReq... | |
throws InvalidEventTypeException | throws JdwpException | public void requestEvent (EventRequest request) throws InvalidEventTypeException { // Add request to request list Hashtable requests; Byte kind = new Byte (request.getEventKind ()); requests = (Hashtable) _requests.get (kind); if (requests == null) { // Did not get a valid event type throw new... |
System.out.println("swing.Timer::" + e); | public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("... | |
if (waker != null) | public void stop() { running = false; waker.interrupt(); synchronized (queueLock) { queue = 0; } } | |
manager = new DefaultKeyboardFocusManager (); | manager = createFocusManager(); | public static void setCurrentKeyboardFocusManager (KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.