bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
private void insertFirstContentTag(ElementSpec[] data) { ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.lengt...
8,600
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(pos); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIndex...
8,601
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
8,602
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
8,603
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
8,604
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
8,605
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
8,606
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current ...
protected void insertUpdate(ElementSpec[] data) { // Push the root and the paragraph at offset onto the element stack. Element current = root; int index; while (!current.isLeaf()) { index = current.getElementIndex(offset); elementStack.push(current); current ...
8,607
private void recreateLeaves(int start, BranchElement paragraph, boolean onlyContent) { int index = paragraph.getElementIndex(start); Element child = paragraph.getElement(index); AttributeSet atts = child.getAttributes(); if (!onlyContent) { BranchElement newBranch = (Bra...
private void recreateLeaves(int start, BranchElement paragraph, boolean onlyContent) { int index = paragraph.getElementIndex(start); Element child = paragraph.getElement(index); AttributeSet atts = child.getAttributes(); if (!onlyContent) { BranchElement newBranch = (Bra...
8,608
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = c...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = c...
8,609
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = c...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = n...
8,610
short handleInsertAfterNewline(Vector specs, int offset, int endOffset, Element prevParagraph, Element paragraph, AttributeSet a) { if (prevParagraph.getParentElement() == paragraph.getParentElement()) { specs.add(new ElementSpec(a, Element...
short handleInsertAfterNewline(Vector specs, int offset, int endOffset, Element prevParagraph, Element paragraph, AttributeSet a) { if (prevParagraph.getParentElement() == paragraph.getParentElement()) { specs.add(new ElementSpec(a, Element...
8,611
public static String extract(Any an_any) { if (an_any.type().equal(type())) { an_any.type(tString); return an_any.extract_string(); } else throw new BAD_OPERATION("Contains not a string value type"); }
public static String extract(Any an_any) { if (an_any.type().equal(type())) { an_any.type(tString); return an_any.extract_string(); } else { BAD_OPERATION bad = new BAD_OPERATION("String value type expected"); bad.minor = Minor.Any; throw bad; } }
8,612
public void write_value(OutputStream ostream, Serializable a_string) { try { ostream.write_string((String) a_string); } catch (ClassCastException ex) { throw new MARSHAL("String expected"); } }
public void write_value(OutputStream ostream, Serializable a_string) { try { ostream.write_string((String) a_string); } catch (ClassCastException ex) { MARSHAL m = new MARSHAL("String expected"); m.minor = Minor.ClassCast; throw m; } }
8,613
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
private void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with t...
8,614
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 < 0) index1 = -(index1 + 1); // Search ...
8,615
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
8,616
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
void adjustPositionsInRange(int offset, int length, int incr) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the speci...
8,617
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
8,618
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > length()) throw new BadLocationException("The offset was out of the bounds of this" + " buffer", offset); // We store the actual array index in the GapContentPosition. The real // offset i...
8,619
private void dumpPositions() { for (Iterator i = positions.iterator(); i.hasNext();) { GapContentPosition pos = (GapContentPosition) i.next(); System.err.println("position at: " + pos.mark); } }
private void dumpPositions() { for (Iterator i = positions.iterator(); i.hasNext();) { WeakReference r = (WeakReference) i.next(); GapContentPosition pos = (GapContentPosition) r.get(); System.err.println("position at: " + pos.mark); } }
8,620
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
8,621
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
8,622
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector res = v; if (res == null) res = new Vector(); else res.clear(); int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(of...
8,623
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
private void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the...
8,624
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset), new WeakPositionComparator()); if (index1 < 0) index1 = -(index1 + 1); // Search th...
8,625
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
8,626
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); // Search the first index with the specifi...
8,627
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd + 1); gapEnd = newGapEnd; }
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; setPositionsInRange(gapEnd, newGapEnd - gapEnd, newGapEnd); gapEnd = newGapEnd; }
8,628
public String toString() { String result = super.toString(); if (value != UNSET) return value.getClass().getName() + " " + result; return result; }
public String toString() { String result = super.toString(); if (value != UNSET) return value.getClass().getName() + "=" + result; return result; }
8,630
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device is n...
public Ext2FileSystem(Device device) throws FileSystemException { if (device == null) { throw new FileSystemException("null device!"); } this.device = device; try { this.api = (BlockDeviceAPI) device.getAPI(BlockDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new FileSystemException("Device is n...
8,631
public FSEntry getRootEntry() throws IOException { Ext2Debugger.debug("Ext2FileSystem.getRootEntry()", 2); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
public FSEntry getRootEntry() throws IOException { log.debug("Ext2FileSystem.getRootEntry()"); try { if (!closed) { return new Ext2Entry(getINode(Ext2Constants.EXT2_ROOT_INO), "/", Ext2Constants.EXT2_FT_DIR); } } catch (FileSystemException e) { throw new IOException(e); } return null; }
8,632
protected void resolve() throws PluginException { // Do nothing }
protected void resolve(PluginRegistryModel registry) throws PluginException { // Do nothing }
8,633
protected void unresolve() throws PluginException { // Do nothing }
protected void unresolve(PluginRegistryModel registry) throws PluginException { // Do nothing }
8,634
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
8,635
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
8,636
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String value = (Str...
8,637
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
8,638
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
8,639
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
8,640
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
void notifyHeaderHandlers(Headers headers) { for (Iterator i = headers.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String name =(String) entry.getKey(); // Handle Set-Cookie if ("Set-Cookie".equalsIgnoreCase(name)) { String v...
8,641
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c...
protected Rectangle getBoundsForIconOf(JInternalFrame frame) { // IconRects has no order to it. // The icon _must_ be placed in the first free slot (working from // the bottom left corner) // The icon also must not be placed where another icon is placed // (regardless whether that frame is an icon c...
8,643
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
8,644
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + Specification.getInstance().getXM...
8,645
public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare...
public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare...
8,646
protected Graphics getComponentGraphics(Graphics g) { g.setFont (this.getFont()); g.setColor (this.getForeground()); return g; }
protected Graphics getComponentGraphics(Graphics g) { g.setFont (this.getFont()); g.setColor (this.getForeground()); return g; }
8,647
public int getDebugGraphicsOptions() { return 0; }
public int getDebugGraphicsOptions() { String option = System.getProperty("gnu.javax.swing.DebugGraphics"); int options = debugGraphicsOptions; if (option != null && option.length() != 0) { if (options < 0) options = 0; if (option.equals("LOG")) options |= DebugGraphics.LOG_OPTION; else if (option.equals("FLASH"...
8,648
public void removeNotify() { super.removeNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent...
public void removeNotify() { super.removeNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent...
8,649
public String name() { return schemeName; }
public String name() { return schemeName + "-" + md.name(); }
8,653
public StringContent() { this(1); }
public StringContent() { this(10); }
8,654
public void ctx(Context a_context) { m_context = a_context; }
public Context ctx() { m_context = a_context; }
8,657
public void ctx(Context a_context) { m_context = a_context; }
public void ctx(Context a_context) { return m_context; }
8,658
private void p_invoke() throws SystemException, ForwardRequest { binaryReply response = submit(); if (m_rph == null) m_rph = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); m_rph.read(input); // The stream must be aligned sinve v1.2, but only...
private void p_invoke() throws SystemException, ForwardRequest { binaryReply response = submit(); if (m_rph == null) m_rph = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); m_rph.read(input); // The stream must be aligned sinve v1.2, but only...
8,659
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
8,660
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
8,661
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized binaryReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
8,662
protected void write_parameter_buffer(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { try { if (header.version.since_inclusive(1, 2)) { request_part.align(8); } m_parameter_buffer.buffer.writeTo(request_part);...
protected void write_parameter_buffer(MessageHeader header, cdrBufOutput request_part ) throws MARSHAL { try { if (header.version.since_inclusive(1, 2)) { request_part.align(8); } m_parameter_buffer.buffer.writeTo(request_part);...
8,663
public SplitPaneDividerBorder(Color highlight, Color shadow) { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
public SplitPaneDividerBorder() { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
8,664
public SplitPaneDividerBorder(Color highlight, Color shadow) { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
public SplitPaneDividerBorder(Color highlight, Color shadow) { this.highlight = (highlight != null) ? highlight : Color.white; this.shadow = (shadow != null) ? shadow : Color.black; }
8,665
public boolean isBorderOpaque() { return (highlight.getAlpha() == 255) && (shadow.getAlpha() == 255); }
public boolean isBorderOpaque() { return true; }
8,666
public static Border getSplitPaneDividerBorder() { /* See comment in methods above for why this border is not shared. */ return new SplitPaneDividerBorder( UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow")); }
public static Border getSplitPaneDividerBorder() { /* See comment in methods above for why this border is not shared. */ return new SplitPaneDividerBorder( UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow")); }
8,668
private void getEditor() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); int ret = pcFileChooser.showOpenDialog(this); // check to see if something was actually chosen if (ret == JFileChooser.APPROVE_OPTION) { File fi...
private void getEditor() { String workingDir = System.getProperty("user.dir"); TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir); int ret = pcFileChooser.showOpenDialog(this); // check to see if something was actually chosen if (ret == JFileChooser.APPROVE_OPTION) { ...
8,669
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); // set the file filters for the file chooser ExportFileFilter filter; if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool.toPDF")))...
private void getPCFile() { String workingDir = System.getProperty("user.dir"); TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir); // set the file filters for the file chooser ExportFileFilter filter; if (((String)cvtType.getSelectedItem()).equals(LangTool.getString("spool...
8,670
public void addPropertyChangeListener(PropertyChangeListener listener) {}
public void addPropertyChangeListener(PropertyChangeListener listener) { super.addPropertyChangeListener(listener); }
8,671
public AccessibleStateSet getAccessibleStateSet() { return null; }
public AccessibleStateSet getAccessibleStateSet() { return super.getAccessibleStateSet(); }
8,672
public void paint(Graphics g) { Graphics g2 = g; Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), g...
public void paint(Graphics g) { Graphics g2 = g; Image doubleBuffer = null; RepaintManager rm = RepaintManager.currentManager(this); if (isDoubleBuffered() && (rm.isDoubleBufferingEnabled()) && (! Thread.holdsLock(paintLock))) { doubleBuffer = rm.getOffscreenBuffer(this, getWidth(), g...
8,673
protected void paintChildren(Graphics g) { super.paint(g); }
protected void paintChildren(Graphics g) { super.paint(g); }
8,674
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
public final void putClientProperty(Object key, Object value) { Hashtable t = getClientProperties(); Object old = t.get(key); if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
8,675
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
public final void putClientProperty(Object key, Object value) { if (value != null) t.put(key, value); else getClientProperties().remove(key); }
8,676
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
public final void putClientProperty(Object key, Object value) { if (value != null) getClientProperties().put(key, value); else getClientProperties().remove(key); }
8,677
protected boolean isRootPaneCheckingEnabled() { return checking; }
protected boolean isRootPaneCheckingEnabled() { return rootPaneCheckingEnabled; }
8,678
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; }
protected void setRootPaneCheckingEnabled(boolean enabled) { rootPaneCheckingEnabled = enabled; }
8,679
private void sendIt(Frame parent, SendEMail sem) { setSendEMail(sem); new Thread(this).start();// if (parent == null)// parent = new JFrame();//// try {// if (sem.send()) {//// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (Stri...
private void sendIt(Frame parent, SendEMail sem) { setSendEMail(sem); new Thread(this).start();// if (parent == null)// parent = new JFrame();//// try {// if (sem.send()) {//// JOptionPane.showMessageDialog(// parent,// LangTool.getString("em.confirmationMessage")// + " "// + (Stri...
8,681
private JPanel setupMailPanel(String fileName) { JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout()); text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic")); normal = new JRadioButton(LangTool.getString("em.normalmail"),true); screenshot =...
private JPanel setupMailPanel(String fileName) { JPanel semp = new JPanel(); semp.setLayout(new GridBagLayout()); text = new JRadioButton(LangTool.getString("em.text")); graphic = new JRadioButton(LangTool.getString("em.graphic")); normal = new JRadioButton(LangTool.getString("em.normalmail"),true); screenshot =...
8,682
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
8,683
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) clo...
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(JInternalFrame.IS_MAXIMUM_PROPERTY)) { if (frame.isMaximum()) maximizeFrame(frame); else minimizeFrame(frame); } else if (evt.getPropertyName().equals(JInternalFrame.IS_CLOSED_PROPERTY)) clo...
8,685
protected DesktopManager getDesktopManager() { DesktopManager value = frame.getDesktopPane().getDesktopManager(); if (value == null) value = createDesktopManager(); return value; }
protected DesktopManager getDesktopManager() { DesktopManager value = null; JDesktopPane pane = frame.getDesktopPane(); if (pane != null) value = frame.getDesktopPane().getDesktopManager(); if (value == null) value = createDesktopManager(); return value; }
8,686
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { AssertionError ae; ae = new AssertionError("Unexpecte...
public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) ...
8,689
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. initStageDone = true; // Init stage is now over. }
public JApplet() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // Will do set/create. setRootPaneCheckingEnabled(true); // Init stage is now over. }
8,690
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (isRootPaneCheckingEnabled()) getContentPane().add(comp, constraints, index); else super.addImpl(comp, constraints, i...
8,691
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding in the initialization stage use super.add. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabled()) ...
8,692
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
8,693
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
8,694
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
public void setLayout(LayoutManager manager) { // Check if we're in initialization stage. If so, call super.setLayout // otherwise, valid calls go to the content pane if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayou...
8,695
public TaggedXMLDataIOStyle(Array parentArray) { Log.debug("in TaggedXMLDataIOStyle, constructor"); this.parentArray = parentArray; }
public TaggedXMLDataIOStyle(Array parentArray) { this.parentArray = parentArray; }
8,696
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); //write out the tags info String[] tags = getAxisTags(); List axisList = parentArray.getAxisList(); String axisId; String tag; int stop = axisList...
8,697
public final void printMe() { Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg); printerThread.start(); }
public final void printMe() { Thread printerThread = new PrinterThread(screen, font, numCols, numRows, colorBg, (Session)gui); printerThread.start(); }
8,699
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int arrowSize = comboBox.getHeight(); int editorWidth = comboBox.getBounds().width - arrowSize; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, ...
8,702
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
public void layoutContainer(Container parent) { // Position editor component to the left of arrow button if combo box is // editable int editorWidth = comboBox.getBounds().width - arrowButtonWidth - 2; if (comboBox.isEditable()) editor.setBounds(borderInsets.left, borderInsets.top, editorWid...
8,703
public Dimension preferredLayoutSize(Container parent) { Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); // add size for the area that will display selected item d.width += largestItemSize.getWidth(); d.height += largestItemSize.get...
public Dimension preferredLayoutSize(Container parent) { Dimension d = new Dimension(0, 0); if (largestItemSize == null) largestItemSize = getLargestItemSize(); // add size for the area that will display selected item d.width += largestItemSize.getWidth(); d.height += largestItemSize.get...
8,704
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
8,705
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
8,706
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l...
8,707
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. largestItemSize = getLargestItemSize(); comboBox.repaint(); }
public void intervalRemoved(ListDataEvent e) { // recalculate display size of the JComboBox. displaySize = getDisplaySize(); comboBox.repaint(); }
8,708
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) { if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenC...
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) { if (e.getSource() instanceof JComboBox) { arrowButton.getModel().setPressed(true); arrowButton.getModel().setArmed(true); } comboBox.repaint(); if (e.getSource() instanceof BasicArrowButton) toggleOpenC...
8,709
public void configureArrowButton() { arrowButton.addMouseListener(mouseListener); }
public void configureArrowButton() { arrowButton.setEnabled(comboBox.isEnabled()); arrowButton.setFont(comboBox.getFont()); arrowButton.setMargin(new Insets(0, 0, 0, 0)); }
8,711
protected Dimension getDefaultSize() { return new Dimension(6, 17); }
protected Dimension getDefaultSize() { return new Dimension(100, 5); }
8,713
public Dimension getMaximumSize(JComponent c) { return null; }
public Dimension getMaximumSize(JComponent c) { return MAXIMUM_SIZE; }
8,714
public Dimension getMinimumSize(JComponent c) { return null; }
public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); Dimension arrowDim = arrowButton.getPreferredSize(); Dimension result = new Dimension(d.width + arrowDim.width, Math.max(d.height, arrowDim.height)); return result; }
8,715
public Dimension getPreferredSize(JComponent c) { // return null to indicate that combo box's layout will determin its // preferred size return null; }
public Dimension getPreferredSize(JComponent c) { // return null to indicate that combo box's layout will determin its // preferred size return getMinimumSize(c); }
8,716