bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("MetaAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
35,709
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("MetaAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
35,710
public void end(HTML.Tag t) { blockClose(t); }
public void end(HTML.Tag t) { super.end(t); }
35,711
public void start(HTML.Tag t, MutableAttributeSet a) { blockOpen(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) { super.start(t, a); }
35,712
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
35,713
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("PreAction.end not implemented"); super.end(t); }
35,714
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
35,715
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("PreAction.start not implemented"); super.start(t, a); }
35,716
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.end not implemented"); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("StyleAction.end not implemented"); }
35,717
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. inStyleTag = false; }
35,718
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("StyleAction.start not implemented"); }
35,719
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("StyleAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. inStyleTag = true; }
35,720
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("TitleAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
35,721
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("TitleAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
35,722
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); /...
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. // The two spaces are required because some ...
35,723
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); /...
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); /...
35,724
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); /...
protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { a.addAttribute(StyleConstants.NameAttribute, t); // Migrate from the rather htmlAttributeSet to the faster, lighter and // unchangeable alternative implementation. AttributeSet copy = a.copyAttributes(); /...
35,725
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
protected void blockClose(HTML.Tag t) { DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get(parseBuffer.si...
35,726
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
35,727
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
35,728
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
protected void blockClose(HTML.Tag t) { printBuffer(); DefaultStyledDocument.ElementSpec element; // If the previous tag is a start tag then we insert a synthetic // content tag. DefaultStyledDocument.ElementSpec prev; prev = (DefaultStyledDocument.ElementSpec) parseBuffer.get...
35,729
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { if (inImpliedParagraph()) blockClose(HTML.Tag.IMPLIED); parseStack.push(t); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy ...
35,730
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttri...
35,731
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, Styl...
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { DefaultStyledDocument.ElementSpec element; parseStack.push(t); AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.Name...
35,732
public void flush() throws BadLocationException { DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); if (offset == 0) create(elements); else ...
public void flush() throws BadLocationException { DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); if (offset == 0) create(elements); else ...
35,733
public void handleComment(char[] data, int pos) { if (shouldInsert()) { TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET); ...
public void handleComment(char[] data, int pos) { if (shouldInsert()) { TagAction action = (TagAction) tagToAction.get(HTML.Tag.COMMENT); if (action != null) { action.start(HTML.Tag.COMMENT, htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET); ...
35,734
public void handleEndOfLineString(String eol) { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); }
public void handleEndOfLineString(String eol) { // FIXME: Implement. }
35,735
public void handleText(char[] data, int pos) { if (data != null && data.length > 0) addContent(data, 0, data.length); }
public void handleText(char[] data, int pos) { if (shouldInsert() && data != null && data.length > 0) { if (inTextArea) textAreaContent(data); else if (inPreTag) preContent(data); else if (option != null) option.setLabel(new String(data)); else if (inStyleTag) { if (styles == null) styles = new ArrayList();...
35,736
void initTags() { tagToAction = new HashMap(72); CharacterAction characterAction = new CharacterAction(); HiddenAction hiddenAction = new HiddenAction(); AreaAction areaAction = new AreaAction(); BaseAction baseAction = new BaseAction(); BlockAction blockAction = new BlockAction(); ...
void initTags() { tagToAction = new HashMap(72); CharacterAction characterAction = new CharacterAction(); HiddenAction hiddenAction = new HiddenAction(); AreaAction areaAction = new AreaAction(); BaseAction baseAction = new BaseAction(); BlockAction blockAction = new BlockAction(); ...
35,738
protected void preContent(char[] data) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); }
protected void preContent(char[] data) { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); }
35,739
protected void preContent(char[] data) throws NotImplementedException { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); }
protected void preContent(char[] data) throws NotImplementedException { // FIXME: Implement int start = 0; for (int i = 0; i < data.length; i++) { if (data[i] == '\n') { addContent(data, start, i - start + 1); blockClose(HTML.Tag.IMPLIED); MutableAttributeSet atts = new SimpleAttributeSet(); atts.a...
35,740
protected void textAreaContent(char[] data) throws NotImplementedException { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); }
protected void textAreaContent(char[] data) { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); }
35,741
protected void textAreaContent(char[] data) throws NotImplementedException { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); }
protected void textAreaContent(char[] data) throws NotImplementedException { // FIXME: Implement. try { int offset = textAreaDocument.getLength(); String text = new String(data); textAreaDocument.setInitialText(text); textAreaDocument.insertString(offset, text, null); } catch (BadLocationException ...
35,742
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { RunElement el = new RunElement(parent, a, p0, p1); el.addAttribute(StyleConstants.NameAttribute, HTML.Tag.CONTENT); return new RunElement(parent, a, p0, p1); }
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { RunElement el = new RunElement(parent, a, p0, p1); el.addAttribute(StyleConstants.NameAttribute, HTML.Tag.CONTENT); return new RunElement(parent, a, p0, p1); }
35,744
public HTMLEditorKit.ParserCallback getInsertingReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag, final Element parent) throws Ill...
public HTMLEditorKit.ParserCallback getInsertingReader(int pos, int popDepth, int pushDepth, HTML.Tag insertTag, final Element parent) throws Ill...
35,745
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) throws NotImplementedException { // TODO: Implement this properly. }
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) { // TODO: Implement this properly. }
35,746
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) throws NotImplementedException { // TODO: Implement this properly. }
String target = event.getTarget(); Element el = event.getSourceElement(); URL url = event.getURL(); if (target.equals("_self")) { updateFrame(el, url); } else if (target.equals("_parent")) { updateFrameSet(el.getParentElement(), url); } else { Element targetFrame = findFrame(target); if (targetFrame != null) updateFram...
35,747
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { language = ((String) s.readObject()).intern(); country = ((String) s.readObject()).intern(); variant = ((String) s.readObject()).intern(); // Recompute hashcode. hashcode = language.hashCode() ^ country.hashCo...
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { language = ((String) s.readObject()).intern(); country = ((String) s.readObject()).intern(); variant = ((String) s.readObject()).intern(); // Recompute hashcode. hashcode = language.hashCode() ^ country.hashCo...
35,749
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
35,750
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
public static Rectangle calculateInnerArea(JComponent c, Rectangle r) { Rectangle b = getLocalBounds(c); if (r == null) r = new Rectangle(); Insets i = c.getInsets(); r.x = b.x + i.left; r.width = b.width - i.left - i.right; r.y = b.y + i.top; r.height = b.height - i.top - i.bottom; retu...
35,751
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
35,752
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
35,753
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
public static Rectangle computeIntersection(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x > x2) ? x : x2; int dy = (y > y...
35,754
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
35,755
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
public static Rectangle computeUnion(int x, int y, int w, int h, Rectangle rect) { int x2 = (int) rect.getX(); int y2 = (int) rect.getY(); int w2 = (int) rect.getWidth(); int h2 = (int) rect.getHeight(); int dx = (x < x2) ? x : x2; int dy = (y < y2) ? y : y2; ...
35,756
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
35,759
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
35,760
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp i...
35,761
InputSource resolveEntity(boolean isPE, String name, InputSource in, String baseURI) throws SAXException, IOException { InputSource source; // external entities might be skipped if (isPE && !extPE) { return null; } if (!isPE && !extGE) { return null; } // ... or not lexicalHan...
InputSource resolveEntity(boolean isPE, String name, InputSource in, String baseURI) throws SAXException, IOException { InputSource source; // external entities might be skipped if (isPE && !extPE) { return null; } if (!isPE && !extGE) { return null; } // ... or not lexicalHan...
35,763
public RadeonSurface(RadeonCore kernel, RadeonConfiguration config, BitmapGraphics bitmapGraphics, MemoryResource screen, RadeonAcceleration accel) { super(config.getScreenWidth(), config.getScreenHeight()); this.kernel = kernel; this.bitmapGraphics = bitmapGraphics; this.colorModel = co...
public RadeonSurface(RadeonCore kernel, RadeonConfiguration config, BitmapGraphics bitmapGraphics, MemoryResource screen, RadeonAcceleration accel) { super(config.getScreenWidth(), config.getScreenHeight()); this.kernel = kernel; this.bitmapGraphics = bitmapGraphics; this.colorModel = co...
35,764
public void copyArea(int x, int y, int width, int height, int dx, int dy) { bitmapGraphics.copyArea(x, y, width, height, dx, dy); }
public void copyArea(int x, int y, int width, int height, int dx, int dy) { bitmapGraphics.copyArea(x, y, width, height, dx, dy); }
35,765
public void drawCompatibleRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, Color bgColor) { if (bgColor == null) { bitmapGraphics.drawImage(raster, srcX, srcY, dstX, dstY, width, height); } else { bitmapGraphics.drawImage(raster, srcX, srcY, dstX, dstY, width, he...
public void drawCompatibleRaster(Raster raster, int srcX, int srcY, int dstX, int dstY, int width, int height, Color bgColor) { if (bgColor == null) { bitmapGraphics.drawImage(raster, srcX, srcY, dstX, dstY, width, height); } else { bitmapGraphics.drawImage(raster, srcX, srcY, dstX, dstY, width, he...
35,766
protected void drawPixel(int x, int y, int color, int mode) { bitmapGraphics.drawPixels(x, y, 1, color, mode); }
protected void drawPixel(int x, int y, int color, int mode) { bitmapGraphics.drawPixels(x, y, 1, color, mode); }
35,767
public gnuAny Clone() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); out.write_any(this); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
public gnuAny Clone() { BufferedCdrOutput out = new BufferedCdrOutput(); out.setOrb(orb); out.write_any(this); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
35,768
public gnuAny Clone() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); out.write_any(this); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
public gnuAny Clone() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); out.write_any(this); BufferredCdrInput in = new BufferredCdrInput(out.buffer.toByteArray()); in.setOrb(orb); return (gnuAny) in.read_any(); }
35,769
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
35,770
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
protected void check(int kind) throws BAD_OPERATION { if (has == null) { BAD_OPERATION bad = new BAD_OPERATION("value not set"); bad.minor = Minor.Any; throw bad; } if (xKind >= 0) { if (xKind != kind) if (!(xKind == TCKind._tk_alias && has._ty...
35,771
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof GeneralHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
35,772
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { GeneralHolder u = (GeneralHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); c...
35,773
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { BufferedCdrOutput out = new BufferedCdrOutput(); out.setOrb(orb); write_value(...
35,774
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
public org.omg.CORBA.portable.InputStream create_input_stream() { if (has instanceof universalHolder) { universalHolder u = (universalHolder) has; return u.getInputStream(); } else { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); ...
35,775
public org.omg.CORBA.portable.OutputStream create_output_stream() { cdrBufOutput stream = new cdrBufOutput(); stream.setOrb(orb); return stream; }
public org.omg.CORBA.portable.OutputStream create_output_stream() { BufferedCdrOutput stream = new BufferedCdrOutput(); stream.setOrb(orb); return stream; }
35,776
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_va...
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; BufferedCdrOutput a = new BufferedCdrOutput(); a.setOrb(orb); ...
35,777
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_va...
public boolean equal(Any other) { if (other == this) return true; if (type().kind() != other.type().kind()) return false; if (has != null && other instanceof gnuAny) if (has.equals(((gnuAny) other).has)) return true; cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_va...
35,778
public int hashCode() { if (has == null) return type().kind().value(); else { Adler32 adler = new Adler32(); cdrBufOutput a = new cdrBufOutput(); a.setOrb(orb); write_value(a); adler.update(a.buffer.toByteArray()); adler.update(type().kind().value());...
public int hashCode() { if (has == null) return type().kind().value(); else { Adler32 adler = new Adler32(); BufferedCdrOutput a = new BufferedCdrOutput(); a.setOrb(orb); write_value(a); adler.update(a.buffer.toByteArray()); adler.update(type().kind()...
35,779
public void insert_string(String x) { resetTypes(); if (has instanceof StringHolder) ((StringHolder) has).value = x; else has = new StringHolder(x); typecode = new stringTypeCode(TCKind.tk_string); }
public void insert_string(String x) { resetTypes(); if (has instanceof StringHolder) ((StringHolder) has).value = x; else has = new StringHolder(x); typecode = new StringTypeCode(TCKind.tk_string); }
35,780
public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); }
public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); }
35,781
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) { setDot(Utilities.getRowStart(t, ...
35,782
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
35,783
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
35,784
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
35,785
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) t.select(Utilities.getRowStart(t, ...
35,786
public int getOffset() { synchronized (GapContent.this) { // Fetch the actual mark. int mark = positionMarks[index]; // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart...
public int getOffset() { synchronized (GapContent.this) { // Fetch the actual mark. int mark = positionMarks[index]; // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart...
35,787
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
35,793
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
35,794
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
public Position createPosition(final int offset) throws BadLocationException { // We try to find a GapContentPosition at the specified offset and return // that. Otherwise we must create a new one. GapContentPosition pos = null; Set positionSet = positions.keySet(); for (Iterator i = positionSet.itera...
35,795
private void dumpMarks() { System.err.print("positionMarks: "); for (int i = 0; i < numMarks; i++) System.err.print(positionMarks[i] + ", "); System.err.println(); }
private void dumpMarks() { System.err.print("positionMarks: "); for (int i = 0; i < numMarks; i++) System.err.print(positionMarks[i] + ", "); System.err.println(); }
35,796
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
35,797
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
35,798
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
int beforeGap = gapStart - where; if (txt.isPartialReturn()) { public void getChars(int where, int len, Segment txt) int beforeGap = gapStart - where; if (txt.isPartialReturn()) { int beforeGap = gapStart - where; if (txt.isPartialReturn()) { int beforeGap = gapStart - where; if (txt.isPartialReturn()) { throws ...
35,799
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
35,800
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
public void getChars(int where, int len, Segment txt) throws BadLocationException { // check arguments int length = length(); if (where < 0) throw new BadLocationException("the where argument may not be below zero", where); if (where >= length) throw new BadLocationException("the where arg...
35,801
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
35,803
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
35,804
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
35,805
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffs = offset + length; Set positionSet = positions.keySet(); for (Iterator i = positionSet.iterator(); i.hasNext();) { GapCon...
35,806
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where < 0) throw new BadLocationException("The where argument cannot be smaller" + " than the zero",...
35,807
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if ((where + nitems) >= length) throw new BadLocationException("where + nitems cannot be greater" + " than the content length", where + nitems); String removedText = get...
public UndoableEdit remove(int where, int nitems) throws BadLocationException { // check arguments int length = length(); if ((where + nitems) >= length) throw new BadLocationException("where + nitems cannot be greater" + " than the content length", where + nitems); String removedText = get...
35,808
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
35,809
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
protected void replace(int position, int rmSize, Object addItems, int addSize) { if (gapStart != position) shiftGap(position); // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= add...
35,810
protected void resetMarksAtZero() { if (gapStart != 0) return; positionMarks[0] = 0; }
protected void resetMarksAtZero() { if (gapStart != 0) return; for (int i = 0; i < marks.size(); i++) { Mark m = (Mark) marks.get(i); if (m.mark <= gapEnd) m.mark = 0; } }
35,812
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
35,813
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. adjustPositionsInRange(gapEnd, buffer.lengt...
35,814
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
35,816
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
35,817
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
35,818
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). a...
35,819
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd, false); gapEnd = newGapEnd; }
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; int adjIndex = searchFirst(gapEnd); int count = marks.size(); for (int i = adjIndex; i < count; i++) ...
35,820
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; setPositionsInRange(newGapStart, gapStart, false); gapStart = newGapStart; }
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; int adjIndex = searchFirst(newGapStart); int count = marks.size(); for (int i = ad...
35,822
protected void updateUndoPositions(Vector positions, int offset, int length) { // We do nothing here. }
for (Iterator i = positions.iterator(); i.hasNext();) { UndoPosRef undoPosRef = (UndoPosRef) i.next(); undoPosRef.reset(); } Collections.sort(marks); for (Iterator i = positions.iterator(); i.hasNext();) { UndoPosRef undoPosRef = (UndoPosRef) i.next(); undoPosRef.reset(); } Collections.sort(marks); protectedfor (It...
35,824