rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
revalidate(); | public void updateUI() { setUI((FileChooserUI) UIManager.getUI(this)); revalidate(); } | |
Object obj = new String(parentPath + getFileName()); | Object obj = null; if (parentPath != null) obj = new String(parentPath + getFileName()); else obj = filechooser.getSelectedFile(); | public void actionPerformed(ActionEvent e) { Object obj = new String(parentPath + getFileName()); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.is... |
File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.isTraversable(f) && filechooser.isDirectorySelectionEnabled()) filechooser.setCurrentDirectory(f); | File f = filechooser.getFileSystemView().createFileObject(obj.toString()); File currSelected = filechooser.getSelectedFile(); if (filechooser.isTraversable(f)) { filechooser.setCurrentDirectory(currSelected); filechooser.rescanCurrentDirectory(); } | public void actionPerformed(ActionEvent e) { Object obj = new String(parentPath + getFileName()); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.is... |
filechooser.setSelectedFile(f); | public void actionPerformed(ActionEvent e) { Object obj = new String(parentPath + getFileName()); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.is... | |
filechooser.setSelectedFile(null); filechooser.setSelectedFiles(null); | public void actionPerformed(ActionEvent e) { filechooser.cancelSelection(); closeDialog(); } | |
if (list.getSelectedValue() == null) | Object p = list.getSelectedValue(); if (p == null) | public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (e.getClickCount() >= 2 && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObj... |
if (e.getClickCount() >= 2 && list.getSelectedValue().toString().equals(lastSelected.toString())) | if (e.getClickCount() >= 2 && lastSelected != null && p.toString().equals(lastSelected.toString())) | public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (e.getClickCount() >= 2 && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObj... |
String path = list.getSelectedValue().toString(); | String path = p.toString(); | public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (e.getClickCount() >= 2 && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObj... |
else if (filechooser.getFileSelectionMode() == JFileChooser.DIRECTORIES_ONLY) setFileName(path); | public void mouseClicked(MouseEvent e) { if (list.getSelectedValue() == null) return; FileSystemView fsv = filechooser.getFileSystemView(); if (e.getClickCount() >= 2 && list.getSelectedValue().toString().equals(lastSelected.toString())) { File f = fsv.createFileObj... | |
resolvedObj = null; remainingName = null; | protected ResolveResult() { resolvedObj = null; remainingName = null; } | |
protected abstractRecord newInstance(TypeCode oType, TypeCode aType, | protected RecordAny newInstance(TypeCode oType, TypeCode aType, | protected abstractRecord newInstance(TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb ) { gnuDynValue v = new gnuDynValue(oType, aType, aFactory, anOrb); if (isNull) v.set_to_null(); else v.set_to_value(... |
Paper() { | public Paper() { | Paper(){ width = 8.5 * 72; height = 11 * 72; imageableX = 72; imageableY = 72; imageableWidth = width - (2 * 72); imageableHeight = height - (2 * 72);} |
getHeight() { return(height); } | public double getHeight() { return height; } | getHeight(){ return(height);} |
getImageableHeight() { return(imageableHeight); } | public double getImageableHeight() { return imageableHeight; } | getImageableHeight(){ return(imageableHeight);} |
getImageableWidth() { return(imageableWidth); } | public double getImageableWidth() { return imageableWidth; } | getImageableWidth(){ return(imageableWidth);} |
getImageableX() { return(imageableX); } | public double getImageableX() { return imageableX; } | getImageableX(){ return(imageableX);} |
getImageableY() { return(imageableY); } | public double getImageableY() { return imageableY; } | getImageableY(){ return(imageableY);} |
getWidth() { return(width); } | public double getWidth() { return width; } | getWidth(){ return(width);} |
setImageableArea(double imageableX, double imageableY, | public void setImageableArea(double imageableX, double imageableY, | setImageableArea(double imageableX, double imageableY, double imageableWidth, double imageableHeight){ this.imageableX = imageableX; this.imageableY = imageableY; this.imageableWidth = imageableWidth; this.imageableHeight = imageableHeight;} |
setSize(double width, double height) { | public void setSize(double width, double height) { | setSize(double width, double height){ this.width = width; this.height = height;} |
for (index = 0, current = parent; current != null && index < ancestorLen; index++, current = current.parent) | current = parent; if (current.depth >= ANCESTORS_INIT) | public final boolean dispatchEvent(Event event) throws EventException { DomEvent e = (DomEvent) event; DomNode[] ancestors = null; int ancestorMax = 0; boolean haveDispatchDataLock = false; if (e.type == null) { throw new DomEventException(); } e.doDefault = true; e.targe... |
if (current != null) | if (current.depth > 0) | public final boolean dispatchEvent(Event event) throws EventException { DomEvent e = (DomEvent) event; DomNode[] ancestors = null; int ancestorMax = 0; boolean haveDispatchDataLock = false; if (e.type == null) { throw new DomEventException(); } e.doDefault = true; e.targe... |
ActionMap am = new ActionMap(); | ActionMap am = new ActionMapUIResource(); | ActionMap createActionMap() { Action[] actions = textComponent.getActions(); ActionMap am = new ActionMap(); for (int i = 0; i < actions.length; ++i) { String name = (String) actions[i].getValue(Action.NAME); if (name != null) am.put(name, actions[i]); } return am; } |
return "BasicTextUI"; | String fullClassName = getClass().getName(); int index = fullClassName.lastIndexOf('.'); String className = fullClassName.substring(index + 1); return className; | protected String getKeymapName() { return "BasicTextUI"; } |
} | UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setLeafIcon(getDefaultLeafIcon()); setOpenIcon(getDefaultOpenIcon()); setClosedIcon(getDefaultClosedIcon()); setTextNonSelectionColor(defaults.getColor("Tree.textForeground")); setTextSelectionColor(defaults.getColor("Tree.selectionForeground")); setBackground... | public DefaultTreeCellRenderer() { // TODO } // DefaultTreeCellRenderer() |
return null; } | return backgroundNonSelectionColor; } | public Color getBackgroundNonSelectionColor() { return null; // TODO } // getBackgroundNonSelectionColor() |
return null; } | return backgroundSelectionColor; } | public Color getBackgroundSelectionColor() { return null; // TODO } // getBackgroundSelectionColor() |
return null; } | return borderSelectionColor; } | public Color getBorderSelectionColor() { return null; // TODO } // getBorderSelectionColor() |
return null; } | return closedIcon; } | public Icon getClosedIcon() { return null; // TODO } // getClosedIcon() |
return null; } | return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } | public Icon getDefaultClosedIcon() { return null; // TODO } // getDefaultClosedIcon() |
return null; } | return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } | public Icon getDefaultLeafIcon() { return null; // TODO } // getDefaultLeafIcon() |
return null; } | return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } | public Icon getDefaultOpenIcon() { return null; // TODO } // getDefaultOpenIcon() |
return null; } | return leafIcon; } | public Icon getLeafIcon() { return null; // TODO } // getLeafIcon() |
return null; } | return openIcon; } | public Icon getOpenIcon() { return null; // TODO } // getOpenIcon() |
return null; } | return textNonSelectionColor; } | public Color getTextNonSelectionColor() { return null; // TODO } // getTextNonSelectionColor() |
return null; } | return textSelectionColor; } | public Color getTextSelectionColor() { return null; // TODO } // getTextSelectionColor() |
public Component getTreeCellRendererComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5, boolean value6) { return null; } | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); setText(v... | public Component getTreeCellRendererComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5, boolean value6) { return null; // TODO } // getTreeCellRendererComponent() |
public void paint(Graphics value0) { } | public void paint(Graphics g) { super.paint(g); } | public void paint(Graphics value0) { // TODO } // paint() |
public void setBackground(Color value0) { } | public void setBackground(Color c) { if (c != null && c instanceof UIResource) c = null; super.setBackground(c); } | public void setBackground(Color value0) { // TODO } // setBackground() |
public void setBackgroundNonSelectionColor(Color value0) { } | public void setBackgroundNonSelectionColor(Color c) { backgroundNonSelectionColor = c; } | public void setBackgroundNonSelectionColor(Color value0) { // TODO } // setBackgroundNonSelectionColor() |
public void setBackgroundSelectionColor(Color value0) { } | public void setBackgroundSelectionColor(Color c) { backgroundSelectionColor = c; } | public void setBackgroundSelectionColor(Color value0) { // TODO } // setBackgroundSelectionColor() |
public void setBorderSelectionColor(Color value0) { } | public void setBorderSelectionColor(Color c) { borderSelectionColor = c; } | public void setBorderSelectionColor(Color value0) { // TODO } // setBorderSelectionColor() |
public void setClosedIcon(Icon value0) { } | public void setClosedIcon(Icon i) { closedIcon = i; } | public void setClosedIcon(Icon value0) { // TODO } // setClosedIcon() |
public void setFont(Font value0) { } | public void setFont(Font f) { if (f != null && f instanceof UIResource) f = null; super.setFont(f); } | public void setFont(Font value0) { // TODO } // setFont() |
public void setLeafIcon(Icon value0) { } | public void setLeafIcon(Icon i) { leafIcon = i; } | public void setLeafIcon(Icon value0) { // TODO } // setLeafIcon() |
public void setOpenIcon(Icon value0) { } | public void setOpenIcon(Icon i) { openIcon = i; } | public void setOpenIcon(Icon value0) { // TODO } // setOpenIcon() |
public void setTextNonSelectionColor(Color value0) { } | public void setTextNonSelectionColor(Color c) { textNonSelectionColor = c; } | public void setTextNonSelectionColor(Color value0) { // TODO } // setTextNonSelectionColor() |
public void setTextSelectionColor(Color value0) { } | public void setTextSelectionColor(Color c) { textSelectionColor = c; } | public void setTextSelectionColor(Color value0) { // TODO } // setTextSelectionColor() |
private void boxEntries() | void boxEntries() | private void boxEntries() { ArrayList parentFiles = new ArrayList(); File parent = filechooser.getCurrentDirectory(); if (parent == null) parent = filechooser.getFileSystemView().getDefaultDirectory(); while (parent != null) { String name = parent.getName(); if (name.equals("")) name = parent... |
boxEntries(); | public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection bug. if (e.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) { if (filechooser.getSelectedFile() == null) setFileName(null); else setFileName(filechooser.... | |
final TCPOutSegment seg = new TCPOutSegment(ipHdr, hdr, dataBuffer, 0, timeoutTicks); | final TCPOutSegment seg = new TCPOutSegment(ipHdr, hdr, dataBuffer, dataOffset, timeoutTicks); | private final void sendHelper(IPv4Header ipHdr, TCPHeader hdr, int dataOffset) throws SocketException { // Adjust the sequence numbers hdr.setSequenceNr(snd_next); if (hdr.isFlagSynchronizeSet() || hdr.isFlagFinishedSet()) { snd_next++; //snd_unack++; } e... |
incrButton = createIncreaseButton(scrollbar.getOrientation()); decrButton = createDecreaseButton(scrollbar.getOrientation()); | int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... |
decrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.WEST : SwingConstants.NORTH); | decrButton = new BasicArrowButton(orientation); | protected JButton createDecreaseButton(int orientation) { if (decrButton == null) decrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.WEST : SwingConstants.NORTH); else { if (ori... |
{ if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) decrButton).setDirection(SwingConstants.WEST); else ((BasicArrowButton) decrButton).setDirection(SwingConstants.NORTH); } | ((BasicArrowButton) decrButton).setDirection(orientation); | protected JButton createDecreaseButton(int orientation) { if (decrButton == null) decrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.WEST : SwingConstants.NORTH); else { if (ori... |
incrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.EAST : SwingConstants.SOUTH); | incrButton = new BasicArrowButton(orientation); | protected JButton createIncreaseButton(int orientation) { if (incrButton == null) incrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.EAST : SwingConstants.SOUTH); else { if (ori... |
{ if (orientation == SwingConstants.HORIZONTAL) ((BasicArrowButton) incrButton).setDirection(SwingConstants.EAST); else ((BasicArrowButton) incrButton).setDirection(SwingConstants.SOUTH); } | ((BasicArrowButton) incrButton).setDirection(orientation); | protected JButton createIncreaseButton(int orientation) { if (incrButton == null) incrButton = new BasicArrowButton((orientation == SwingConstants.HORIZONTAL) ? SwingConstants.EAST : SwingConstants.SOUTH); else { if (ori... |
incrButton = createIncreaseButton(scrollbar.getOrientation()); | int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } | protected void installComponents() { incrButton = createIncreaseButton(scrollbar.getOrientation()); scrollbar.add(incrButton); decrButton = createDecreaseButton(scrollbar.getOrientation()); scrollbar.add(decrButton); } |
decrButton = createDecreaseButton(scrollbar.getOrientation()); | protected void installComponents() { incrButton = createIncreaseButton(scrollbar.getOrientation()); scrollbar.add(incrButton); decrButton = createDecreaseButton(scrollbar.getOrientation()); scrollbar.add(decrButton); } | |
installListeners(); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installListeners(); installDefaults(); confi... | |
installListeners(); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installListeners(); installDefaults(); confi... | |
if (dx==0 && dy==0) g2.setClip(g.getClip()); | void paintBackingStore(Graphics g) { // If we have no backing store image yet or the size of the component has // changed, we need to rebuild the backing store. if (backingStoreImage == null || sizeChanged) { backingStoreImage = createImage(getWidth(), getHeight()); sizeChanged = false; ... | |
paintBackingStore(g); | Point viewPosition = getViewPosition(); int dx = viewPosition.x - lastPaintPosition.x; int dy = viewPosition.y - lastPaintPosition.y; boolean canBlit = computeBlit(dx, dy, cachedBlitFrom, cachedBlitTo, cachedBlitSize, cachedBlitPaint); if (canBlit && isPaintRoot) { g.copyArea(cachedBlitFrom.x, cachedBlitFrom.y, cached... | void paintBlit(Graphics g) { // We cannot perform blitted painting as it is described in Sun's API docs. // There it is suggested that this painting method should blit directly // on the parent window's surface. This is not possible because when using // Swing's double buffering (at least our implementat... |
g.setClip(oldClip); | void paintSimple(Graphics g) { // We need to call this to properly clear the background. paintComponent(g); Point pos = getViewPosition(); Component view = getView(); boolean translated = false; try { g.translate(-pos.x, -pos.y); translated = true; view.paint(g); } ... | |
Component parent = getParent(); if (parent != null) { parent.repaint(tm, x + getX(), y + getY(), w, h); } | super.repaint(tm, x, y, w, h); | public void repaint(long tm, int x, int y, int w, int h) { Component parent = getParent(); if (parent != null) { parent.repaint(tm, x + getX(), y + getY(), w, h); } } |
boolean paintedLine = false; | 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 =... | |
paintedLine = true; | 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 =... | |
boolean rowSelAllowed = table.getRowSelectionAllowed(); boolean colSelAllowed = table.getColumnSelectionAllowed(); boolean isSel = false; if (rowSelAllowed && colSelAllowed || !rowSelAllowed && !colSelAllowed) isSel = table.isCellSelected(row, col); else isSel = table.isRowSelected(row) && table.getRowSelectionAllowed(... | Component comp = table.prepareRenderer(rend, row, col); | void paintCell(Graphics g, int row, int col, Rectangle bounds, TableCellRenderer rend, TableModel data, int rowLead, int colLead) { boolean rowSelAllowed = table.getRowSelectionAllowed(); boolean colSelAllowed = table.getColumnSelectionAllowed(); boolean isSel = false; if ... |
awtComponent.invalidate(); | awtFrame.invalidate(); | public void initialize(Frame awtComponent, SwingFramePeer peer) { this.awtFrame = awtComponent; this.swingPeer = peer; awtComponent.invalidate(); } |
awtFrame.addWindowListener(this); | addInternalFrameListener(this); | public SwingFrame(Frame awtFrame) { this.awtComponent = awtFrame; awtFrame.addWindowListener(this); } |
super.validate(); | public void validate() { if (awtComponent != null) { awtComponent.validate(); } super.validate(); } | |
jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); | jComponent.getContentPane().setLayout(new SwingContainerLayout(awtFrame, this)); | public SwingFramePeer(SwingToolkit toolkit, final JDesktopPane desktopPane, Frame awtFrame) { super(toolkit, awtFrame, new SwingFrame(awtFrame)); jComponent.initialize(this); SwingToolkit.copyAwtProperties(awtFrame, this.jComponent); jComponent.getContentPane().setLayout(new SwingConta... |
System.out.println("cp.bounds: " + contentPane.getBounds()); | public Insets getInsets() { final Container contentPane = jComponent.getContentPane(); final int cpWidth = contentPane.getWidth(); final int cpHeight = contentPane.getHeight(); final Insets insets; if ((cpWidth > 0) && (cpHeight > 0)) { insets = new Insets(0, 0, 0, 0); Component c = contentPane; while (c !=... | |
public void setVisible(boolean b){ super.setVisible(b); toolkit.getAwtContext().getDesktop().repaint(); } | public void setVisible(boolean b) { if (b) { jComponent.invalidate(); VMContainer.invalidateTree(component); VMContainer.invalidateTree(jComponent); jComponent.validate(); } jComponent.setVisible(b); jComponent.repaint(); toolkit.getAwtContext().getDesktop().repaint(); } | public void setVisible(boolean b){ super.setVisible(b); toolkit.getAwtContext().getDesktop().repaint(); } |
return new Boolean(readBoolean()); | return Boolean.valueOf(readBoolean()); | protected Object readValue(Class valueClass) throws IOException, ClassNotFoundException { if(valueClass.isPrimitive()){ if(valueClass == Boolean.TYPE) return new Boolean(readBoolean()); if(valueClass == Byte.TYPE) return new Byte(readByte()); if(valueClass == Character.TYPE... |
return out; | byte[] resized = new byte[out.remaining()]; out.get(resized); return ByteBuffer.wrap(resized); | public final ByteBuffer encode (CharBuffer in) throws CharacterCodingException { // XXX: Sun's Javadoc seems to contradict itself saying an // IllegalStateException is thrown "if a decoding operation is already // in progress" and also that "it resets this Encoder". // Should we check to see that the ... |
protected void fireTreeNodesChanged(Object value0, Object[] value1, int[] value2, Object[] value3) { } | protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesChan... | protected void fireTreeNodesChanged(Object value0, Object[] value1, int[] value2, Object[] value3) { // TODO } // fireTreeNodesChanged() |
protected void fireTreeNodesInserted(Object value0, Object[] value1, int[] value2, Object[] value3) { } | protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesIns... | protected void fireTreeNodesInserted(Object value0, Object[] value1, int[] value2, Object[] value3) { // TODO } // fireTreeNodesInserted() |
protected void fireTreeNodesRemoved(Object value0, Object[] value1, int[] value2, Object[] value3) { } | protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesRemo... | protected void fireTreeNodesRemoved(Object value0, Object[] value1, int[] value2, Object[] value3) { // TODO } // fireTreeNodesRemoved() |
protected void fireTreeStructureChanged(Object value0, Object[] value1, int[] value2, Object[] value3) { } | protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeStruc... | protected void fireTreeStructureChanged(Object value0, Object[] value1, int[] value2, Object[] value3) { // TODO } // fireTreeStructureChanged() |
public EventListener[] getListeners(Class classType) { return listenerList.getListeners(classType); } | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); } | public EventListener[] getListeners(Class classType) { return listenerList.getListeners(classType); } // getListeners() |
visit_if_xcmp(address, X86Constants.JE); | visit_if_acmp(address, X86Constants.JE); | public final void visit_if_acmpeq(int address) { visit_if_xcmp(address, X86Constants.JE); // JE } |
visit_if_xcmp(address, X86Constants.JNE); | visit_if_acmp(address, X86Constants.JNE); | public final void visit_if_acmpne(int address) { visit_if_xcmp(address, X86Constants.JNE); // JNE } |
visit_if_xcmp(address, X86Constants.JE); | visit_if_icmp(address, X86Constants.JE); | public final void visit_if_icmpeq(int address) { visit_if_xcmp(address, X86Constants.JE); // JE } |
visit_if_xcmp(address, X86Constants.JGE); | visit_if_icmp(address, X86Constants.JGE); | public final void visit_if_icmpge(int address) { visit_if_xcmp(address, X86Constants.JGE); // JGE } |
visit_if_xcmp(address, X86Constants.JG); | visit_if_icmp(address, X86Constants.JG); | public final void visit_if_icmpgt(int address) { visit_if_xcmp(address, X86Constants.JG); // JG } |
visit_if_xcmp(address, X86Constants.JLE); | visit_if_icmp(address, X86Constants.JLE); | public final void visit_if_icmple(int address) { visit_if_xcmp(address, X86Constants.JLE); // JLE } |
visit_if_xcmp(address, X86Constants.JL); | visit_if_icmp(address, X86Constants.JL); | public final void visit_if_icmplt(int address) { visit_if_xcmp(address, X86Constants.JL); // JL } |
visit_if_xcmp(address, X86Constants.JNE); | visit_if_icmp(address, X86Constants.JNE); | public final void visit_if_icmpne(int address) { visit_if_xcmp(address, X86Constants.JNE); // JNE } |
vstack.pushItem(v); | v.release(eContext); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = ... |
os.writePUSH(T0); | pool.request(T0); IntItem res = IntItem.createRegister(T0); pool.transferOwnerTo(T0, res); vstack.pushItem(res); | public final void visit_instanceof(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); RefItem v = vstack.popRef(); vstack.pushItem(v); /* Objectref is already on the stack */ writeResolveAndLoadClassToEAX(classRef, S0); final Label trueLabel = ... |
for (int i = 0; i < nofArgs; i++) { | for (int i = 0; (!vstack.isEmpty() && (i < nofArgs)); i++) { | public final void visit_invokevirtual(VmConstMethodRef methodRef) { //TODO: port to orp-style vstack.push(eContext); methodRef.resolve(loader); final VmMethod mts = methodRef.getResolvedVmMethod(); final int nofArgs = mts.getNoArguments(); for (int i = 0; i < nofArgs; i++) ... |
vstack.push(eContext); | public final void visit_newarray(int type) { IntItem count = vstack.popInt(); count.loadIf(eContext, Item.STACK); // helper.writePOP(S0); /* Elements */ /* Setup a call to SoftByteCodes.allocArray */ helper.writePUSH(type); /* type */ // helper.writePUSH(S0); ... | |
vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); | if (!vstack.isEmpty()) { vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); } | public final void visit_putstatic(VmConstFieldRef fieldRef) { //TODO: port to orp-style vstack.push(eContext); Item val = vstack.popItem(); val.release(eContext); fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); if (!s... |
return (new Boolean(getLogManager().getProperty(name))).booleanValue(); | return (Boolean.valueOf(getLogManager().getProperty(name))).booleanValue(); | static boolean getBooleanProperty(String name, boolean defaultValue) { try { return (new Boolean(getLogManager().getProperty(name))).booleanValue(); } catch (Exception ex) { return defaultValue; } } |
DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong signature field"); byte[] sBytes = ((BitString) derSignature.getValue()).toByteArray(); der = new DERReader(sBytes); | public Object decodeSignature(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger r, s; DERReader der = new DERReader(input); try { DERValue derSignature = der.read(); if (! (derSignature.getValue() instanceof BitStrin... | |
DERValue derSignature = new DERValue(DER.BIT_STRING, new BitString(result)); baos.reset(); DERWriter.write(baos, derSignature); result = baos.toByteArray(); | public byte[] encodeSignature(Object signature) { BigInteger[] rs = (BigInteger[]) signature; DERValue derR = new DERValue(DER.INTEGER, rs[0]); DERValue derS = new DERValue(DER.INTEGER, rs[1]); ArrayList dssSigValue = new ArrayList(2); dssSigValue.add(derR); dssSigValue.add(derS); DERValue derDs... | |
catch (Error e) { returnval = new ServerError ("An Error is thrown while processing the invocation on the server", e); returncode = RETURN_NACK; } | private static void incomingMessageCall(UnicastConnection conn) throws IOException { ObjectInputStream in = conn.startObjectInputStream(); // (re)start ObjectInputStream ObjID objid = ObjID.read(in); int method = in.readInt(); long hash = in.readLong();//System.out.println("ObjID: " + objid + ", method: " + method + "... | |
this(null, null, CENTER); | this(null, null, LEADING); | public JLabel() { this(null, null, CENTER); } |
size.width = size.width + getCurrentControlIcon(null).getIconWidth() + gap; | size.width = size.width + getCurrentControlIcon(path).getIconWidth() + gap + getNodeIcon(path).getIconWidth(); | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... |
int iw = getCurrentControlIcon(null).getIconWidth(); return depth * (rightChildIndent + iw/2); | return depth * totalChildIndent; | protected int getRowX(int row, int depth) { int iw = getCurrentControlIcon(null).getIconWidth(); return depth * (rightChildIndent + iw/2); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.