bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public boolean isEqual(AttributeSet attr) { return getAttributeCount() == attr.getAttributeCount() && this.containsAttributes(attr); } | public boolean isEqual(AttributeSet attr) { boolean eq; if (attr instanceof SmallAttributeSet) eq = attr == this; else eq = getAttributeCount() == attr.getAttributeCount() && this.containsAttributes(attr); } | 24,936 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 24,938 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 24,939 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 24,940 |
public StyleContext() { listenerList = new EventListenerList(); styleTable = new Hashtable(); styleTable.put(DEFAULT_STYLE, defaultStyle); } | public StyleContext() { listenerList = new EventListenerList(); styleTable = new Hashtable(); styleTable.put(DEFAULT_STYLE, defaultStyle); } | 24,941 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public synchronized AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); ... | 24,942 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { AttributeSet ret; if (old.getAttributeCount() + 1 < getCompressionThreshold()) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLa... | 24,943 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | 24,944 |
public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | public AttributeSet addAttribute(AttributeSet old, Object name, Object value) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttribute(name, value); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.ad... | 24,945 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public synchronized AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); ... | 24,947 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { AttributeSet ret; if (old.getAttributeCount() + attributes.getAttributeCount() < getCompressionThreshold()) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAtt... | 24,948 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | 24,949 |
public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | public AttributeSet addAttributes(AttributeSet old, AttributeSet attributes) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).addAttributes(attributes); return old; } else { MutableAttributeSet mutable = createLargeAttributeSet(old); mutable.add... | 24,950 |
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); } | public void addChangeListener(ChangeListener listener) { styles.addChangeListener(listener); } | 24,952 |
public Style addStyle(String name, Style parent) { Style newStyle = new NamedStyle(name, parent); if (name != null) styleTable.put(name, newStyle); return newStyle; } | public Style addStyle(String name, Style parent) { Style newStyle = new NamedStyle(name, parent); if (name != null) styles.addAttribute(name, newStyle); return newStyle; } | 24,953 |
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) listenerList.getListeners(ChangeListener.class); } | public ChangeListener[] getChangeListeners() { return styles.getChangeListeners(); } | 24,954 |
public AttributeSet getEmptySet() { AttributeSet e = createSmallAttributeSet(null); if (sharedAttributeSets.containsKey(e)) e = (AttributeSet) sharedAttributeSets.get(e); else sharedAttributeSets.put(e, e); return e; } | public AttributeSet getEmptySet() { AttributeSet e = createSmallAttributeSet(null); if (sharedAttributeSets.containsKey(e)) e = (AttributeSet) sharedAttributeSets.get(e); else sharedAttributeSets.put(e, e); return e; } | 24,956 |
public static Object getStaticAttribute(Object key) { if (key == null) return null; return staticAttributeKeys.get(key); } | public static Object getStaticAttribute(Object key) { if (key == null) return null; return readAttributeKeys.get(key); } | 24,957 |
public Style getStyle(String name) { return (Style) styleTable.get(name); } | public Style getStyle(String name) { return (Style) styles.getAttribute(name); } | 24,958 |
public Enumeration getStyleNames() { return styleTable.keys(); } | public Enumeration getStyleNames() { return styles.getAttributeNames(); } | 24,959 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 24,960 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); if (readAttributeKeys != null) { Object staticKey = static... | 24,961 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 24,962 |
public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | public static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException, IOException { if (in == null || a == null) return; Object key = in.readObject(); Object val = in.readObject(); while (key != null && val != null) { Object staticKey = st... | 24,964 |
public void reclaim(AttributeSet attributes) { if (sharedAttributeSets.containsKey(attributes)) sharedAttributeSets.remove(attributes); } | public void reclaim(AttributeSet attributes) { if (sharedAttributeSets.containsKey(attributes)) sharedAttributeSets.remove(attributes); } | 24,965 |
public static void registerStaticAttributeKey(Object key) { if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key); } | public static void registerStaticAttributeKey(Object key) { if (key != null) staticAttributeKeys.put(key.getClass().getName() + "." + key.toString(), key); } | 24,966 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 24,967 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 24,968 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 24,969 |
public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | public AttributeSet removeAttribute(AttributeSet old, Object name) { if (old instanceof MutableAttributeSet) { ((MutableAttributeSet)old).removeAttribute(name); if (old.getAttributeCount() < getCompressionThreshold()) { SmallAttributeSet small = createSmallAttributeSet(old);... | 24,970 |
public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | public synchronized AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | 24,972 |
public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { return removeAttributes(old, attributes.getAttributeNames()); } | public AttributeSet removeAttributes(AttributeSet old, AttributeSet attributes) { AttributeSet ret; if (old.getAttributeCount() <= getCompressionThreshold()) { search.removeAttributes(search); search.addAttributes(old); search.removeAttributes(attributes); reclaim(old); ret = searchImmutableSet(); } | 24,973 |
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); } | public void removeChangeListener(ChangeListener listener) { styles.removeChangeListener(listener); } | 24,975 |
public void removeStyle(String name) { styleTable.remove(name); } | public void removeStyle(String name) { styles.removeAttribute(name); } | 24,976 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 24,977 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 24,978 |
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException { Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey... | 24,979 |
void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); if (writer != nul... | void writeStreamResult(Node node, StreamResult sr, int outputMethod, String encoding) throws IOException { OutputStream out = null; try { out = sr.getOutputStream(); if (out == null) { Writer writer = sr.getWriter(); if (writer != nul... | 24,980 |
public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx <= minx... | 24,981 |
public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | public PathIterator getPathIterator(final AffineTransform at) { final double minx = getX(); final double miny = getY(); final double maxx = minx + getWidth(); final double maxy = miny + getHeight(); return new PathIterator() { /** Current coordinate. */ private int current = (maxx >= minx... | 24,982 |
public int getWindingRule() { return WIND_EVEN_ODD; } | public int getWindingRule() { return WIND_NON_ZERO; } | 24,983 |
public Object decodeSignature(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); byte[] result; DERReader der = new DERReader(input); try { DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitString)... | public Object decodeSignature(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); byte[] result; DERReader der = new DERReader(input); try { DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitString)... | 24,984 |
public byte[] encodeSignature(Object signature) { byte[] sBytes = (byte[]) signature; DERValue derSignature = new DERValue(DER.BIT_STRING, new BitString(sBytes)); byte[] result; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { DERWrite... | public byte[] encodeSignature(Object signature) { byte[] sBytes = (byte[]) signature; DERValue derSignature = new DERValue(DER.BIT_STRING, new BitString(sBytes)); byte[] result; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { DERWrite... | 24,985 |
public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] != null) { ref... | public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (refs[1] != null) { ref... | 24,986 |
public String toString() { if (condition >= IF_ICMPEQ) { return getAddress() + ": if " + refs[0].toString() + " " + CONDITION_MAP[condition] + " " + refs[1].toString() + " goto " + getTargetAddress(); } else { return getAddress() + ": if " + ... | public String toString() { if (condition >= IF_ICMPEQ) { return getAddress() + ": if " + refs[0].toString() + " " + CONDITION_MAP[condition] + " " + refs[1].toString() + " goto " + getTargetBlock(); } else { return getAddress() + ": if " + re... | 24,987 |
public String toString() { if (condition >= IF_ICMPEQ) { return getAddress() + ": if " + refs[0].toString() + " " + CONDITION_MAP[condition] + " " + refs[1].toString() + " goto " + getTargetAddress(); } else { return getAddress() + ": if " + ... | public String toString() { if (condition >= IF_ICMPEQ) { return getAddress() + ": if " + refs[0].toString() + " " + CONDITION_MAP[condition] + " " + refs[1].toString() + " goto " + getTargetAddress(); } else { return getAddress() + ": if " + ... | 24,988 |
SocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); impl = new PlainSocketImpl(); socket = new NIOSocket (impl, this); configureBlocking(true); } | SocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); impl = new PlainSocketImpl(); socket = new NIOSocket (impl, this); configureBlocking(true); } | 24,990 |
SocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); impl = new PlainSocketImpl(); socket = new NIOSocket (impl, this); configureBlocking(true); } | SocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); impl = new PlainSocketImpl(); socket = new NIOSocket (impl, this); configureBlocking(true); } | 24,991 |
public boolean connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (isConnected()) throw new AlreadyConnectedException(); if (connectionPending) throw new ConnectionPendingException(); if (!(remote instanceof InetSocketAddress)) ... | public boolean connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (isConnected()) throw new AlreadyConnectedException(); if (connectionPending) throw new ConnectionPendingException(); if (!(remote instanceof InetSocketAddress)) ... | 24,992 |
public boolean connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (isConnected()) throw new AlreadyConnectedException(); if (connectionPending) throw new ConnectionPendingException(); if (!(remote instanceof InetSocketAddress)) ... | public boolean connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (isConnected()) throw new AlreadyConnectedException(); if (connectionPending) throw new ConnectionPendingException(); if (!(remote instanceof InetSocketAddress)) ... | 24,993 |
public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!isConnected() && !connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector se... | public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector selector = provider(... | 24,994 |
public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!isConnected() && !connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector se... | public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!isConnected() && !connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector se... | 24,995 |
protected void implConfigureBlocking (boolean blocking) throws IOException { socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); } | protected void implConfigureBlocking (boolean blocking) throws IOException { socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); } | 24,996 |
public boolean isConnected () { return socket.isConnected(); } | public boolean isConnected () { if (connectionPending) return false; try { InetSocketAddress remote = channel.getPeerAddress(); return remote != null; } catch (IOException ioe) { ioe.printStackTrace(System.out); return false; } } | 24,997 |
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | 24,998 |
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | 24,999 |
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ... | 25,000 |
public int write (ByteBuffer src) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; int len = src.remaining(); if (!src.hasArray()) { data = new byte [len]; src.get (data, 0, len); } else { offset... | public int write (ByteBuffer src) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; int len = src.remaining(); if (!src.hasArray()) { data = new byte [len]; src.get (data, 0, len); } else { offset... | 25,001 |
public MappedByteBuffer map (FileChannel.MapMode mode, long position, long size) throws IOException { char nmode = 0; if (mode == MapMode.READ_ONLY) { nmode = 'r'; if ((this.mode & READ) == 0) throw new NonReadableChannelException(); } else if (mode == MapMode.READ_WRITE || mode == M... | public MappedByteBuffer map (FileChannel.MapMode mode, long position, long size) throws IOException { char nmode = 0; if (mode == MapMode.READ_ONLY) { nmode = 'r'; if ((this.mode & READ) == 0) throw new NonReadableChannelException(); } else if (mode == MapMode.READ_WRITE || mode == M... | 25,003 |
public MappedByteBuffer map (FileChannel.MapMode mode, long position, long size) throws IOException { char nmode = 0; if (mode == MapMode.READ_ONLY) { nmode = 'r'; if ((this.mode & READ) == 0) throw new NonReadableChannelException(); } else if (mode == MapMode.READ_WRITE || mode == M... | public MappedByteBuffer map (FileChannel.MapMode mode, long position, long size) throws IOException { char nmode = 0; if (mode == MapMode.READ_ONLY) { nmode = 'r'; if ((this.mode & READ) == 0) throw new NonReadableChannelException(); } else if (mode == MapMode.READ_WRITE || mode == M... | 25,004 |
public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (... | public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException ("position: " + position + ", size: " + size); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) ... | 25,005 |
public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (... | public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && ((mode & READ) == 0)) throw new NonReadableChannelException... | 25,006 |
public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (... | public FileLock tryLock (long position, long size, boolean shared) throws IOException { if (position < 0 || size < 0) throw new IllegalArgumentException (); if (!isOpen ()) throw new ClosedChannelException (); if (shared && (mode & READ) == 0) throw new NonReadableChannelException (... | 25,007 |
public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... | public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension... | 25,010 |
public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * table.getRowHeight(); return new Dimension(width, height); } | public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); } | 25,011 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight() + table.getR... | 25,012 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 25,013 |
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =... | 25,014 |
void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { Component comp = table.prepareRenderer(rend, row, col); rendererPane.paintComponent(g, comp, table, bounds); // FIXME: this is manual painti... | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { Component comp = table.prepareRenderer(rend, row, col); rendererPane.paintComponent(g, comp, table, bounds); // FIXME: this is manual painti... | 25,015 |
void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { Component comp = table.prepareRenderer(rend, row, col); rendererPane.paintComponent(g, comp, table, bounds); // FIXME: this is manual painti... | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { Component comp = table.prepareRenderer(rend, row, col); rendererPane.paintComponent(g, comp, table, bounds); // FIXME: this is manual painti... | 25,016 |
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | 25,018 |
protected LayoutManager createLayoutManager() { return super.createLayoutManager(); } | protected LayoutManager createLayoutManager() { return new TabbedPaneLayout(); } | 25,020 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y))... | 25,021 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | 25,022 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | 25,023 |
protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGa... | 25,024 |
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x + 1, y + h, x + 1, y + 6); g.drawLine(x + 1, y + 6, x + 6, y + 1); g... | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[curren... | 25,025 |
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x + 1, y + h, x + 1, y + 6); g.drawLine(x + 1, y + 6, x + 6, y + 1); g... | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x + 1, y + h, x + 1, y + 6); g.drawLine(x + 1, y + 6, x + 6, y + 1); g... | 25,026 |
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x, y + 1, x + w - 7, y + 1); g.drawLine(x + w - 7, y + 1, x + w - 1, y + 7... | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = tabRuns[curren... | 25,027 |
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x, y + 1, x + w - 7, y + 1); g.drawLine(x + w - 7, y + 1, x + w - 1, y + 7... | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { if (isSelected) { g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x, y + 1, x + w - 7, y + 1); g.drawLine(x + w - 7, y + 1, x + w - 1, y + 7... | 25,028 |
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else { // This is only present in the OceanTheme, so we must check if it // is actu... | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(selectColor); else { // This is only present in the OceanTheme, so we must check if it // is actually there Color backgr... | 25,029 |
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else { // This is only present in the OceanTheme, so we must check if it // is actu... | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else { // This is only present in the OceanTheme, so we must check if it // is actu... | 25,030 |
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else { // This is only present in the OceanTheme, so we must check if it // is actu... | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (isSelected) g.setColor(UIManager.getColor("TabbedPane.selected")); else { // This is only present in the OceanTheme, so we must check if it // is actu... | 25,031 |
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (tabPlacement == TOP) paintTopTabBorder(tabIndex, g, x, y, w, h, 0, 0, isSelected); else if (tabPlacement == LEFT) paintLeftTabBorder(tabIndex, g, x, y, w, h, 0, ... | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { if (tabPlacement == TOP) paintTopTabBorder(tabIndex, g, x, y, w, h, 0, 0, isSelected); else if (tabPlacement == LEFT) paintLeftTabBorder(tabIndex, g, x, y, w, h, 0, ... | 25,032 |
protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int right = w - 1; int bottom = h - 1; if (shouldFillGap(currentRun, tabIndex, x, y)) ... | 25,033 |
protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | 25,034 |
protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | 25,035 |
protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | protected void paintTopTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex); if (shouldFillGap(currentRun, tabIndex, x, y)) { g.translate(x, y); g.setColor(getColorForGap(c... | 25,036 |
protected Container createContentPane() { return new ContentPane(); } | protected Container createContentPane() { ContentPane p = new ContentPane(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; } | 25,037 |
public Dimension getMaximumSize(JComponent c) { // If this menu is in a popup menu, treat it like a regular JMenuItem if (!((JMenu)c).isTopLevelMenu()) { JMenuItem menuItem = new JMenuItem(((JMenu)c).getText(), ((JMenu)c).getIcon()); return menuItem.getMaximumSize(); } return c.getPr... | public Dimension getMaximumSize(JComponent c) { // If this menu is in a popup menu, treat it like a regular JMenuItem if (!((JMenu)c).isTopLevelMenu()) { JMenuItem menuItem = new JMenuItem(((JMenu)c).getText(), ((JMenu)c).getIcon()); return menuItem.getMaximumSize(); } return c.getPr... | 25,038 |
public String getName() { return "job-impressions"; } | public String getName() { return "job-impressions-completed"; } | 25,039 |
int determineNumLines() { int end = getEndOffset(); if (end == 0) return 0; numLines = 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on... | int determineNumLines() { int end = getEndOffset(); if (end == 0) return 0; int breakPoint; for (int i = getStartOffset(); i < end;) { numLines ++; // careful: check that there's no off-by-one problem here // depending on which positi... | 25,040 |
public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) { metrics = getContainer().getFontMetrics(getContainer().getFont()); return numLines * metrics.getHeight(); } throw new IllegalArgumentException("... | public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) { metrics = getContainer().getFontMetrics(getContainer().getFont()); return numLines * metrics.getHeight(); } throw new IllegalArgumentException("... | 25,041 |
public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) { metrics = getContainer().getFontMetrics(getContainer().getFont()); return numLines * metrics.getHeight(); } throw new IllegalArgumentException("... | public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) { metrics = getContainer().getFontMetrics(getContainer().getFont()); return numLines * metrics.getHeight(); throw new IllegalArgumentException("I... | 25,042 |
public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); metrics = getContainer().getFontMetrics(getContainer().getFont()); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 ... | public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.heig... | 25,043 |
public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); metrics = getContainer().getFontMetrics(getContainer().getFont()); int lineHeight = metrics.getH... | public int viewToModel(float x, float y, Shape a, Bias[] b) { Segment s = getLineBuffer(); Rectangle rect = a.getBounds(); int currLineStart = getStartOffset(); int end = getEndOffset(); int lineHeight = metrics.getHeight(); if (y < rect.y) return currLineStart; if... | 25,045 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.getBounds(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this shouldn't happen } // FIXME: Should we account... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.isValid() ? c.getBounds() : new Rectangle(c.getPreferredSize()); updateMetrics(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { ... | 25,046 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.getBounds(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this shouldn't happen } // FIXME: Should we account... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.getBounds(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this shouldn't happen } // FIXME: Should we account... | 25,047 |
protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.getBounds(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this shouldn't happen } // FIXME: Should we account... | protected int calculateBreakPosition(int p0, int p1) { Container c = getContainer(); Rectangle alloc = c.getBounds(); try { getDocument().getText(p0, p1 - p0, getLineBuffer()); } catch (BadLocationException ble) { // this shouldn't happen } // FIXME: Should we account... | 25,048 |
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = getLineBuffer(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0); } | protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { g.setColor(selectedColor); Segment segment = getLineBuffer(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, p0); } | 25,049 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.