rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getBackground(); else return null;
public Color getBackground() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Rectangle getBounds() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getBounds(); else return null;
public Rectangle getBounds() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Cursor getCursor() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getCursor(); else return null;
public Cursor getCursor() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Font getFont() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getFont(); else return null;
public Font getFont() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public FontMetrics getFontMetrics(Font f) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getFontMetrics(f); else return null;
public FontMetrics getFontMetrics(Font f) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Color getForeground() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getForeground(); else return null;
public Color getForeground() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Locale getLocale() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
Component c = getColumnHeaderRenderer(); if (c != null) return c.getLocale(); return null;
public Locale getLocale() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Point getLocation() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getLocation(); else return null;
public Point getLocation() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Point getLocationOnScreen() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getLocationOnScreen(); else return null;
public Point getLocationOnScreen() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public Dimension getSize() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getSize(); else return null;
public Dimension getSize() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.isEnabled(); else return false;
public boolean isEnabled() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public boolean isFocusTraversable() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.isFocusTraversable(); else return false;
public boolean isFocusTraversable() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public boolean isShowing() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.isShowing(); else return false;
public boolean isShowing() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public boolean isVisible() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.isVisible(); else return false;
public boolean isVisible() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void removeFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) c.removeFocusListener(l);
public void removeFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void removePropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) ac.removePropertyChangeListener(l);
public void removePropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void requestFocus() throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) c.requestFocus();
public void requestFocus() throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setAccessibleDescription(String s) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) ac.setAccessibleDescription(s); else accessibleDescription = s;
public void setAccessibleDescription(String s) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setAccessibleName(String s) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) ac.setAccessibleName(s);
public void setAccessibleName(String s) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setBackground(Color c) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setBackground(c);
public void setBackground(Color c) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setBounds(Rectangle r) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setBounds(r);
public void setBounds(Rectangle r) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setCursor(Cursor c) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setCursor(c);
public void setCursor(Cursor c) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setEnabled(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setEnabled(b);
public void setEnabled(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setFont(Font f) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setFont(f);
public void setFont(Font f) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setForeground(Color c) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setForeground(c);
public void setForeground(Color c) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setLocation(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setLocation(p);
public void setLocation(Point p) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setSize(Dimension d) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setSize(d);
public void setSize(Dimension d) throws NotImplementedException { throw new Error("not implemented"); }
throws NotImplementedException
public void setVisible(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setVisible(b);
public void setVisible(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
if(size.endsWith("G")) {
if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) {
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("G")) { multiplier = G; size = size.substring(0, size.length() - 1); } else if(size.endsWith("...
return String.valueOf(v) + "G";
return String.valueOf(v) + "T";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
protected BltBufferStrategy(int num, BufferCapabilities caps)
protected BltBufferStrategy(int numBuffers, BufferCapabilities caps)
protected BltBufferStrategy(int num, BufferCapabilities caps) { this.caps = caps; createBackBuffers(num); }
createBackBuffers(num);
createBackBuffers(numBuffers - 1); width = getWidth(); height = getHeight();
protected BltBufferStrategy(int num, BufferCapabilities caps) { this.caps = caps; createBackBuffers(num); }
public boolean contentsLost() { return false; }
public boolean contentsLost() { for (int i = 0; i < backBuffers.length; i++) { if (backBuffers[i].contentsLost()) { validatedContents = false; return true; } } validatedContents = true; return false; }
public boolean contentsLost() { return false; }
public boolean contentsRestored() { return false; }
public boolean contentsRestored() { GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); boolean imageRestored = false; for (int i = 0; i < backBuffers.length; i++) { int result = backBuffers[i].validate(c); if (result == VolatileImage.IMAGE_...
public boolean contentsRestored() { return false; }
protected void createBackBuffers(int num)
protected void createBackBuffers(int numBuffers)
protected void createBackBuffers(int num) { backBuffers = new VolatileImage[num]; }
backBuffers = new VolatileImage[num];
GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); backBuffers = new VolatileImage[numBuffers]; for (int i = 0; i < numBuffers; i++) backBuffers[i] = c.createCompatibleVolatileImage(width, height);
protected void createBackBuffers(int num) { backBuffers = new VolatileImage[num]; }
public Graphics getDrawGraphics() { return null; }
public Graphics getDrawGraphics() { return backBuffers[0].getGraphics(); }
public Graphics getDrawGraphics() { return null; }
protected void revalidate() {}
protected void revalidate() { GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); for (int i = 0; i < backBuffers.length; i++) { int result = backBuffers[i].validate(c); if (result == VolatileImage.IMAGE_INCOMPATIBLE) backBuffers[i] = c.creat...
protected void revalidate() {}
public void show() {}
public void show() { GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); getGraphics().drawImage(backBuffers[backBuffers.length - 1], width, height, null); BufferCapabilities.FlipContents f = getCapabilities().getFlipContents(); for (int ...
public void show() {}
protected FlipBufferStrategy(int num, BufferCapabilities caps)
protected FlipBufferStrategy(int numBuffers, BufferCapabilities caps)
protected FlipBufferStrategy(int num, BufferCapabilities caps) throws AWTException { this.caps = caps; createBuffers(num, caps); }
createBuffers(num, caps);
width = getWidth(); height = getHeight(); if (numBuffers > 1) createBuffers(numBuffers, caps); else { drawVBuffer = peer.createVolatileImage(width, height); drawBuffer = drawVBuffer;
protected FlipBufferStrategy(int num, BufferCapabilities caps) throws AWTException { this.caps = caps; createBuffers(num, caps); }
}
protected FlipBufferStrategy(int num, BufferCapabilities caps) throws AWTException { this.caps = caps; createBuffers(num, caps); }
public boolean contentsLost() { return false; }
public boolean contentsLost() { if (drawVBuffer.contentsLost()) { validatedContents = false; return true; } validatedContents = true; return false; }
public boolean contentsLost() { return false; }
public boolean contentsRestored() { return false; }
public boolean contentsRestored() { GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); int result = drawVBuffer.validate(c); boolean imageRestored = false; if (result == VolatileImage.IMAGE_RESTORED) imageRestored = true; else if (result =...
public boolean contentsRestored() { return false; }
protected void createBuffers(int num, BufferCapabilities caps) throws AWTException {}
protected void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException { if (numBuffers <= 1) throw new IllegalArgumentException("FlipBufferStrategy.createBuffers:" + " numBuffers must be greater than" + " one."); if (!caps.isPageFlipping()) throw new IllegalArgumentException("FlipBufferStrategy.cre...
protected void createBuffers(int num, BufferCapabilities caps) throws AWTException {}
protected void destroyBuffers() {}
protected void destroyBuffers() { peer.destroyBuffers(); }
protected void destroyBuffers() {}
protected void flip(BufferCapabilities.FlipContents flipAction) {}
protected void flip(BufferCapabilities.FlipContents flipAction) { peer.flip(flipAction); }
protected void flip(BufferCapabilities.FlipContents flipAction) {}
return drawBuffer; }
return peer.getBackBuffer(); }
protected Image getBackBuffer() { return drawBuffer; }
public Graphics getDrawGraphics() { return null; }
public Graphics getDrawGraphics() { return drawVBuffer.getGraphics(); }
public Graphics getDrawGraphics() { return null; }
protected void revalidate() {}
protected void revalidate() { GraphicsConfiguration c = GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration(); if (drawVBuffer.validate(c) == VolatileImage.IMAGE_INCOMPATIBLE) drawVBuffer = peer.createVolatileImage(width, height); validatedContents = true; }
protected void revalidate() {}
public void show() {}
public void show() { flip(caps.getFlipContents()); }
public void show() {}
case MouseEvent.MOUSE_PRESSED: if (isLightweight()) requestFocus(); break;
void dispatchEventImpl (AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the ...
throw new IllegalComponentStateException("component not showing");
throw new IllegalComponentStateException("component " + getClass().getName() + " not showing");
public Point getLocationOnScreen() { if (! isShowing()) throw new IllegalComponentStateException("component not showing"); // We know peer != null here. return peer.getLocationOnScreen(); }
else if (forwardKeystrokes.contains (oppositeKeystroke) || backwardKeystrokes.contains (oppositeKeystroke) || upKeystrokes.contains (oppositeKeystroke) || (comp instanceof Container && downKeystrokes.contains (oppositeKeystroke))) e.consume ();
public void processKeyEvent (Component comp, KeyEvent e) { AWTKeyStroke eventKeystroke = AWTKeyStroke.getAWTKeyStrokeForEvent (e); // For every focus traversal keystroke, we need to also consume // the other two key event types for the same key (e.g. if // KEY_PRESSED TAB is a focus traversal keystroke, ...
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyOfNode(select.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
}
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyOfNode(select.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocu...
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocu...
StringBuffer buf = new StringBuffer(getClass().getName());
StringBuffer buf = new StringBuffer("copy-of");
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("select="); buf.append(select); buf.append(']'); return buf.toString(); }
int oldValue; int newValue; do { oldValue = addr.prepareInt(); if ((oldValue & ObjectFlags.GC_COLOUR_MASK) != oldColor) {
for (;;) { Word oldValue = addr.prepareWord(); if (oldValue.and(Word.fromIntZeroExtend(ObjectFlags.GC_COLOUR_MASK)).NE(Word.fromIntZeroExtend(oldColor))) {
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); int oldValue; int newValue; do { oldValue = addr.prepareInt(); if ((oldValu...
newValue = (oldValue & ~ObjectFlags.GC_COLOUR_MASK) | newColor; } while (!addr.attempt(oldValue, newValue)); return true;
Word newValue = oldValue.and(Word.fromIntZeroExtend(ObjectFlags.GC_COLOUR_MASK).not()).or(Word.fromIntZeroExtend(newColor)); if (addr.attempt(oldValue, newValue)) { return true; } }
public boolean atomicChangeObjectColor(Object dst, int oldColor, int newColor) { final Address addr = ObjectReference.fromObject(dst).toAddress().add( flagsOffset); int oldValue; int newValue; do { oldValue = addr.prepareInt(); if ((oldValu...
return MonitorManager.getInflatedMonitor(object, arch);
return MonitorManager.getInflatedMonitor(object);
public final Monitor getInflatedMonitor(Object object, VmArchitecture arch) { return MonitorManager.getInflatedMonitor(object, arch); }
return super.hashCode ();
int hashCode = Float.floatToIntBits(get(position())) + 31; int multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (Float.floatToIntBits(get(i)) + 30)*multiplier; } return hashCode;
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
final public static FloatBuffer wrap (float[] array, int offset, int length)
public static final FloatBuffer wrap (float[] array, int offset, int length)
final public static FloatBuffer wrap (float[] array, int offset, int length) { return new FloatBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
array[1] = (max - min) / max;
array[1] = ((float) (max - min)) / ((float) max);
public static float[] RGBtoHSB(int red, int green, int blue, float array[]) { if (array == null) array = new float[3]; // Calculate brightness. int min; int max; if (red < green) { min = red; max = green; } else { min = green; max = red; } if ...
System.out.println("Resolved: " + file);
public File resolveFile(String fileName) throws FileNotFoundException { if (directoryList == null){ File file = new File(fileName); if(file.exists()) { System.out.println("Resolved: " + file); return file; } else { throw new FileNo...
System.out.println("Resolved: " + resolved);
public File resolveFile(String fileName) throws FileNotFoundException { if (directoryList == null){ File file = new File(fileName); if(file.exists()) { System.out.println("Resolved: " + file); return file; } else { throw new FileNo...
public AccessibleJPanel()
protected AccessibleJPanel()
public AccessibleJPanel() { // Nothing to do here. }
xpath.setNamespaceContext(this);
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
xpath.setNamespaceContext(root);
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
{
final void addNamespaceNodes(Node source, Node target, Document doc, Collection elementExcludeResultPrefixes) { NamedNodeMap attrs = source.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Nod...
}
final void addNamespaceNodes(Node source, Node target, Document doc, Collection elementExcludeResultPrefixes) { NamedNodeMap attrs = source.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Nod...
{
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...