rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
e.printStackTrace(); | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
windowDefined = true; | private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ... | |
super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); } | this.scrollPane = scrollPane; SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); } | public SwingScrollPanePeer(ScrollPane scrollPane) { super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); } |
bad.minor = Minor.Any; | public static TypeMismatch extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (TypeMismatch) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("TypeMismatch expected"); bad... | |
{ | public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;} | |
} | public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;} | |
getPeer() { return(peer); } | public MenuComponentPeer getPeer() { return peer; } | getPeer(){ return(peer);} |
getToolkit() { return(toolkit); } | final Toolkit getToolkit() { return toolkit; } | getToolkit(){ return(toolkit);} |
setPeer(MenuComponentPeer peer) { | final void setPeer(MenuComponentPeer peer) { | setPeer(MenuComponentPeer peer){ this.peer = peer;} |
removeNotify() { | public void removeNotify() { | removeNotify(){ if (peer != null) peer.dispose(); peer = null;} |
int height = getHeight(); | int height = getRowHeight(row); | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getHeight(); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.max(0,... |
addColumnSelectionInterval(colLead,colLead); addRowSelectionInterval(rowLead, rowLead); | public void selectAll() { setColumnSelectionInterval(0, getColumnCount() - 1); setRowSelectionInterval(0, getRowCount() - 1); } | |
public JSpinner(SpinnerModel model) | public JSpinner() | public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } |
this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); | this(new SpinnerNumberModel()); | public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); } |
public DateFormatter(DateFormat format) | public DateFormatter() | public DateFormatter(DateFormat format) { super(); setFormat(format); } |
super(); setFormat(format); | this(DateFormat.getDateInstance()); | public DateFormatter(DateFormat format) { super(); setFormat(format); } |
void installDefaults(JComponent c) | protected void installDefaults(JComponent c) | void installDefaults(JComponent c) { c.setOpaque(true); } |
c.setBackground(UIManager.getColor("Viewport.background")); | void installDefaults(JComponent c) { c.setOpaque(true); } | |
installListeners(c); | installDefaults(c); | public void installUI(JComponent c) { super.installUI(c); installListeners(c); } |
void uninstallDefaults(JComponent c) | protected void uninstallDefaults(JComponent c) | void uninstallDefaults(JComponent c) { } |
uninstallListeners(c); | super.uninstallUI(c); uninstallDefaults(c); | public void uninstallUI(JComponent c) { uninstallListeners(c); } |
public AccessibleJViewport() | protected AccessibleJViewport() | public AccessibleJViewport() { // Nothing to do here. } |
if ((dx != 0 && dy != 0) || damaged) | if ((dx != 0 && dy != 0) || (dy == 0 && dy == 0) || damaged) | protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return false; Rectangle portBoun... |
fd.addItem(LangTool.getString("delm.labelTab")); | fd.addItem(LangTool.getString("delm.labelNone")); if (delimiter.length() > 0) if (delimiter.equals("\t")) fd.setSelectedItem(LangTool.getString("delm.labelTab")); else if (delimiter.equals(" ")) fd.setSelectedItem(LangTool.getString("delm.labelSpace")); else { if (!delimiter.equals(",") && !delimiter.equals(";") && !d... | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... |
fd.setSelectedIndex(0); | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | |
td.setSelectedIndex(0); | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | |
if (stringQualifier.equals(LangTool.getString("delm.labelNone"))) stringQualifier = ""; | public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del... | |
sb.append(vt.getASCIIChar(cByte[f] & 0xff)); | sb.append(vt.ebcdic2uni(cByte[f] & 0xff)); | public String parseData(byte[] cByte) { if (!translateIt) { return sbdata.toString(); } StringBuffer sb = new StringBuffer(bufferLength); int end = startOffset + length - 1; switch (type) { case 'P': // Packed decimal format // example field of buffer length 4 wi... |
this.className = className; | myClassName = className; | public DocFlavor(String mimeType, String className) { if (mimeType == null || className == null) throw new NullPointerException(); parseMimeType(mimeType); this.className = className; } |
return (String) params.get(paramName); | return (String) params.get(paramName.toLowerCase()); | public String getParameter(String paramName) { if (paramName == null) throw new NullPointerException(); return (String) params.get(paramName); } |
return className; | return myClassName; | public String getRepresentationClassName() { return className; } |
* className.hashCode()) ^ params.hashCode()); | * myClassName.hashCode()) ^ params.hashCode()); | public int hashCode() { return ((mediaType.hashCode() * mediaSubtype.hashCode() * className.hashCode()) ^ params.hashCode()); } |
int MEDIA = 1; int MEDIASUB = 2; int PARAM_NAME = 3; int PARAM_VALUE = 4; int COMMENT_START = 5; | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | |
int pos = mimeType.indexOf(';'); | int state = 0; int lastState = 0; int tok; try { String paramName = null; StreamTokenizer in = new StreamTokenizer(new StringReader(mimeType)); in.resetSyntax(); in.whitespaceChars(0x00, 0x20); in.whitespaceChars(0x7F, 0x7F); in.wordChars('A', 'Z'); in.wordChars('a', 'z'); in.wordChars('0', '9'); in.wordChars(0xA0,... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... |
if (pos != -1) | while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF) { switch (tok) { case StreamTokenizer.TT_WORD: if (state == 0) { mediaType = in.sval.toLowerCase(); state = MEDIA; break; } if (state == MEDIA) { mediaSubtype = in.sval.toLowerCase(); state = MEDIASUB; break; } if (state == MEDIASUB || state == PARAM_VALUE) { pa... | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... |
String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.substring(0, pos), tmp.substring(pos + 1)); | throw new InternalError("IOException during parsing String " + mimeType); | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... |
pos = mimeType.indexOf('/'); if (pos == -1) throw new IllegalArgumentException(); mediaType = mimeType.substring(0, pos); mediaSubtype = mimeType.substring(pos + 1); | private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s... | |
return getMimeType(); | return getMimeType() + "; class=\"" + getRepresentationClassName() + "\""; | public String toString() { return getMimeType(); } |
if (getSizeButtonsToSameWidth()) | if (syncAllWidths) | public void layoutContainer(Container container) { Component[] buttonList = container.getComponents(); int x = container.getInsets().left; if (getCentersChildren()) x += (int) ((double) (container.getSize().width) / 2 - (double) (buttonRowLength(container)) / 2); for (int i = 0; i < buttonL... |
optionPane.invalidate(); | public void setCentersChildren(boolean newValue) { centersChildren = newValue; optionPane.invalidate(); } | |
optionPane.invalidate(); | public void setPadding(int newPadding) { padding = newPadding; optionPane.invalidate(); } | |
optionPane.invalidate(); | public void setSyncAllWidths(boolean newValue) { syncAllWidths = newValue; optionPane.invalidate(); } | |
return (Container) Box.createVerticalStrut(17); | return null; | protected Container createSeparator() { return (Container) Box.createVerticalStrut(17); } |
channel = new VMChannel(); channel.initSocket(false); | protected DatagramChannelImpl (SelectorProvider provider) throws IOException { super (provider); socket = new NIODatagramSocket (new PlainDatagramSocketImpl(), this); configureBlocking(true); } | |
socket.connect (remote); | try { channel.connect((InetSocketAddress) remote, 0); } catch (ClassCastException cce) { throw new IOException("unsupported socked address type"); } | public DatagramChannel connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); socket.connect (remote); return this; } |
socket.disconnect (); | channel.disconnect(); | public DatagramChannel disconnect () throws IOException { socket.disconnect (); return this; } |
socket.close (); | channel.close(); | protected void implCloseSelectableChannel () throws IOException { socket.close (); } |
socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); | channel.setBlocking(blocking); | protected void implConfigureBlocking (boolean blocking) throws IOException { socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); } |
return socket.isConnected (); | try { return channel.getPeerAddress() != null; } catch (IOException ioe) { return false; } | public boolean isConnected () { return socket.isConnected (); } |
int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); | return channel.read(dst); | public int read (ByteBuffer dst) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); } |
DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), dst.arrayOffset() + dst.position(), len); } else { packet = new DatagramPacket (new byte [len], len); | begin(); return channel.receive(dst); } finally { end(true); } | public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... |
boolean completed = false; try { begin(); setInChannelOperation(true); socket.receive (packet); completed = true; } finally { end (completed); setInChannelOperation(false); } if (!dst.hasArray()) { dst.put (packet.getData(), packet.getOffset(), packet.getLength()); } else { dst.position (dst.position() + packet.getLe... | public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ... | |
if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) | if (!(target instanceof InetSocketAddress)) throw new IOException("can only send to inet socket addresses"); InetSocketAddress dst = (InetSocketAddress) target; if (dst.isUnresolved()) | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... |
byte[] buffer; int offset = 0; int len = src.remaining(); if (src.hasArray()) { buffer = src.array(); offset = src.arrayOffset() + src.position(); } else { buffer = new byte [len]; src.get (buffer); | return channel.send(src, dst); | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... |
DatagramPacket packet = new DatagramPacket (buffer, offset, len, target); boolean completed = false; try { begin(); setInChannelOperation(true); socket.send(packet); completed = true; } finally { end (completed); setInChannelOperation(false); } if (src.hasArray()) { src.position (src.position() + len); } return len;... | public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ... | |
return send (src, socket.getRemoteSocketAddress()); | return channel.write(src); | public int write (ByteBuffer src) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); return send (src, socket.getRemoteSocketAddress()); } |
if (! expect (dateStr, pos, ch)) | if (quote_start == -1 && ch == ' ') { int index = pos.getIndex(); int save = index; while (index < dateStr.length() && Character.isWhitespace(dateStr.charAt(index))) ++index; if (index > save) pos.setIndex(index); else { pos.setErrorIndex(index); return null; } } else if (! expect (dateStr, pos, ch)) | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... |
public GregorianCalendar(Locale locale) | public GregorianCalendar() | public GregorianCalendar(Locale locale) { this(TimeZone.getDefault(), locale); } |
this(TimeZone.getDefault(), locale); | this(TimeZone.getDefault(), Locale.getDefault()); | public GregorianCalendar(Locale locale) { this(TimeZone.getDefault(), locale); } |
return numberFormat.equals(d.numberFormat); | return false; | public boolean equals (Object obj) { if (!(obj instanceof DateFormat)) return false; DateFormat d = (DateFormat) obj; return numberFormat.equals(d.numberFormat); } |
public ISO9660Entry(EntryRecord entry) { this.CDFSentry = entry; } | public ISO9660Entry(ISO9660FileSystem fs, EntryRecord entry) { this.fs = fs; this.entryRecord = entry; } | public ISO9660Entry(EntryRecord entry) { this.CDFSentry = entry; } |
public EntryRecord getCDFSentry() { return CDFSentry; } | public EntryRecord getCDFSentry() { return entryRecord; } | public EntryRecord getCDFSentry() { return CDFSentry; } |
public FileSystem getFileSystem() { return null; } | public FileSystem getFileSystem() { return fs; } | public FileSystem getFileSystem() { return null; } |
public String getName() { return CDFSentry.getFileIdentifier(); } | public String getName() { return entryRecord.getFileIdentifier(); } | public String getName() { return CDFSentry.getFileIdentifier(); } |
public boolean isDirectory() { return CDFSentry.isDirectory(); } | public boolean isDirectory() { return entryRecord.isDirectory(); } | public boolean isDirectory() { return CDFSentry.isDirectory(); } |
public boolean isFile() { return !CDFSentry.isDirectory(); } | public boolean isFile() { return !entryRecord.isDirectory(); } | public boolean isFile() { return !CDFSentry.isDirectory(); } |
public void setCDFSentry(EntryRecord sentry) { CDFSentry = sentry; } | public void setCDFSentry(EntryRecord sentry) { entryRecord = sentry; } | public void setCDFSentry(EntryRecord sentry) { CDFSentry = sentry; } |
exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; | exceptionListener = (listener != null) ? listener : DefaultExceptionListener.INSTANCE; | public void setExceptionListener(ExceptionListener listener) { exceptionListener = (listener != null) ? listener : new ExceptionListener() { public void exceptionThrown(Exception e) { System.err.println("exception thrown: " + e); } }; } |
public Expression(Object target, String methodName, Object[] arguments) | public Expression(Object value, Object target, String methodName, Object[] arguments) | public Expression(Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = UNSET; } |
this.value = UNSET; | this.value = value; | public Expression(Object target, String methodName, Object[] arguments) { super(target, methodName, arguments); this.value = UNSET; } |
insets = new Insets(0, 0, 0, 0); | top = 0; bottom = 0; left = 0; right = 0; | public CompositeView(Element element) { super(element); children = new View[0]; insets = new Insets(0, 0, 0, 0); } |
return (short) insets.bottom; | return bottom; | protected short getBottomInset() { return (short) insets.bottom; } |
inside.x = alloc.x + insets.left; inside.y = alloc.y + insets.top; inside.width = alloc.width - insets.left - insets.right; inside.height = alloc.height - insets.top - insets.bottom; | inside.x = alloc.x + left; inside.y = alloc.y + top; inside.width = alloc.width - left - right; inside.height = alloc.height - top - bottom; | protected Rectangle getInsideAllocation(Shape a) { if (a == null) return null; Rectangle alloc = a.getBounds(); // Initialize the inside allocation rectangle. This is done inside // a synchronized block in order to avoid multiple threads creating // this instance simultanously. Rectangle insid... |
return (short) insets.left; | return left; | protected short getLeftInset() { return (short) insets.left; } |
return (short) insets.right; | return right; | protected short getRightInset() { return (short) insets.right; } |
return (short) insets.top; | return top; | protected short getTopInset() { return (short) insets.top; } |
View view = children[i]; | if (i >= 0 && i < getViewCount() && a != null) { view = getView(i); | protected View getViewAtPosition(int pos, Rectangle a) { int i = getViewIndexAtPosition(pos); View view = children[i]; childAllocation(i, a); return view; } |
} | protected View getViewAtPosition(int pos, Rectangle a) { int i = getViewIndexAtPosition(pos); View view = children[i]; childAllocation(i, a); return view; } | |
if (b == Position.Bias.Backward && pos != 0) | if (b == Position.Bias.Backward) | public int getViewIndex(int pos, Position.Bias b) { if (b == Position.Bias.Backward && pos != 0) pos -= 1; return getViewIndexAtPosition(pos); } |
return getViewIndexAtPosition(pos); | int i = -1; if (pos >= getStartOffset() && pos < getEndOffset()) i = getViewIndexAtPosition(pos); return i; | public int getViewIndex(int pos, Position.Bias b) { if (b == Position.Bias.Backward && pos != 0) pos -= 1; return getViewIndexAtPosition(pos); } |
int index = -1; for (int i = 0; i < children.length; i++) { if (children[i].getStartOffset() <= pos && children[i].getEndOffset() > pos) { index = i; break; } } return index; | Element el = getElement(); return el.getElementIndex(pos); | protected int getViewIndexAtPosition(int pos) { int index = -1; for (int i = 0; i < children.length; i++) { if (children[i].getStartOffset() <= pos && children[i].getEndOffset() > pos) { index = i; break; } } return index; } |
replace(0, getViewCount(), newChildren); | replace(0, 0, newChildren); | protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); View[] newChildren = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); newChildren[i] = view; } repla... |
int childIndex = getViewIndex(pos, bias); if (childIndex == -1) throw new BadLocationException("Position " + pos + " is not represented by view.", pos); | boolean backward = bias == Position.Bias.Backward; int testpos = backward ? Math.max(0, pos - 1) : pos; | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex == -1) throw new BadLocationException("Position " + pos + " is not represented by view.", pos); Shape ret = null; View child = getView(ch... |
if (! backward || testpos >= getStartOffset()) { int childIndex = getViewIndexAtPosition(testpos); if (childIndex != -1 && childIndex < getViewCount()) { | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex == -1) throw new BadLocationException("Position " + pos + " is not represented by view.", pos); Shape ret = null; View child = getView(ch... | |
if (childAlloc == null) ret = createDefaultLocation(a, bias); Shape result = child.modelToView(pos, childAlloc, bias); if (result != null) ret = result; | if (childAlloc != null) { ret = child.modelToView(pos, childAlloc, bias); if (ret == null && child.getEndOffset() == pos) { childIndex++; if (childIndex < getViewCount()) { child = getView(childIndex); childAlloc = getChildAllocation(childIndex, a); ret = child.modelToView(pos, childAlloc, bias); } } } } } | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex == -1) throw new BadLocationException("Position " + pos + " is not represented by view.", pos); Shape ret = null; View child = getView(ch... |
ret = createDefaultLocation(a, bias); | { throw new BadLocationException("Position " + pos + " is not represented by view.", pos); } } | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex == -1) throw new BadLocationException("Position " + pos + " is not represented by view.", pos); Shape ret = null; View child = getView(ch... |
} | public void replace(int offset, int length, View[] views) { // Check for null views to add. for (int i = 0; i < views.length; ++i) if (views[i] == null) throw new NullPointerException("Added views must not be null"); int endOffset = offset + length; // First we set the parent of the removed c... | |
protected void setInsets(short top, short left, short bottom, short right) | protected void setInsets(short t, short l, short b, short r) | protected void setInsets(short top, short left, short bottom, short right) { insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right; } |
insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right; | top = t; left = l; bottom = b; right = r; | protected void setInsets(short top, short left, short bottom, short right) { insets.top = top; insets.left = left; insets.bottom = bottom; insets.right = right; } |
Float l = (Float) attributes.getAttribute(StyleConstants.LeftIndent); short left = 0; if (l != null) left = l.shortValue(); Float r = (Float) attributes.getAttribute(StyleConstants.RightIndent); short right = 0; if (r != null) right = r.shortValue(); Float t = (Float) attributes.getAttribute(StyleConstants.SpaceAbove);... | top = (short) StyleConstants.getSpaceAbove(attributes); bottom = (short) StyleConstants.getSpaceBelow(attributes); left = (short) StyleConstants.getLeftIndent(attributes); right = (short) StyleConstants.getRightIndent(attributes); | protected void setParagraphInsets(AttributeSet attributes) { Float l = (Float) attributes.getAttribute(StyleConstants.LeftIndent); short left = 0; if (l != null) left = l.shortValue(); Float r = (Float) attributes.getAttribute(StyleConstants.RightIndent); short right = 0; if (r != null) r... |
public int getViewIndex(int pos, Position.Bias b) | public int getViewIndex(float x, float y, Shape allocation) | public int getViewIndex(int pos, Position.Bias b) { return -1; } |
if (maxButton != null) | protected void setButtonIcons() { closeButton.setIcon(closeIcon); iconButton.setIcon(iconIcon); maxButton.setIcon(maxIcon); } | |
if (preferredSize != null) { Dimension prefSize = getPreferredSize(); prefSize.width = Math.max(prefSize.width, minimumSize.width); prefSize.height = Math.max(prefSize.height, minimumSize.height); setPreferredSize(prefSize); } if (maximumSize != null) { Dimension maxSize = getMaximumSize(); maxSize.width = Math.max(max... | public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); revalidate(); repaint(); // adjust preferred and maximum size accordingly if (preferredSize != null) { Dimension prefSize = ge... | |
Dimension size = this.getSize(); | Dimension size = getSize(); if (size.width == 0 && size.height == 0) { size = getPreferredSize(); setSize(size); } | public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ... |
bad.minor = Minor.Any; | public static BindingIterator extract(Any a) { try { return ((BindingIteratorHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Binding iterator expected"); bad.initCause(ex); throw bad; } } | |
bad.minor = Minor.Any; | public static InvalidValue extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (InvalidValue) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("InvalidValue expected"); bad... | |
public boolean addAxisValueList (ValueListInterface valueListObj) | public boolean addAxisValueList (ValueList valueListObj) | public boolean addAxisValueList (ValueListInterface valueListObj) { List values = valueListObj.getValues(); // do we have any new values? if (values.size() > 0) { addValueListObj(valueListObj); // append in new values to Parameter obj Iterator iter = values.iterator(); ... |
public void setAxisValueList (ValueListInterface valueListObj) | public void setAxisValueList (ValueList valueListObj) | public void setAxisValueList (ValueListInterface valueListObj) { resetAxisValues(); addAxisValueList(valueListObj); } |
protected boolean addValueListObj (ValueListInterface valueListObj) | protected boolean addValueListObj (ValueList valueListObj) | protected boolean addValueListObj (ValueListInterface valueListObj) { if (valueListObj == null) return false; valueListObjects.add(valueListObj); hasValueListCompactDescription = true; return true; } |
ex.printStackTrace(); | public InvokeHandler getHandler(String operation, CookieHolder cookie, boolean forwarding_allowed ) throws gnuForwardRequest { if (servant != null) { return servantToHandler(servant); } else { // Use servant locator to locate the servant. if (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.