bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static Throwable read(cdrBufInput input, ServiceContext[] contexts) { input.mark(Integer.MAX_VALUE); int h = input.read_long(); if (h == 0) { // This block reads exception info in the Sun specific format. // (currently we read the exception name only). try { ...
public static Throwable read(BufferredCdrInput input, ServiceContext[] contexts) { input.mark(Integer.MAX_VALUE); int h = input.read_long(); if (h == 0) { // This block reads exception info in the Sun specific format. // (currently we read the exception name only). try { ...
22,398
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
22,400
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("AreaAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
22,401
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("BaseAction.start not implemented"); }
22,402
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("BaseAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. baseTarget = (String) a.getAttribute(HTML.Attribute.TARGET); }
22,403
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("FormAction.end not implemented"); }
22,405
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("FormAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. if (t == HTML.Tag.OPTION) { option = null; } else { if (t == HTML.Tag.TEXTAREA) { inTextArea = false; } else if (t == HTML.Tag.SELECT) { selectModel = null; numOptions = 0; } super.end(t); } }
22,406
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("FormAction.start not implemented"); }
22,407
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("FormAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. if (t == HTML.Tag.INPUT) { String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) { type = "text"; a.addAttribute(HTML.Attribute.TYPE, type); } setModel(type,...
22,408
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
public void end(HTML.Tag t) { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
22,409
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. if (styles != null) { int numStyles = styles.size(); for (int i = 0; i < numStyles; i++) { String style = (String) styles.get(i); getStyleSheet().addRule(style); } } super.end(t); }
22,410
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("HeadAction.start not implemented: "+t); super.start(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. super.start(t, a); }
22,411
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
22,412
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("IsindexAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. blockOpen(HTML.Tag.IMPLIED, new SimpleAttributeSet()); addSpecialElement(t, a); blockClose(HTML.Tag.IMPLIED); }
22,413
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("LinkAction.start not implemented"); }
22,414
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("LinkAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. super.start(t, a); String type = (String) a.getAttribute(HTML.Attribute.TYPE); if (type == null) type = "text/css"; if (type.equals("text/css")) { String rel = (String) a.getAttribu...
22,415
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. print ("MapAction.end not implemented"); }
public void end(HTML.Tag t) throws NotImplementedException { // FIXME: Implement. }
22,417
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("MapAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. }
22,418
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. }
22,419
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. }
22,420
public void end(HTML.Tag t) { blockClose(t); }
public void end(HTML.Tag t) { super.end(t); }
22,421
public void start(HTML.Tag t, MutableAttributeSet a) { blockOpen(t, a); }
public void start(HTML.Tag t, MutableAttributeSet a) { super.start(t, a); }
22,422
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); }
22,423
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); }
22,424
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); }
22,425
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); }
22,426
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"); }
22,427
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; }
22,428
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"); }
22,429
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; }
22,430
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. }
22,431
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. }
22,432
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 s...
22,433
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(); /...
22,434
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(); /...
22,435
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.s...
22,436
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...
22,437
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...
22,438
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...
22,439
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 =...
22,440
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.NameAttr...
22,441
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.Nam...
22,442
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 ...
22,443
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); ...
22,444
public void handleEndOfLineString(String eol) { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); }
public void handleEndOfLineString(String eol) { // FIXME: Implement. }
22,445
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();...
22,446
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(); ...
22,448
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"); }
22,449
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....
22,450
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"); }
22,451
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...
22,452
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); }
22,453
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...
22,454
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) throws NotImplementedException { // TODO: Implement this properly. }
public void processHTMLFrameHyperlinkEvent(HTMLFrameHyperlinkEvent event) { // TODO: Implement this properly. }
22,455
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...
22,458
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...
22,459
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...
22,460
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...
22,461
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...
22,462
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...
22,463
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; ...
22,464
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; ...
22,465
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...
22,468
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...
22,469
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...
22,470
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...
22,472
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(); }
22,473
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(); }
22,474
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...
22,475
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...
22,476
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); ...
22,477
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...
22,478
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(...
22,479
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); ...
22,480
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; }
22,481
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); ...
22,482
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...
22,483
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()...
22,484
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); }
22,485
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); }
22,486
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, ...
22,487
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, ...
22,488
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, ...
22,489
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, ...
22,490
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, ...
22,491
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...
22,492
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...
22,498
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...
22,499
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...
22,500
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(); }
22,501
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...
22,502
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...
22,503
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...
22,505
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...
22,506
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...
22,508
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...
22,509
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...
22,510
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...
22,511
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",...
22,512
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...
22,513