bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public WCharSeqHolder(char[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public WCharSeqHolder() { value = initial_value; typecode.setLength(value.length); } | 10,144 |
public WCharSeqHolder(char[] initial_value) { value = initial_value; typecode.setLength(value.length); } | public WCharSeqHolder(char[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 10,145 |
WhenNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; } | WhenNode(Expr test) { super(children, next); this.test = test; } | 10,146 |
WhenNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; } | WhenNode(TemplateNode children, TemplateNode next, Expr test) { this.test = test; } | 10,147 |
TemplateNode clone(Stylesheet stylesheet) { return new WhenNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet)); } | TemplateNode clone(Stylesheet stylesheet) { return new WhenNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet)); } | 10,148 |
public String getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); return a.localName; } | public QName getAttributeName(int index) { Attribute a = (Attribute) attrs.get(index); return a.localName; } | 10,150 |
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); } | 10,151 |
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]), ... | 10,152 |
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]), ... | 10,153 |
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]), ... | 10,154 |
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]), ... | 10,155 |
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... | 10,156 |
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... | 10,157 |
String getAttributeName(int index); | QName getAttributeName(int index); | 10,158 |
String getAttributeValue(int index); | String getAttributeValue(String namespaceURI, String localName); | 10,159 |
public DefaultComboBoxModel(Object[] items) { // TODO } // DefaultComboBoxModel() | public DefaultComboBoxModel() { // TODO } // DefaultComboBoxModel() | 10,160 |
public Object getItem(); | Object getItem(); | 10,161 |
public void addElement(Object object); | void addElement(Object object); | 10,162 |
public Object getSelectedItem(); | Object getSelectedItem(); | 10,163 |
public void insertElementAt(Object object, int index); | void insertElementAt(Object object, int index); | 10,164 |
public void removeElementAt(int index); | void removeElementAt(int index); | 10,165 |
public void removeElement(Object object); | void removeElement(Object object); | 10,166 |
public void removeActionListener(ActionListener listener); | void removeActionListener(ActionListener listener); | 10,167 |
public void addActionListener(ActionListener listener); | void addActionListener(ActionListener listener); | 10,168 |
public void setSelectedItem(Object item); | void setSelectedItem(Object item); | 10,169 |
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... | 10,170 |
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;... | 10,171 |
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 { ... | 10,172 |
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... | 10,173 |
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... | 10,174 |
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); ... | 10,175 |
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); ... | 10,176 |
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... | 10,177 |
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) { ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListData... | 10,178 |
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... | 10,179 |
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... | 10,180 |
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... | 10,181 |
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... | 10,182 |
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... | 10,183 |
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... | 10,184 |
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... | 10,185 |
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... | 10,186 |
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... | 10,187 |
public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } // addRow() | public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } // addRow() | 10,188 |
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[] ... | 10,189 |
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... | 10,190 |
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); } | public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); } | 10,191 |
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... | 10,192 |
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 = isDefa... | 10,193 |
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 ... | 10,194 |
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) ... | 10,195 |
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... | 10,196 |
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... | 10,197 |
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, byte[] pixels, int offset, int scansize); | 10,198 |
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"); ... | 10,199 |
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-re... | 10,200 |
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); } | 10,201 |
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... | 10,202 |
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... | 10,203 |
public String getSystemId() { return baseID; } // getSystemId() | public String getSystemId() { return baseID; } // getSystemId() | 10,205 |
public void setSystemId(String systemID) { baseID = systemID; } // setSystemId() | public void setSystemId(String systemID) { baseID = systemID; } // setSystemId() | 10,206 |
public Enumeration breadthFirstEnumeration() { return null; // TODO: Implement me. } | public Enumeration breadthFirstEnumeration() { return new BreadthFirstEnumeration(this); // TODO: Implement me. } | 10,207 |
public Enumeration postorderEnumeration() { return null; // TODO: Implement me. } | public Enumeration postorderEnumeration() { return new PostorderEnumeration(this); // TODO: Implement me. } | 10,208 |
public Enumeration preorderEnumeration() { return null; // TODO: Implement me. } | public Enumeration preorderEnumeration() { return new PreorderEnumeration(this); // TODO: Implement me. } | 10,209 |
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... | 10,211 |
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... | 10,212 |
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... | 10,213 |
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... | 10,214 |
public Style addStyle(String nm, Style parent); | Style addStyle(String nm, Style parent); | 10,215 |
public Element getCharacterElement(int position); | Element getCharacterElement(int position); | 10,216 |
public Style getLogicalStyle(int position); | Style getLogicalStyle(int position); | 10,217 |
public abstract Element getParagraphElement(int position); | Element getParagraphElement(int position); | 10,218 |
public Style getStyle(String nm); | Style getStyle(String nm); | 10,219 |
public void removeStyle(String nm); | void removeStyle(String nm); | 10,220 |
public void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | 10,221 |
public void setLogicalStyle(int position, Style style); | void setLogicalStyle(int position, Style style); | 10,222 |
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... | 10,223 |
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... | 10,225 |
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; } | 10,226 |
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); ... | 10,227 |
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... | 10,228 |
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(); } | 10,229 |
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... | 10,230 |
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); ... | 10,231 |
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; } | 10,233 |
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; } | 10,234 |
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; } | 10,235 |
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... | 10,237 |
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); } } | 10,238 |
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); } } | 10,239 |
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); } } | 10,240 |
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); } } | 10,241 |
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); | 10,242 |
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(); } | 10,243 |
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) ... | 10,244 |
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) {... | 10,245 |
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; if (myPeer != null) { menu.addNotify(); myPeer.addHelpM... | 10,246 |
private void setOffset(int offset) { this.offset = this.offset >= 0 ? offset : -1; } | void setOffset(int offset) { this.offset = this.offset >= 0 ? offset : -1; } | 10,247 |
private void checkLocation(int where, int len) throws BadLocationException { if (where < 0) throw new BadLocationException("Invalid location", 1); else if (where > this.count) throw new BadLocationException("Invalid location", this.count); else if ((where + len)>this.count) throw new BadLocat... | void checkLocation(int where, int len) throws BadLocationException { if (where < 0) throw new BadLocationException("Invalid location", 1); else if (where > this.count) throw new BadLocationException("Invalid location", this.count); else if ((where + len)>this.count) throw new BadLocationExcep... | 10,248 |
public DataBufferByte(int size, int numBanks) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; } | public DataBufferByte(int size) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; } | 10,249 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.