bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public String getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); return a.localName; }
public String getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); String namespaceURI = getNamespaceURI(a.prefix); return new QName(namespaceURI, a.localName, a.prefix); }
16,471
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
16,472
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
16,473
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
16,474
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
public static void main(String[] args) throws Exception { boolean xIncludeAware = false; if (args.length > 1 && "-x".equals(args[1])) xIncludeAware = true; XMLParser p = new XMLParser(new java.io.FileInputStream(args[0]), absolutize(null, args[0]), ...
16,475
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
16,476
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
public int next() throws XMLStreamException { if (lookahead) { lookahead = false; return event; } if (event == XMLStreamConstants.END_ELEMENT) { // Pop namespace context if (namespaceAware && !namespaces.isEmpty()) namespaces.removeFirst(); // Pop b...
16,477
String getAttributeName(int index);
String getAttributeName(int index);
16,478
String getAttributeValue(int index);
String getAttributeValue(int index);
16,479
public void reset() { crc = 0; }
public void reset() { crc = 0; }
16,480
public DefaultComboBoxModel(Object[] items) { // TODO } // DefaultComboBoxModel()
public DefaultComboBoxModel(Object[] items) { // TODO } // DefaultComboBoxModel()
16,481
public Object getItem();
public Object getItem();
16,482
public void addElement(Object object);
public void addElement(Object object);
16,483
public Object getSelectedItem();
public Object getSelectedItem();
16,484
public void insertElementAt(Object object, int index);
public void insertElementAt(Object object, int index);
16,485
public void removeElementAt(int index);
public void removeElementAt(int index);
16,486
public void removeElement(Object object);
public void removeElement(Object object);
16,487
public void removeActionListener(ActionListener listener);
public void removeActionListener(ActionListener listener);
16,488
public void addActionListener(ActionListener listener);
public void addActionListener(ActionListener listener);
16,489
public void setSelectedItem(Object item);
public void setSelectedItem(Object item);
16,490
public void buildCodes() { int numSymbols = freqs.length; int[] nextCode = new int[maxLength]; int code = 0; codes = new short[freqs.length]; if (DeflaterConstants.DEBUGGING) System.err.println("buildCodes: "+freqs.length); for (int bits = 0; bits < maxLength; bits++) { nextCode[bit...
public void buildCodes() { int[] nextCode = new int[maxLength]; int code = 0; codes = new short[freqs.length]; if (DeflaterConstants.DEBUGGING) System.err.println("buildCodes: "+freqs.length); for (int bits = 0; bits < maxLength; bits++) { nextCode[bits] = code; code += bl_counts[...
16,491
public GeneralSecurityException(String msg) { super(msg); }
public GeneralSecurityException() { super(msg); }
16,492
public GeneralSecurityException(String msg) { super(msg); }
public GeneralSecurityException(String msg) { }
16,493
public static void main(String[] args) { // Check for the -iiop or -giop keys. If one of these keys is present, // forward all call to GRMIC. for (int i = 0; i < args.length; i++) { if (args[i].equals("-giop") || args[i].equals("-iiop")) { GRMIC.main(args); return;...
public static void main(String[] args) { // Check for the -iiop or -giop keys. If one of these keys is present, // forward all call to GRMIC. for (int i = 0; i < args.length; i++) { if (args[i].equals("-giop") || args[i].equals("-iiop")) { GRMIC.main(args); return;...
16,494
public static void main(String[] args) { boolean noWrite = false; boolean verbose = false; String HelpPath = "giop/GRMIC.txt"; HelpPrinter.checkHelpKey(args, HelpPath); File output = new File("."); if (args.length == 0) { HelpPrinter.printHelpAndExit(HelpPath); } else { ...
public static void main(String[] args) { boolean noWrite = false; boolean verbose = false; String HelpPath = "giop/GRMIC.txt"; HelpPrinter.checkHelpKey(args, HelpPath); File output = new File("."); if (args.length == 0) { HelpPrinter.printHelpAndExit(HelpPath); } else { ...
16,495
public static void printHelpAndExit(String helpResourcePath) { InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); BufferedReader r = new BufferedReader(new InputStreamReader(in)); try { String s; while ((s = r.readLine()) != null) { System.out.pr...
public static void printHelpAndExit(String helpResourcePath) { InputStream in = HelpPrinter.class.getResourceAsStream(helpResourcePath); BufferedReader r = new BufferedReader(new InputStreamReader(in)); try { String s; while ((s = r.readLine()) != null) { System.out.pr...
16,496
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height); // draw the outer dark line g.setColor(thumbDarkShadowColor); g.drawRec...
16,497
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
16,498
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { Color saved = g.getColor(); Point x; Point y; Point z; Polygon lines; g.setColor(thumbHighlightColor); x = new Point(thumbBounds.x + 1, thumbBounds.y + 1); y = new Point(x); y.translate(thumbBounds.width - 2, 0); ...
16,499
protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); scrollPane.setVerticalScrollBarPolicy (JScrollPane.VE...
protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); scrollPane.setVerticalScrollBarPolicy (JScrollPane.VE...
16,500
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
16,501
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
16,502
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
16,503
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners...
16,504
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent()
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent()
16,505
public ButtonGroup() { }
public ButtonGroup() { }
16,506
public void add(AbstractButton b) { b.getModel().setGroup(this); v.addElement(b); }
public void add(AbstractButton b) { b.getModel().setGroup(this); v.addElement(b); }
16,507
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,508
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,509
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,510
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,511
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,512
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); dirDescText = defaults.getString("FileChooser.directoryDescriptionText"); fileDescText = defaults.getString("FileChooser.fileDescriptionText"); acceptAllFileFilterText = defaults.getString("FileChoo...
16,513
public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } // addRow()
public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } // addRow()
16,514
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new IllegalArgumentException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index < begin_index)) throw new IllegalArgumentException("bad range"); AttributeRang...
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new NullPointerException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index < begin_index)) throw new IllegalArgumentException("bad range"); AttributeRange[] ...
16,515
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new IllegalArgumentException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index < begin_index)) throw new IllegalArgumentException("bad range"); AttributeRang...
public void addAttributes(Map attributes, int begin_index, int end_index) { if (attributes == null) throw new IllegalArgumentException("null attribute"); if ((begin_index < 0) || (end_index > sci.getEndIndex()) || (end_index <= begin_index)) throw new IllegalArgumentException("bad range"); AttributeRan...
16,516
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); }
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); }
16,517
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { super(children, next); this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; t...
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { super(children, next); this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; t...
16,518
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { super(children, next); this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; t...
ApplyTemplatesNode(TemplateNode children, TemplateNode next, Expr select, QName mode, List sortKeys, List withParams, boolean isDefault) { this.select = select; this.mode = mode; this.sortKeys = sortKeys; this.withParams = withParams; this.isDefault = isDefau...
16,519
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ...
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ...
16,520
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); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
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); if (ret != null && ret instanceof Collection) { if (withParams != null) ...
16,521
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
16,522
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), tran...
16,523
void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int offset, int scansize);
void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int offset, int scansize);
16,524
LiteralNode(TemplateNode children, TemplateNode next, Node source) { super(children, next); this.source = source; if (source.getNodeType() == Node.ELEMENT_NODE) { NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ...
LiteralNode(Node source) { super(children, next); this.source = source; if (source.getNodeType() == Node.ELEMENT_NODE) { NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); ...
16,525
LiteralNode(TemplateNode children, TemplateNode next, Node source) { super(children, next); this.source = source; if (source.getNodeType() == Node.ELEMENT_NODE) { NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, ...
LiteralNode(TemplateNode children, TemplateNode next, Node source) { this.source = source; if (source.getNodeType() == Node.ELEMENT_NODE) { NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-res...
16,526
TemplateNode clone(Stylesheet stylesheet) { return new LiteralNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), source); }
TemplateNode clone(Stylesheet stylesheet) { return new LiteralNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), source); }
16,527
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node result = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); short nodeType = sourc...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node result = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); short nodeType = sourc...
16,528
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node result = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); short nodeType = sourc...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node result = null; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); short nodeType = sourc...
16,529
public String getSystemId() { return baseID; } // getSystemId()
public String getSystemId() { return baseID; } // getSystemId()
16,531
public void setNode(Node node) { this.node = node; } // setNode()
public void setNode(Node node) { this.node = node; } // setNode()
16,532
public void setNode(Node node) { this.node = node; } // setNode()
public void setNode(Node node) { this.node = node; } // setNode()
16,533
public void setSystemId(String systemID) { baseID = systemID; } // setSystemId()
public void setSystemId(String systemID) { baseID = systemID; } // setSystemId()
16,534
public Enumeration breadthFirstEnumeration() { return null; // TODO: Implement me. }
public Enumeration breadthFirstEnumeration() { return new BreadthFirstEnumeration(this); // TODO: Implement me. }
16,535
public Enumeration postorderEnumeration() { return null; // TODO: Implement me. }
public Enumeration postorderEnumeration() { return new PostorderEnumeration(this); // TODO: Implement me. }
16,538
public Enumeration preorderEnumeration() { return null; // TODO: Implement me. }
public Enumeration preorderEnumeration() { return new PreorderEnumeration(this); // TODO: Implement me. }
16,539
public void removeFromParent() { // FIXME: IS this implementation really correct ? parent = null; }
parent.remove(this); parent.remove(this); publicparent.remove(this); voidparent.remove(this); removeFromParent()parent.remove(this); parent.remove(this); {parent.remove(this); parent.remove(this); parent.remove(this); parent.remove(this); //parent.remove(this); FIXME:parent.remove(this); ISparent.remove(this); thispare...
16,540
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
16,541
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
16,542
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
16,543
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g...
16,544
public Style addStyle(String nm, Style parent);
public Style addStyle(String nm, Style parent);
16,545
public Element getCharacterElement(int position);
public Element getCharacterElement(int position);
16,546
public Style getLogicalStyle(int position);
public Style getLogicalStyle(int position);
16,547
public abstract Element getParagraphElement(int position);
public abstract Element getParagraphElement(int position);
16,548
public Style getStyle(String nm);
public Style getStyle(String nm);
16,549
public void removeStyle(String nm);
public void removeStyle(String nm);
16,550
public void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace);
public void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace);
16,551
public void setLogicalStyle(int position, Style style);
public void setLogicalStyle(int position, Style style);
16,552
public void layoutContainer(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; distributeExtraSpace(); Insets insets = split.getInsets(); Dimension dims = split.getSize(); int loc = getInitialLocation(insets); int availab...
public void layoutContainer(Container container) { if (container instanceof JSplitPane) { JSplitPane split = (JSplitPane) container; distributeExtraSpace(); Insets insets = split.getInsets(); Dimension dims = split.getSize(); int loc = getInitialLocation(insets); int availab...
16,553
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JSplitPane.DIVIDER_SIZE_PROPERTY)) { int newSize = splitPane.getDividerSize(); int[] tmpSizes = layoutManager.getSizes(); dividerSize = tmpSizes[2]; int newSpace = newSize - tmpSizes[2]; tmpSizes[2] = newSize...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JSplitPane.DIVIDER_SIZE_PROPERTY)) { int newSize = splitPane.getDividerSize(); int[] tmpSizes = layoutManager.getSizes(); dividerSize = tmpSizes[2]; int newSpace = newSize - tmpSizes[2]; tmpSizes[2] = newSize...
16,555
protected Component createDefaultNonContinuousLayoutDivider() { if (nonContinuousLayoutDivider == null) { nonContinuousLayoutDivider = new Canvas(); nonContinuousLayoutDivider.setBackground(Color.DARK_GRAY); } return nonContinuousLayoutDivider; }
protected Component createDefaultNonContinuousLayoutDivider() { if (nonContinuousLayoutDivider == null) { nonContinuousLayoutDivider = new Canvas(); Color c = UIManager.getColor("SplitPaneDivider.draggingColor"); nonContinuousLayoutDivider.setBackground(c); } return nonContinuousLayoutDivider; }
16,556
protected void finishDraggingTo(int location) { if (nonContinuousLayoutDivider != null) nonContinuousLayoutDivider.setVisible(false); draggingHW = false; location = validLocation(location); dragDividerTo(location); splitPane.setDividerLocation(location); splitPane.setLastDividerLocation(beginD...
protected void finishDraggingTo(int location) { if (nonContinuousLayoutDivider != null) nonContinuousLayoutDivider.setVisible(false); draggingHW = false; location = validLocation(location); splitPane.setDividerLocation(location); splitPane.setLastDividerLocation(beginDragDividerLocation); b...
16,557
protected void finishDraggingTo(int location) { if (nonContinuousLayoutDivider != null) nonContinuousLayoutDivider.setVisible(false); draggingHW = false; location = validLocation(location); dragDividerTo(location); splitPane.setDividerLocation(location); splitPane.setLastDividerLocation(beginD...
protected void finishDraggingTo(int location) { if (nonContinuousLayoutDivider != null) nonContinuousLayoutDivider.setVisible(false); draggingHW = false; location = validLocation(location); dragDividerTo(location); splitPane.setDividerLocation(location); splitPane.setLastDividerLocation(beginD...
16,558
public void setDividerLocation(JSplitPane jc, int location) { dividerLocation = validLocation(location); splitPane.revalidate(); splitPane.repaint(); }
public void setDividerLocation(JSplitPane jc, int location) { dividerLocation = location; splitPane.revalidate(); splitPane.repaint(); }
16,559
protected void startDragging() { Component left = splitPane.getLeftComponent(); Component right = splitPane.getRightComponent(); dividerSize = divider.getDividerSize(); setLastDragLocation(-1); if ((left != null && !left.isLightweight()) || (right != null && !right.isLightweight())) draggi...
protected void startDragging() { Component left = splitPane.getLeftComponent(); Component right = splitPane.getRightComponent(); dividerSize = divider.getDividerSize(); setLastDragLocation(-1); if ((left != null && !left.isLightweight()) || (right != null && !right.isLightweight())) draggi...
16,560
public NodeWriter(Preferences prefs, OutputStream os) { this(prefs, new OutputStreamWriter(os)); }
public NodeWriter(Preferences prefs, OutputStream os) { this.prefs = prefs; Writer w; try { w = new OutputStreamWriter(os, "UTF-8"); } catch (UnsupportedEncodingException uee) { InternalError ie = new InternalError("UTF-8 encoding missing"); ie.initCause(uee); throw ie; } this.bw = new BufferedWriter(w); ...
16,561
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
16,563
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); MenuContainer parent = menu.getParent(); if (parent != null) parent.remove(menu); menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
16,564
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (myPeer != null) { menu.addNotify(); return menu; }
16,565
public synchronized Menu add(Menu menu) { if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; menus.addElement(menu); if (peer != null) menu.addNotify(); return menu; }
myPeer.addMenu(menu); } myPeer.addMenu(menu); } publicmyPeer.addMenu(menu); } synchronizedmyPeer.addMenu(menu); } MenumyPeer.addMenu(menu); } add(MenumyPeer.addMenu(menu); } menu)myPeer.addMenu(menu); } myPeer.addMenu(menu); } {myPeer.addMenu(menu); } myPeer.addMenu(menu); } ifmyPeer.addMenu(menu); } (menu.parentmyPeer...
16,566
public void addNotify() { if (getPeer() == null) setPeer(getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMen...
public void addNotify() { if (getPeer() == null) setPeer(getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMen...
16,567
public void addNotify() { if (getPeer() == null) setPeer(getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMen...
public void addNotify() { if (getPeer() == null) setPeer(getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); peer.addHelpMenu(helpMenu); } }
16,568
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
16,569
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
16,570
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
16,571
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } }
public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); }
16,572
public void removeNotify() { Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu) e.nextElement(); mi.removeNotify(); } frame = null; super.removeNotify(); }
public void removeNotify() { Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu) e.nextElement(); mi.removeNotify(); } super.removeNotify(); }
16,573
public synchronized void setHelpMenu(Menu menu) { if (helpMenu != null) { helpMenu.removeNotify(); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null) {...
public synchronized void setHelpMenu(Menu menu) { if (helpMenu != null) { helpMenu.removeNotify(); helpMenu.setParent(null); } helpMenu = menu; if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null) ...
16,574
public synchronized void setHelpMenu(Menu menu) { if (helpMenu != null) { helpMenu.removeNotify(); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null) {...
public synchronized void setHelpMenu(Menu menu) { if (helpMenu != null) { helpMenu.removeNotify(); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove(menu); menu.parent = this; MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null) {...
16,575