bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;} | getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;} | 6,667 |
getName(){ return(name);} | getName(){ return(name);} | 6,668 |
getTreeLock(){ return(tree_lock);} | getTreeLock(){ return(tree_lock);} | 6,669 |
postEvent(Event event){ // This is overridden by subclasses that support events. return false;} | postEvent(Event event){ // This is overridden by subclasses that support events. return false;} | 6,670 |
setFont(Font font){ this.font = font;} | setFont(Font font){ this.font = font;} | 6,671 |
setName(String name){ this.name = name; nameExplicitlySet = true;} | setName(String name){ this.name = name; nameExplicitlySet = true;} | 6,672 |
setParent(MenuContainer parent){ this.parent = parent;} | setParent(MenuContainer parent){ this.parent = parent;} | 6,673 |
setTreeLock(Object tree_lock){ this.tree_lock = tree_lock;} | setTreeLock(Object tree_lock){ this.tree_lock = tree_lock;} | 6,674 |
toString(){ return this.getClass().getName() + "[" + paramString() + "]";} | toString(){ return this.getClass().getName() + "[" + paramString() + "]";} | 6,675 |
public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; } | public Accessible getAccessibleChild(int value0) throws NotImplementedException { Component[] children = getMenuComponents(); int count = 0; Accessible found = null; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) { if (count == index) { found = (Accessible) children[... | 6,678 |
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; } | public int getAccessibleChildrenCount() throws NotImplementedException { Component[] children = getMenuComponents(); int count = 0; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) count++; } return count; } | 6,679 |
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } | public int getAccessibleSelectionCount() throws NotImplementedException { int count = 0; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { for (int i = 0; i < me.length; i++) { if (me[i] == JMenu.this) { if (i + 1 < me.length) ... | 6,680 |
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; } | public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { boolean selected = false; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { Accessible toBeFound = getAccessibleChild(index); for (int i = 0;... | 6,681 |
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font... | public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font... | 6,683 |
public synchronized void addNotify() { if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify(); } | public synchronized void addNotify() { if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify(); } | 6,684 |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 6,685 |
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); } | getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); } | 6,686 |
public boolean getState() { return (state); } | public boolean getState() { return (state); } | 6,687 |
public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); } | public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); } | 6,688 |
protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 6,689 |
protected void processItemEvent(ItemEvent event) { if (item_listeners != null) item_listeners.itemStateChanged(event); } | processItemEvent(ItemEvent event) { if (item_listeners != null) item_listeners.itemStateChanged(event); } | 6,690 |
public synchronized void removeItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.remove(item_listeners, listener); } | removeItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.remove(item_listeners, listener); } | 6,691 |
private void doExecute() throws BuildException, ClassNotFoundException, IllegalAccessException, IOException { final VmArchitecture arch = getArchitecture(); final int slotSize = arch.getReferenceSize(); VmSystemClassLoader cl = new VmSystemClassLoader(classesURL, arch); final Vm vm = new Vm(arch, null, cl.getStati... | private void doExecute() throws BuildException, ClassNotFoundException, IllegalAccessException, IOException { final VmArchitecture arch = getArchitecture(); final int slotSize = arch.getReferenceSize(); VmSystemClassLoader cl = new VmSystemClassLoader(classesURL, arch); final Vm vm = new Vm("?", arch, null, cl.get... | 6,692 |
public void actionPerformed(ActionEvent e) { doConnections(); } | public void actionPerformed(ActionEvent e) { doConnections(); } | 6,694 |
public void actionPerformed(ActionEvent e) { changeConnection(); getFocusForMe(); } | public void actionPerformed(ActionEvent e) { changeConnection(); getFocusForMe(); } | 6,695 |
public void actionPerformed(ActionEvent e) { closeSession(); } | public void actionPerformed(ActionEvent e) { closeSession(); } | 6,696 |
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g... | 6,697 |
StackTraceElement(String fileName, int lineNumber, String className, String methodName, boolean isNative) { this.fileName = fileName; this.lineNumber = lineNumber; this.className = className; this.methodName = methodName; this.isNative = isNative; } | StackTraceElement(String fileName, int lineNumber, String className, String methodName, boolean isNative) { this.fileName = fileName; this.lineNumber = lineNumber; this.declaringClass = className; this.methodName = methodName; this.isNative = isNative; } | 6,698 |
public boolean equals(Object o) { if (! (o instanceof StackTraceElement)) return false; StackTraceElement e = (StackTraceElement) o; return equals(fileName, e.fileName) && lineNumber == e.lineNumber && equals(className, e.className) && equals(methodName, e.methodName); } | public boolean equals(Object o) { if (! (o instanceof StackTraceElement)) return false; StackTraceElement e = (StackTraceElement) o; return equals(fileName, e.fileName) && lineNumber == e.lineNumber && equals(declaringClass, e.declaringClass) && equals(methodName, e.methodName); } | 6,699 |
public String getClassName() { return className; } | public String getClassName() { return declaringClass; } | 6,700 |
public int hashCode() { return hashCode(fileName) ^ lineNumber ^ hashCode(className) ^ hashCode(methodName); } | public int hashCode() { return hashCode(fileName) ^ lineNumber ^ hashCode(declaringClass) ^ hashCode(methodName); } | 6,701 |
public String toString() { StringBuffer sb = new StringBuffer(); if (className != null) { sb.append(className); if (methodName != null) sb.append('.'); } if (methodName != null) sb.append(methodName); sb.append(" ("); if (fileName != null) sb.append(fileName)... | public String toString() { StringBuffer sb = new StringBuffer(); if (declaringClass != null) { sb.append(className); if (methodName != null) sb.append('.'); } if (methodName != null) sb.append(methodName); sb.append(" ("); if (fileName != null) sb.append(file... | 6,702 |
public String toString() { StringBuffer sb = new StringBuffer(); if (className != null) { sb.append(className); if (methodName != null) sb.append('.'); } if (methodName != null) sb.append(methodName); sb.append(" ("); if (fileName != null) sb.append(fileName)... | public String toString() { StringBuffer sb = new StringBuffer(); if (className != null) { sb.append(declaringClass); if (methodName != null) sb.append('.'); } if (methodName != null) sb.append(methodName); sb.append(" ("); if (fileName != null) sb.append(file... | 6,703 |
public int read() throws IOException { byte buf[] = new byte [1]; int bytes_read = read(buf, 0, 1); if (bytes_read == -1) return -1; return buf[0] & 0xFF; } | public int read() throws IOException { byte buf[] = new byte [1]; int bytes_read = read(buf, 0, 1); if (bytes_read == -1) return -1; return buf[0] & 0xFF; } | 6,705 |
public void write(int b) throws IOException { byte buf[] = { (byte) b }; write(buf, 0, 1); } | public void write(int b) throws IOException { byte buf[] = { (byte) b }; write(buf, 0, 1); } | 6,706 |
protected synchronized void accept(SocketImpl impl) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | protected synchronized void accept(SocketImpl impl) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,707 |
protected int available() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | protected int available() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,708 |
protected synchronized void bind(InetAddress addr, int port) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); } | protected synchronized void bind(InetAddress addr, int port) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); } | 6,709 |
protected void close() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | protected void close() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,710 |
protected synchronized void connect(String host, int port) throws IOException { connect(InetAddress.getByName(host), port); } | protected synchronized void connect(String hostname, int port) throws IOException { connect(InetAddress.getByName(host), port); } | 6,711 |
protected synchronized void connect(String host, int port) throws IOException { connect(InetAddress.getByName(host), port); } | protected synchronized void connect(String host, int port) throws IOException { connect(InetAddress.getByName(hostname), port); } | 6,712 |
public Object getOption(int optID) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | public Object getOption(int optID) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,713 |
protected synchronized void listen(int queuelen) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | protected synchronized void listen(int queuelen) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,714 |
public void sendUrgentData(int data) { throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); } | public void sendUrgentData(int data) throws IOException { throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); } | 6,715 |
public void sendUrgentData(int data) { throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); } | public void sendUrgentData(int data) { impl.sendUrgentData(data); } | 6,716 |
public void setOption(int optID, Object value) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | public void setOption(int optID, Object value) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } | 6,717 |
public void shutdownInput() { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); } | public void shutdownInput() throws IOException { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); } | 6,718 |
public void shutdownInput() { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); } | public void shutdownInput() { // @vm-specific no natives //TODO implement me impl.shutdownInput(); } | 6,719 |
public void shutdownOutput() throws IOException { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); } | public void shutdownOutput() throws IOException { // @vm-specific no natives //TODO implement me impl.shutdownOutput(); } | 6,720 |
protected void addImpl(Component comp, Object constraints, int index) { // If we're in the initialization stage use super.add. Here we add the // rootPane as well as the title bar and other stuff. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp,constraints, in... | protected void addImpl(Component comp, Object constraints, int index) { // If we're in the initialization stage use super.add. Here we add the // rootPane as well as the title bar and other stuff. // Otherwise pass the add onto the content pane. if (isRootPaneCheckingEnabled()) getContentPane().add(comp,... | 6,722 |
protected void addImpl(Component comp, Object constraints, int index) { // If we're in the initialization stage use super.add. Here we add the // rootPane as well as the title bar and other stuff. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp,constraints, in... | protected void addImpl(Component comp, Object constraints, int index) { // If we're in the initialization stage use super.add. Here we add the // rootPane as well as the title bar and other stuff. // Otherwise pass the add onto the content pane. if (!initStageDone) super.addImpl(comp,constraints, in... | 6,723 |
protected String paramString() { return "JInternalFrame"; } | protected String paramString() { return super.paramString(); } | 6,724 |
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); invalidate(); doLayout(); } | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); invalidate(); doLayout(); } | 6,725 |
public IRBasicBlock(int address) { this(address, -1, false); } | public IRBasicBlock(int address) { this(address, -1, false); } | 6,728 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,729 |
public static long getFatOffset(BootSector bs, int fatNr) { long sectSize = bs.getBytesPerSector(); long sectsPerFat = bs.getSectorsPerFat(); long resSects = bs.getNrReservedSectors(); long offset = resSects * sectSize; if (fatNr > 0) { offset += (fatNr-1) * sectsPerFat * sectSize; } return offset; } | public static long getFatOffset(BootSector bs, int fatNr) { long sectSize = bs.getBytesPerSector(); long sectsPerFat = bs.getSectorsPerFat(); long resSects = bs.getNrReservedSectors(); long offset = resSects * sectSize; if (fatNr > 0) { offset += (fatNr-1) * sectsPerFat * sectSize; } return offset; } | 6,730 |
public void updateDirty() { //LDC - 12/02/2003 - check if we must repaint it if (drawing == false) return; //LDC - 18/02/2003 - only update the screen when the window is showing if (this.gui.isShowing()) { Rectangle r = new Rectangle(dirty); // update the image updateImage(r); } ... | public void updateDirty() { //LDC - 12/02/2003 - check if we must repaint it if (drawing == false) return; //LDC - 18/02/2003 - only update the screen when the window is showing if (this.gui.isShowing()) { Rectangle r = new Rectangle(dirty); // update the image updateImage(r); } ... | 6,731 |
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; attr.addAttribute(StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(attr, DefaultStyledDocument.ElementSpec.StartTagType); parseBuf... | protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; attr.addAttribute(StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(attr, DefaultStyledDocument.ElementSpec.StartTagType); parseBuf... | 6,732 |
protected AbstractElement createDefaultRoot() { AttributeContext ctx = getAttributeContext(); // Create html element. AttributeSet atts = ctx.getEmptySet(); atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.HTML); BranchElement html = (BranchElement) createBranchElement(null, atts);... | protected AbstractElement createDefaultRoot() { AbstractDocument.AttributeContext ctx = getAttributeContext(); // Create html element. AttributeSet atts = ctx.getEmptySet(); atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.HTML); BranchElement html = (BranchElement) createBranchEle... | 6,733 |
private void updateSelection(boolean controlPressed) { // Update the rows int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) { if (c... | private void updateSelection(boolean controlPressed) { // Update the rows int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) { if (c... | 6,735 |
protected void installKeyboardActions() { } | protected void installKeyboardActions() { } | 6,736 |
public void installUI(JComponent comp) { table = (JTable)comp; focusListener = createFocusListener(); keyListener = createKeyListener(); mouseInputListener = createMouseInputListener(); installDefaults(); installKeyboardActions(); installListeners(); } | public void installUI(JComponent comp) { table = (JTable)comp; focusListener = createFocusListener(); mouseInputListener = createMouseInputListener(); installDefaults(); installKeyboardActions(); installListeners(); } | 6,737 |
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm... | protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\""); writeOutAttribute(outputstream, getCount().toString()); writeOut(outputstream, "\""); writeOut(outputstream, ">"); /... | 6,738 |
public static void main(String[] args) throws NameNotFoundException { Help.Info info = HELP_INFO; // defaults to print own help ParsedArguments cmdLine = HELP_INFO.parse(args); if (PARAM_COMMAND.isSet(cmdLine)) try { String cmd = ARG_COMMAND.getValue(cmdLine); Class clazz = null; try { ... | public static void main(String[] args) throws NameNotFoundException, HelpException { Help.Info info = HELP_INFO; // defaults to print own help ParsedArguments cmdLine = HELP_INFO.parse(args); if (PARAM_COMMAND.isSet(cmdLine)) try { String cmd = ARG_COMMAND.getValue(cmdLine); Class clazz = null... | 6,739 |
public void writeADD(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 0); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 0); write32(imm32); } } | public void writeADD(GPR dstReg, int imm32) { testSize(dstReg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 0); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 0); write32(imm32); } } | 6,740 |
public final void writeAND(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 4); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 4); write32(imm32); } } | public final void writeAND(GPR dstReg, int imm32) { testSize(dstReg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 4); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 4); write32(imm32); } } | 6,741 |
public void writeCMP(GPR reg1, int disp, GPR reg2) { testSize(reg1, mode.getSize()); testSize(reg2, mode.getSize()); write1bOpcodeModRM(0x39, reg2.getSize(), reg1, disp, reg2.getNr()); } | public void writeCMP(GPR reg1, int disp, GPR reg2) { testSize(reg1, mode.getSize()); testSize(reg2, mode.getSize()); write1bOpcodeModRM(0x39, reg2.getSize(), reg1, disp, reg2.getNr()); } | 6,742 |
public final void writeCMP_Const(GPR reg, int imm32) { testSize(reg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, reg.getSize(), reg, 7); write8(imm32); } else { write1bOpcodeModRR(0x81, reg.getSize(), reg, 7); write32(imm32); } } | public final void writeCMP_Const(GPR reg, int imm32) { testSize(reg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, reg.getSize(), reg, 7); write8(imm32); } else { write1bOpcodeModRR(0x81, reg.getSize(), reg, 7); write32(imm32); } } | 6,743 |
public final void writeDEC(GPR dstReg) { testSize(dstReg, mode.getSize()); if (code32) { write8(0x48 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 1); } } | public final void writeDEC(GPR dstReg) { testSize(dstReg, BITS32 | BITS64); if (code32) { write8(0x48 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 1); } } | 6,744 |
public final void writeINC(GPR dstReg) { testSize(dstReg, mode.getSize()); if (code32) { write8(0x40 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 0); } } | public final void writeINC(GPR dstReg) { testSize(dstReg, BITS32 | BITS64); if (code32) { write8(0x40 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 0); } } | 6,745 |
public final void writeMOV(int operandSize, GPR dstReg, int dstDisp, GPR srcReg) { testSize(dstReg, mode.getSize()); testSize(srcReg, mode.getSize()); testDst(dstReg, dstDisp); final int opcode; switch (operandSize) { case X86Constants.BITS8: opcode = 0x88; break; case X86Constants.BITS16: o... | public final void writeMOV(int operandSize, GPR dstReg, int dstDisp, GPR srcReg) { testSize(dstReg, mode.getSize()); testSize(srcReg, mode.getSize()); testDst(dstReg, dstDisp); final int opcode; switch (operandSize) { case X86Constants.BITS8: opcode = 0x88; break; case X86Constants.BITS16: o... | 6,746 |
public final void writeMOV_Const(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); testSize(dstReg, BITS32 | BITS64); if (dstReg.getSize() == BITS32) { write1bOpcodeReg(0xB8, dstReg); write32(imm32); } else { writeMOV_Const(dstReg, (long) imm32); } } | public final void writeMOV_Const(GPR dstReg, int imm32) { testSize(dstReg, BITS32 | BITS64); if (dstReg.getSize() == BITS32) { write1bOpcodeReg(0xB8, dstReg); write32(imm32); } else { writeMOV_Const(dstReg, (long) imm32); } } | 6,747 |
public final void writeNEG(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xf7, dstReg.getSize(), dstReg, 3); } | public final void writeNEG(GPR dstReg) { testSize(dstReg, BITS32 | BITS64); write1bOpcodeModRR(0xf7, dstReg.getSize(), dstReg, 3); } | 6,748 |
public void writeOR(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 1); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 1); write32(imm32); } } | public void writeOR(GPR dstReg, int imm32) { testSize(dstReg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 1); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 1); write32(imm32); } } | 6,749 |
public final void writePOP(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeReg(0x58, dstReg); } | public final void writePOP(GPR dstReg) { testSize(dstReg, BITS32 | BITS64); write1bOpcodeReg(0x58, dstReg); } | 6,750 |
public final void writeSHR(GPR dstReg, int imm8) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xc1, dstReg.getSize(), dstReg, 5); write8(imm8); } | public final void writeSHR(GPR dstReg, int imm8) { testSize(dstReg, BITS32 | BITS64); write1bOpcodeModRR(0xc1, dstReg.getSize(), dstReg, 5); write8(imm8); } | 6,751 |
public final void writeSHR_CL(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xd3, dstReg.getSize(), dstReg, 5); } | public final void writeSHR_CL(GPR dstReg) { testSize(dstReg, BITS32 | BITS64); write1bOpcodeModRR(0xd3, dstReg.getSize(), dstReg, 5); } | 6,752 |
public final void writeSUB(GPR reg, int imm32) { testSize(reg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, reg.getSize(), reg, 5); write8(imm32); } else { write1bOpcodeModRR(0x81, reg.getSize(), reg, 5); write32(imm32); } } | public final void writeSUB(GPR reg, int imm32) { testSize(reg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, reg.getSize(), reg, 5); write8(imm32); } else { write1bOpcodeModRR(0x81, reg.getSize(), reg, 5); write32(imm32); } } | 6,753 |
public final void writeTEST(GPR reg, int imm32) { testSize(reg, mode.getSize()); write1bOpcodeModRR(0xF7, reg.getSize(), reg, 0); write32(imm32); } | public final void writeTEST(GPR reg, int imm32) { testSize(reg, BITS32 | BITS64); write1bOpcodeModRR(0xF7, reg.getSize(), reg, 0); write32(imm32); } | 6,754 |
public void writeXOR(GPR dstReg, int imm32) { testSize(dstReg, mode.getSize()); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 6); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 6); write32(imm32); } } | public void writeXOR(GPR dstReg, int imm32) { testSize(dstReg, BITS32 | BITS64); if (X86Utils.isByte(imm32)) { write1bOpcodeModRR(0x83, dstReg.getSize(), dstReg, 6); write8(imm32); } else { write1bOpcodeModRR(0x81, dstReg.getSize(), dstReg, 6); write32(imm32); } } | 6,755 |
public static int vmMain() throws PragmaUninterruptible, PragmaLoadStatics { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); // Load the plugins from the initjar BootLog.info("Loading ini... | public static int vmMain() throws PragmaUninterruptible, PragmaLoadStatics { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); // Load the plugins from the initjar BootLog.info("Loading ini... | 6,756 |
public static int vmMain() throws PragmaUninterruptible, PragmaLoadStatics { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); // Load the plugins from the initjar BootLog.info("Loading ini... | public static int vmMain() throws PragmaUninterruptible, PragmaLoadStatics { //return 15; try { Unsafe.debug("Starting JNode\n"); final long start = VmSystem.currentKernelMillis(); Unsafe.debug("VmSystem.initialize\n"); VmSystem.initialize(); // Load the plugins from the initjar BootLog.info("Loading ini... | 6,757 |
public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 6,758 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToolBarUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToolBarUI(); return instance; } | 6,759 |
public SwingCanvasPeer(Canvas canvas) { SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); } | public SwingCanvasPeer(Canvas canvas) { SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); } | 6,760 |
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if ((menuItem.isSelected() && checkIcon == null) || (... | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if ((menuItem.isSelected() && checkIcon == null) || (... | 6,761 |
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if ((menuItem.isSelected() && checkIcon == null) || (... | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) { // Menu item is considered to be highlighted when it is selected. // But we don't want to paint the background of JCheckBoxMenuItems ButtonModel mod = menuItem.getModel(); if ((menuItem.isSelected() && checkIcon == null) || (... | 6,762 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 6,763 |
public void actionPerformed(ActionEvent event) { JEditorPane editor = getEditor(event); StyledDocument doc = getStyledDocument(editor); Element el = doc.getCharacterElement(editor.getSelectionStart()); boolean isBold = StyleConstants.isBold(el.getAttributes()); SimpleAttributeSet atts = ... | public void actionPerformed(ActionEvent event) { JEditorPane editor = getEditor(event); StyledDocument doc = getStyledDocument(editor); Element el = doc.getCharacterElement(editor.getSelectionStart()); boolean isBold = StyleConstants.isBold(el.getAttributes()); SimpleAttributeSet atts = ... | 6,764 |
protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | 6,765 |
protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | 6,766 |
protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | 6,767 |
protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | 6,768 |
boolean addEdit(UndoableEdit anEdit); | boolean addEdit(UndoableEdit edit); | 6,769 |
boolean replaceEdit(UndoableEdit anEdit); | boolean replaceEdit(UndoableEdit edit); | 6,770 |
public int getIndexOfChild(Object parent, Object child) { return 0; // TODO } | public int getIndexOfChild(Object parent, Object child) { for (int i = 0; i < getChildCount(parent); i++) { if (getChild(parent, i).equals(child)) return i; } return -1; // TODO } | 6,771 |
public Component componentForPoint(Component source, Point sourcePoint) { // Convert sourcePoint to screen coordinates. Point sourcePointOnScreen = sourcePoint; SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); Point compPointOnScreen; Component resultComp = null; // For each menu e... | public Component componentForPoint(Component source, Point sourcePoint) { // Convert sourcePoint to screen coordinates. Point sourcePointOnScreen = sourcePoint; if (source.isShowing()) SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); Point compPointOnScreen; Component resultComp = nul... | 6,772 |
public Component componentForPoint(Component source, Point sourcePoint) { // Convert sourcePoint to screen coordinates. Point sourcePointOnScreen = sourcePoint; SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); Point compPointOnScreen; Component resultComp = null; // For each menu e... | public Component componentForPoint(Component source, Point sourcePoint) { // Convert sourcePoint to screen coordinates. Point sourcePointOnScreen = sourcePoint; SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); Point compPointOnScreen; Component resultComp = null; // For each menu e... | 6,773 |
public final void setAttribute(int i) { colSep = false; underLine = false; nonDisplay = false; isChanged = attr == i ? false : true; attr = i; if(i == 0) return; switch(i) { case 32: // green normal fg = s.colorGreen; bg = s.colorBg; ... | public final void setAttribute(int i) { colSep = false; underLine = false; nonDisplay = false; isChanged = attr == i ? false : true; attr = i; if(i == 0) return; switch(i) { case 32: // green normal fg = s.colorGreen; bg = s.colorBg; ... | 6,774 |
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric... | final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric... | 6,775 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.