bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void updateUI() { setUI((ScrollBarUI) UIManager.getUI(this)); invalidate(); repaint(); }
public void updateUI() { setUI((ScrollBarUI) UIManager.getUI(this)); invalidate(); repaint(); }
21,986
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
21,987
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; ...
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; ...
21,989
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
21,991
void updateCurrentVisiblePath() { Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) ||...
void updateCurrentVisiblePath() { Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) ||...
21,993
public HeapHelperImpl(VmArchitecture arch) { if (Vm.getVm() != null) { throw new SecurityException( "Cannot instantiate HeapHelpImpl at runtime"); } final int refSize = arch.getReferenceSize(); flagsOffset = ObjectLayout.FLAGS_SLOT * refSize; tibOffset = ObjectLayout.TIB_S...
public HeapHelperImpl(VmArchitecture arch) { if (Vm.getVm() != null) { throw new SecurityException( "Cannot instantiate HeapHelpImpl at runtime"); } final int refSize = arch.getReferenceSize(); flagsOffset = ObjectLayout.FLAGS_SLOT * refSize; }
21,994
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arrays...
21,995
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
21,996
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
21,997
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
21,998
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
22,000
public Document createDocument(String namespaceURI, String rootName, DocumentType doctype) { Document doc = new DomDocument(this); Element root = null; if (rootName != null) { root = doc.createElementNS(namespaceURI, rootName); ...
public Document createDocument(String namespaceURI, String rootName, DocumentType doctype) { Document doc = createDocument(); Element root = null; if (rootName != null) { root = doc.createElementNS(namespaceURI, rootName); ...
22,001
public InvalidTypeForEncoding(String why) { super(why); }
public InvalidTypeForEncoding() { super(why); }
22,004
public InvalidTypeForEncoding(String why) { super(why); }
public InvalidTypeForEncoding(String why) { }
22,005
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
22,006
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
22,007
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
22,008
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ...
22,009
print(Graphics graphics, PageFormat format, int page_number) throws PrinterException;
int print(Graphics graphics, PageFormat format, int page_number) throws PrinterException;
22,010
public boolean selfTest() { if (valid == null) { valid = new Boolean( DIGEST0.equals(Util.toString(new Whirlpool().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = new Boolean( DIGEST0.equals(Util.toString(new Whirlpool().digest()))); } return valid.booleanValue(); }
22,011
public char[] getPassword() { return null; // TODO }
public char[] getPassword() { return new char[0]; // TODO }
22,012
protected final int getDataLength(int status) throws InvalidMidiDataException { int originalStatus = status; if ((status & 0xF0) != 0xF0) status &= 0xF0; switch (status) { case NOTE_OFF: case NOTE_ON: case POLY_PRESSURE: case CONTROL_CHANGE: case PITCH_BEND: case SO...
protected final int getDataLength(int status) throws InvalidMidiDataException { int originalStatus = status; if ((status & 0xF0) != 0xF0) status &= 0xF0; switch (status) { case NOTE_OFF: case NOTE_ON: case POLY_PRESSURE: case CONTROL_CHANGE: case PITCH_BEND: case SO...
22,013
public final int getAlpha (int pixel) { if (opaque || pixel >= map_size) return 255; return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); }
public final int getAlpha (int pixel) { if (opaque && pixel != trans) return 255; return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); }
22,014
public final int getAlpha (int pixel) { if (opaque || pixel >= map_size) return 255; return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); }
public final int getAlpha (int pixel) { if (opaque || pixel >= map_size) return 255; return (0xFF000000 & rgb[pixel]) >> 24; }
22,015
public final void getAlphas (byte[] a) { getComponents (a, 3); }
public final void getAlphas (byte[] a) { int i; for (i = 0; i < map_size; i++) if (i == trans) a[i] = (byte) 0; else a[i] = (byte) ((0xFF000000 & rgb[i]) >> 24); }
22,016
public final int getBlue (int pixel) { if (pixel < map_size) return (int) (generateMask (0) & rgb[pixel]); return 0; }
public final int getBlue (int pixel) { if (pixel < map_size) return 0x000000FF & rgb[pixel]; return 0; }
22,017
public final void getBlues (byte[] b) { getComponents (b, 0); }
public final void getBlues (byte[] b) { int i; for (i = 0; i < map_size; i++) b[i] = (byte) (0x000000FF & rgb[i]); }
22,018
public final int getGreen (int pixel) { if (pixel < map_size) return (int) ((generateMask (1) & rgb[pixel]) >> (1 * pixel_bits)); return 0; }
public final int getGreen (int pixel) { if (pixel < map_size) return (0x0000FF00 & rgb[pixel]) >> 8; return 0; }
22,019
public final void getGreens (byte[] g) { getComponents (g, 1); }
public final void getGreens (byte[] g) { int i; for (i = 0; i < map_size; i++) g[i] = (byte) ((0x0000FF00 & rgb[i]) >> 8); }
22,020
public final int getRed (int pixel) { if (pixel < map_size) return (int) ((generateMask (2) & rgb[pixel]) >> (2 * pixel_bits)); return 0; }
public final int getRed (int pixel) { if (pixel < map_size) return (0x00FF0000 & rgb[pixel]) >> 16; return 0; }
22,021
public final void getReds (byte[] r) { getComponents (r, 2); }
public final void getReds (byte[] r) { int i; for (i = 0; i < map_size; i++) r[i] = (byte) ((0x00FF0000 & rgb[i]) >> 16); }
22,022
public PrinterJob() { }
public PrinterJob() { }
22,024
public abstract void cancel();
cancel();
22,025
public PageFormat defaultPage() { return (new PageFormat()); }
public PageFormat defaultPage() { return (new PageFormat()); }
22,026
public abstract int getCopies();
getCopies();
22,027
public abstract String getJobName();
getJobName();
22,028
public static PrinterJob getPrinterJob() { // FIXME: Need to fix this to load a default implementation instance. return (null); }
getPrinterJob() { // FIXME: Need to fix this to load a default implementation instance. return (null); }
22,029
public abstract String getUserName();
getUserName();
22,030
public abstract boolean isCancelled();
isCancelled();
22,031
public abstract PageFormat pageDialog(PageFormat page_format);
pageDialog(PageFormat page_format);
22,032
public abstract void print();
public abstract void print () throws PrinterException;
22,033
public abstract boolean printDialog();
printDialog();
22,034
public abstract void setCopies();
public abstract void setCopies (int copies);
22,035
public abstract String setJobName(String job_name);
public abstract void setJobName (String job_name);
22,036
public abstract void setPageable(Pageable pageable);
setPageable(Pageable pageable);
22,037
public abstract void setPrintable(Printable printable);
setPrintable(Printable printable);
22,038
public abstract PageFormat validatePage(PageFormat page);
validatePage(PageFormat page);
22,039
public Object getNextValue() { Number num; if (value instanceof Double) num = new Double(value.doubleValue() + stepSize.doubleValue()); else if (value instanceof Float) num = new Double(value.floatValue() + stepSize.floatValue()); else if (value instanceof Long) num = new Long(value.longVa...
public Object getNextValue() { Number num; if (value instanceof Double) num = new Double(value.doubleValue() + stepSize.doubleValue()); else if (value instanceof Float) num = new Double(value.floatValue() + stepSize.floatValue()); else if (value instanceof Long) num = new Long(value.longVa...
22,040
public Object getPreviousValue() { Number num; if (value instanceof Double) num = new Double(value.doubleValue() - stepSize.doubleValue()); else if (value instanceof Float) num = new Double(value.floatValue() - stepSize.floatValue()); else if (value instanceof Long) num = new Long(value.lo...
public Object getPreviousValue() { Number num; if (value instanceof Double) num = new Double(value.doubleValue() - stepSize.doubleValue()); else if (value instanceof Float) num = new Double(value.floatValue() - stepSize.floatValue()); else if (value instanceof Long) num = new Long(value.lo...
22,041
protected Graphics getComponentGraphics(Graphics g) { Graphics g2 = g.create(); g2.setFont(this.getFont()); g2.setColor(this.getForeground()); return g2; }
protected Graphics getComponentGraphics(Graphics g) { Graphics g2 = g.create(); g2.setFont(this.getFont()); g2.setColor(this.getForeground()); return g2; }
22,042
public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferredSize(); // make sure ...
public Dimension getPreferredSize() { Dimension prefSize = null; if (preferredSize != null) prefSize = preferredSize; else if (ui != null) { Dimension s = ui.getPreferredSize(this); if (s != null) prefSize = s; } if (prefSize == null) prefSize = super.getPreferredSize(); // make ...
22,044
public DataBufferByte(int size, int numBanks) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; }
public DataBufferByte(int size, int numBanks) { super(TYPE_BYTE, size, numBanks); bankData = new byte[numBanks][size]; data = bankData[0]; }
22,045
void removePropertyChangeListener(PropertyChangeListener listener) { propertyChangeSupport.removePropertyChangeListener(listener); }
public void removePropertyChangeListener(PropertyChangeListener listener) { propertyChangeSupport.removePropertyChangeListener(listener); }
22,046
protected void doResolve(AbstractVmClassLoader clc) { if (vmClass == null) { final String name = getClassName(); try { vmClass = clc.loadClass(name, true); } catch (ClassNotFoundException ex) { throw (NoClassDefFoundError)new NoClassDefFoundError(name).initCause(ex); } } }
protected void doResolve(VmClassLoader clc) { if (vmClass == null) { final String name = getClassName(); try { vmClass = clc.loadClass(name, true); } catch (ClassNotFoundException ex) { throw (NoClassDefFoundError)new NoClassDefFoundError(name).initCause(ex); } } }
22,049
public void updateUI() { setUI((MenuBarUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((MenuBarUI) UIManager.getUI(this)); }
22,051
public abstract void addPropertyChangeListener(PropertyChangeListener l);
void addPropertyChangeListener(PropertyChangeListener l);
22,052
public abstract void removePropertyChangeListener(PropertyChangeListener l);
void removePropertyChangeListener(PropertyChangeListener l);
22,053
public abstract void setObject(Object bean);
void setObject(Object bean);
22,054
public RadeonVgaState(boolean hasCRTC2, RadeonVgaIO io) { this.common = new RadeonCommonRegs(); this.crtc = new RadeonCrtcRegs(); this.fp = new RadeonFpRegs(); this.pll = new RadeonPllRegs(false); this.pll2 = hasCRTC2 ? new RadeonPllRegs(true) : null; saveFromVGA(io); }
public RadeonVgaState(boolean hasCRTC2, RadeonVgaIO io) { this.common = new RadeonCommonRegs(); this.crtc = new RadeonCrtcRegs(); this.fp = new RadeonFpRegs(); this.pll = new RadeonPllRegs(false); saveFromVGA(io); }
22,055
public Object clone() { OID oid = new OID(); oid.components = this.components; oid.strRep = this.strRep; return oid; }
public Object clone() { OID oid = new OID(); oid.components = this.components; oid.strRep = this.strRep; return oid; }
22,056
public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "Istring", orb.create_string_tc(0)); }
public static TypeCode type() { ORB orb = OrbRestricted.Singleton; return orb.create_alias_tc(id(), "Istring", orb.create_string_tc(0)); }
22,057
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
private static int writeString(OutputStream out, int tag, String str) throws IOException { byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: ...
22,058
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
22,059
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
22,060
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
22,061
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
private static int writeString(OutputStream out, int tag, String str) throws IOException { Charset charset = null; byte[] b = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case...
22,062
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
22,063
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
22,064
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
void endDragging(MouseEvent e) { header.setDraggedColumn(null); // Return if the mouse have left the header area while pressed. if (e == null) { header.repaint(draggingHeaderRect); draggingHeaderRect = null; return; } else draggingHeaderRect = null; ...
22,065
public void mouseExited(MouseEvent e) { if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorderingAllowed()) endDragging(null); }
public void mouseExited(MouseEvent e) { if (header.getResizingColumn() != null && header.getResizingAllowed()) endResizing(); if (header.getDraggedColumn() != null && header.getReorderingAllowed()) endDragging(null); }
22,066
public void setRect(Raster srcRaster) { setRect(srcRaster, 0, 0); }
public void setRect(Raster srcRaster) { setRect(srcRaster, 0, 0); }
22,067
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private static String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO64...
22,068
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private String makeString(int tag, byte[] value) throws IOException { switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRING: case GENERAL_...
22,069
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
22,070
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
22,071
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
22,072
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRIN...
22,073
protected String paramString() { return "JToolBar"; } // paramString()
protected String paramString() { return "JToolBar"; } // paramString()
22,074
public Edit(Element e, int i, Element[] removed, Element[] added) { this.e = e; this.index = i; this.removed = removed; this.added = added; }
public Edit(Element e, int i, Element[] removed, Element[] added) { this.e = e; this.index = i; this.removed = removed; this.added = added; }
22,075
protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); Element[] res = split(el, offset, 0); BranchElement par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getEl...
protected void changeUpdate() { // Split up the element at the start offset if necessary. Element el = getCharacterElement(offset); Element[] res = split(el, offset, 0); BranchElement par = (BranchElement) el.getParentElement(); if (res[1] != null) { int index = par.getEl...
22,076
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
22,077
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
public void insert(int offset, int length, ElementSpec[] data, DefaultDocumentEvent ev) { if (length == 0) return; this.offset = offset; this.length = length; this.endOffset = offset + length; documentEvent = ev; // Push the root and the paragraph at off...
22,078
private void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a JoinPrevious insertion //...
private void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a JoinPrevious insertion //...
22,079
private void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a JoinPrevious insertion //...
private void insertContentTag(ElementSpec tag) { int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinPreviousDirection) { // The mauve tests to this class show that a JoinPrevious insertion //...
22,080
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
22,081
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
22,082
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
22,083
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
22,084
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
private void insertFracture(ElementSpec tag) { // This is the parent of the paragraph about to be fractured. We will // create a new child of this parent. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); // This is the o...
22,085
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
22,086
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
private Element insertParagraph(BranchElement par, int offset) { Element current = par.getElement(par.getElementIndex(offset)); Element[] res = split(current, offset, 0); int index = par.getElementIndex(offset); Element ret; if (res[1] != null) { Element[] removed; ...
22,087
protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getEleme...
protected void insertUpdate(ElementSpec[] data) { int i = 0; if (data[0].getType() == ElementSpec.ContentType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = c...
22,088
protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getEleme...
protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getEleme...
22,089
protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getEleme...
protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getEleme...
22,090
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
22,091
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
22,092
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
protected void removeUpdate() { int startParagraph = root.getElementIndex(offset); int endParagraph = root.getElementIndex(offset + length); Element[] empty = new Element[0]; int removeStart = -1; int removeEnd = -1; for (int i = startParagraph; i < endParagraph; i++) { ...
22,093
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
22,094
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
22,095
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
private Element[] split(Element el, int offset, int space) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element is an instance of ...
22,096