rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return className; | return declaringClass; | public String getClassName() { return className; } |
return hashCode(fileName) ^ lineNumber ^ hashCode(className) | return hashCode(fileName) ^ lineNumber ^ hashCode(declaringClass) | public int hashCode() { return hashCode(fileName) ^ lineNumber ^ hashCode(className) ^ hashCode(methodName); } |
if (className != null) | if (declaringClass != null) | 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)... |
sb.append(className); | sb.append(declaringClass); | 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)... |
Border border = getBorder(); if (border != null) border.paintBorder(this, g, 0, 0, s.width, s.height); | public void paint(Graphics g) { Dimension s = getSize(); MetalUtils.fillMetalPattern(splitPane, g, 2, 2, s.width - 4, s.height - 4, light, dark); if (splitPane.isOneTouchExpandable()) { ((BasicArrowButton) rightButton).paint(g); ((BasicArrowButton) leftButto... | |
byte buf[] = new byte [1]; int bytes_read = read(buf, 0, 1); if (bytes_read == -1) return -1; return buf[0] & 0xFF; | if (channel == null) throw new SocketException("not connected"); while (true) { try { return channel.getVMChannel().read(); } catch (SocketTimeoutException ste) { throw ste; } catch (InterruptedIOException iioe) { } } | 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; } |
byte buf[] = { (byte) b }; write(buf, 0, 1); | if (channel == null) throw new SocketException("not connected"); while (true) { try { channel.getVMChannel().write(b); return; } catch (InterruptedIOException iioe) { } } | public void write(int b) throws IOException { byte buf[] = { (byte) b }; write(buf, 0, 1); } |
throws IOException { throw new SocketException("Not implemented"); | throws IOException { if (channel == null) create(true); if (!(impl instanceof PlainSocketImpl)) throw new IOException("incompatible SocketImpl: " + impl.getClass().getName()); PlainSocketImpl that = (PlainSocketImpl) impl; VMChannel c = channel.getVMChannel().accept(); that.impl.getState().setChannelFD(c.getState()); t... | protected synchronized void accept(SocketImpl impl) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
protected int available() throws IOException { throw new SocketException("Not implemented"); | protected int available() throws IOException { if (channel == null) throw new SocketException("not connected"); return channel.getVMChannel().available(); | protected int available() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
throws IOException { throw new SocketException("Not implemented"); | throws IOException { if (channel == null) create(true); impl.bind(new InetSocketAddress(addr, port)); localport = channel.getVMChannel().getLocalAddress().getPort(); | protected synchronized void bind(InetAddress addr, int port) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); } |
protected void close() throws IOException { throw new SocketException("Not implemented"); | protected void close() throws IOException { if (impl.getState().isValid()) impl.close(); address = null; port = -1; | protected void close() throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
protected synchronized void connect(String host, int port) throws IOException | protected synchronized void connect(String hostname, int port) throws IOException | protected synchronized void connect(String host, int port) throws IOException { connect(InetAddress.getByName(host), port); } |
connect(InetAddress.getByName(host), port); | connect(InetAddress.getByName(hostname), port); | protected synchronized void connect(String host, int port) throws IOException { connect(InetAddress.getByName(host), port); } |
public Object getOption(int optID) throws SocketException { throw new SocketException("Not implemented"); | public Object getOption(int optionId) throws SocketException { if (optionId == SO_BINDADDR) { try { return channel.getVMChannel().getLocalAddress().getAddress(); } catch (IOException ioe) { SocketException se = new SocketException(); se.initCause(ioe); throw se; } } switch (optionId) { case SO_LINGER: case IP_MULTICA... | public Object getOption(int optID) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
throws IOException { throw new SocketException("Not implemented"); | throws IOException { impl.listen(queuelen); | protected synchronized void listen(int queuelen) throws IOException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
public void sendUrgentData(int data) | public void sendUrgentData(int data) throws IOException | public void sendUrgentData(int data) { throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); } |
throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); | impl.sendUrgentData(data); | public void sendUrgentData(int data) { throw new InternalError ("PlainSocketImpl::sendUrgentData not implemented"); } |
public void setOption(int optID, Object value) throws SocketException { throw new SocketException("Not implemented"); | public void setOption(int optionId, Object value) throws SocketException { switch (optionId) { case SO_LINGER: case IP_MULTICAST_LOOP: case SO_BROADCAST: case SO_KEEPALIVE: case SO_OOBINLINE: case TCP_NODELAY: case IP_TOS: case SO_RCVBUF: case SO_SNDBUF: case SO_TIMEOUT: case SO_REUSEADDR: impl.setOption(optionId, valu... | public void setOption(int optID, Object value) throws SocketException { // @vm-specific no natives //TODO implement me throw new SocketException("Not implemented"); } |
public void shutdownInput() | public void shutdownInput() throws IOException | public void shutdownInput() { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); } |
throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); | impl.shutdownInput(); | public void shutdownInput() { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); } |
throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); | impl.shutdownOutput(); | public void shutdownOutput() throws IOException { // @vm-specific no natives //TODO implement me throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); } |
if (event.getPropertyName().equals("editable")) { if (textComponent.isEditable()) textComponent.setBackground(background); else textComponent.setBackground(inactiveBackground); } | protected void propertyChange(PropertyChangeEvent event) { // Does nothing by default. } | |
if (!initStageDone) | if (isRootPaneCheckingEnabled()) getContentPane().add(comp, constraints, index); else | 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... |
else { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JInternalFrame directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); } | 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... | |
return "JInternalFrame"; | return super.paramString(); | protected String paramString() { return "JInternalFrame"; } |
invalidate(); doLayout(); | revalidate(); | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); invalidate(); doLayout(); } |
setRootPaneCheckingEnabled(old); | public void setUI(InternalFrameUI ui) { super.setUI(ui); } | |
setRootPaneCheckingEnabled(old); | public void updateUI() { setUI((InternalFrameUI) UIManager.getUI(this)); } | |
public IRBasicBlock(int address) { this(address, -1, false); | public IRBasicBlock( int startPC, int endPC, boolean startOfExceptionHandler) { this.startPC = startPC; this.endPC = endPC; this.startOfExceptionHandler = startOfExceptionHandler; this.stackOffset = -1; this.name = "B" + startPC; predecessors = new BootableArrayList(); successors = new BootableArrayList(); dominated... | public IRBasicBlock(int address) { this(address, -1, false); } |
writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\">"); | writeOut(outputstream,"<" + indexNodeName + " axisIdRef=\""+axisIdRef+"\"/>"); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
if (fatNr > 0) { offset += (fatNr-1) * sectsPerFat * sectSize; } | offset += fatNr * fatSize; | 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; } |
if (this.gui.isShowing()) { Rectangle r = new Rectangle(dirty); updateImage(r); } | Rectangle r = new Rectangle(dirty); 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); } ... |
attr.addAttribute(StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(attr, | AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(copy, | 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... |
AttributeContext ctx = getAttributeContext(); | AbstractDocument.AttributeContext ctx = getAttributeContext(); | 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);... |
if (rowLead != rowModel.getLeadSelectionIndex() || colLead != colModel.getLeadSelectionIndex()) if (table.isEditing()) table.editingStopped(new ChangeEvent(e)); | public void mousePressed(MouseEvent e) { begin = new Point(e.getX(), e.getY()); curr = new Point(e.getX(), e.getY()); //if control is pressed and the cell is already selected, deselect it if (e.isControlDown() && table. isCellSelected(table.rowAtPoint(begin),table.columnAtPoint(begi... | |
} | 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... | |
{ } | { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); action = new TableAction(); Object keys[] = ancestorMap.allKeys(); for (int i = 0; i < keys.length; i++) { table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i... | protected void installKeyboardActions() { } |
keyListener = createKeyListener(); | public void installUI(JComponent comp) { table = (JTable)comp; focusListener = createFocusListener(); keyListener = createKeyListener(); mouseInputListener = createMouseInputListener(); installDefaults(); installKeyboardActions(); installListeners(); } | |
writeOut(outputstream, " count=\"" + getCount() + "\""); | writeOut(outputstream, " count=\""); writeOutAttribute(outputstream, getCount().toString()); writeOut(outputstream, "\""); | 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... |
throws NameNotFoundException { | throws NameNotFoundException, HelpException { | 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 { ... |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | 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); } } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | 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); } } |
testSize(reg1, mode.getSize()); testSize(reg2, mode.getSize()); | testSize(reg1, BITS32 | BITS64); testSize(reg2, BITS32 | BITS64); | 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()); } |
testSize(reg, mode.getSize()); | testSize(reg, BITS32 | BITS64); | 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); } } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writeDEC(GPR dstReg) { testSize(dstReg, mode.getSize()); if (code32) { write8(0x48 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 1); } } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writeINC(GPR dstReg) { testSize(dstReg, mode.getSize()); if (code32) { write8(0x40 + dstReg.getNr()); } else { write1bOpcodeModRR(0xFF, dstReg.getSize(), dstReg, 0); } } |
testSize(dstReg, mode.getSize()); testSize(srcReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); testSize(srcReg, BITS32 | BITS64); | 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... |
testSize(dstReg, mode.getSize()); | 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); } } | |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writeNEG(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xf7, dstReg.getSize(), dstReg, 3); } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | 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); } } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writePOP(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeReg(0x58, dstReg); } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writeSHR(GPR dstReg, int imm8) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xc1, dstReg.getSize(), dstReg, 5); write8(imm8); } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | public final void writeSHR_CL(GPR dstReg) { testSize(dstReg, mode.getSize()); write1bOpcodeModRR(0xd3, dstReg.getSize(), dstReg, 5); } |
testSize(reg, mode.getSize()); | testSize(reg, BITS32 | BITS64); | 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); } } |
testSize(reg, mode.getSize()); | testSize(reg, BITS32 | BITS64); | public final void writeTEST(GPR reg, int imm32) { testSize(reg, mode.getSize()); write1bOpcodeModRR(0xF7, reg.getSize(), reg, 0); write32(imm32); } |
testSize(dstReg, mode.getSize()); | testSize(dstReg, BITS32 | BITS64); | 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); } } |
proc.loadPlugins(pluginRegistry); | List descriptors = proc.loadPlugins(pluginRegistry); | 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... |
piMgr.startSystemPlugins(); | piMgr.startSystemPlugins(descriptors); | 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... |
if (sPrettyXDFOutput) | if (Specification.getInstance().isPrettyXDFOutput()) | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... |
if (instance == null) instance = new MetalToolBarUI(); return instance; | return new MetalToolBarUI(); | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalToolBarUI(); return instance; } |
SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); } | this.canvas = canvas; SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); } | public SwingCanvasPeer(Canvas canvas) { SwingToolkit.add(canvas, this); SwingToolkit.copyAwtProperties(canvas, this); } |
{ if (menuItem.isContentAreaFilled()) { | 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) || (... | |
paintBackground(g, m, m.getBackground()); | paintBackground(g, m, background); | 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... |
StyleConstants.setItalic(atts, ! isBold); | StyleConstants.setBold(atts, ! isBold); | 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 = ... |
Document doc = editor.getDocument(); if (doc instanceof StyledDocument) | int p0 = editor.getSelectionStart(); int p1 = editor.getSelectionEnd(); if (p0 != p1) | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... |
StyledDocument styleDoc = (StyledDocument) editor.getDocument(); EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) { StyledEditorKit styleKit = (StyledEditorKit) kit; int start = editor.getSelectionStart(); int end = editor.getSelectionEnd(); int dot = editor.getCaret().getDot(); if (start =... | StyledDocument doc = getStyledDocument(editor); doc.setCharacterAttributes(p0, p1 - p0, atts, replace); | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... |
else styleDoc.setCharacterAttributes(start, end, atts, replace); } else throw new AssertionError("The EditorKit for StyledTextActions " + "is expected to be a StyledEditorKit"); | StyledEditorKit kit = getStyledEditorKit(editor); MutableAttributeSet inputAtts = kit.getInputAttributes(); if (replace) { inputAtts.removeAttributes(inputAtts); | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... |
else throw new AssertionError("The Document for StyledTextActions is " + "expected to be a StyledDocument."); | inputAtts.addAttributes(atts); | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... |
boolean addEdit(UndoableEdit anEdit); | boolean addEdit(UndoableEdit edit); | boolean addEdit(UndoableEdit anEdit); |
boolean replaceEdit(UndoableEdit anEdit); | boolean replaceEdit(UndoableEdit edit); | boolean replaceEdit(UndoableEdit anEdit); |
return 0; | for (int i = 0; i < getChildCount(parent); i++) { if (getChild(parent, i).equals(child)) return i; } return -1; | public int getIndexOfChild(Object parent, Object child) { return 0; // TODO } |
SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); | if (source.isShowing()) SwingUtilities.convertPointToScreen(sourcePointOnScreen, source); | 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... |
SwingUtilities.convertPointFromScreen(p, comp); | if (comp.isShowing()) SwingUtilities.convertPointFromScreen(p, comp); | 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... |
colSep = true; | 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; ... | |
char[] chars = str.toCharArray(); | final char[] chars = str.toCharArray(); final int bdfFontDepth = bdfFont.getDepth(); | 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... |
int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; | final int fHeight= glyph.getBbx().height; final int glyphBbxY = glyph.getBbx().y; final int bdfFontBbxHeight = bdfFont.getBoundingBox().height; final int[] fData = glyph.getData(); final int scan = fData.length/fHeight; final Point2D src = new Point2D.Double(); final Point2D dst = new Point2D.Double(); | 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... |
int fPixel = fData[(k*scan)+j]; | int fPixel = fData[offsetLine+j]; | 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... |
r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; | r = ((r * fPixel)>>bdfFontDepth) & 0xFF; g = ((g * fPixel)>>bdfFontDepth) & 0xFF; b = ((b * fPixel)>>bdfFontDepth) & 0xFF; | 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... |
int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); | int py = y+(base-fHeight)+k-glyphBbxY; src.setLocation(px, py); tx.transform(src, dst); px = (int) dst.getX(); py = (int) dst.getY(); surface.setRGBPixel(px, py, fPixel); | 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... |
changes.firePropertyChange(this,"print.portWidth", getStringProperty("print.portWidth"), new Double(pappyPort.getWidth())); setProperty("print.portWidth",Double.toString(pappyPort.getWidth())); changes.firePropertyChange(this,"print.portImageWidth", getStringProperty("print.portImageWidth"), new Double(pappyPort.getIm... | public void applyAttributes() { if (defaultPrinter.isSelected()) { changes.firePropertyChange(this,"defaultPrinter", getStringProperty("defaultPrinter"), "Yes"); setProperty("defaultPrinter","Yes"); } else { changes.fireProper... | |
contentPane.add(page); | public void initPanel() throws Exception { setLayout(new BorderLayout()); contentPane = new JPanel(); contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS)); add(contentPane,BorderLayout.NORTH); // define ppPanel panel JPanel ppp = new JPanel(); ppp.setBorder(BorderFac... | |
iNode.decLocked(); | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeC... | |
} finally { iNode.decLocked(); | private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeC... | |
throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); | throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); | public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0 :... |
throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); | throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); | public void invoke(ServerRequest request) { Streamable result = null; // The server request contains no required result type. Integer call_method = (Integer) methods.get(request.operation()); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_metho... |
public static HostnameVerifier getDefaultHostnameVerifier() | public static synchronized HostnameVerifier getDefaultHostnameVerifier() | public static HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; } |
if (defaultVerifier == null) { defaultVerifier = new TrivialHostnameVerifier(); } | public static HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; } | |
public static SSLSocketFactory getDefaultSSLSocketFactory() | public static synchronized SSLSocketFactory getDefaultSSLSocketFactory() | public static SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; } |
if (defaultFactory == null) { try { defaultFactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); } catch (Throwable t) { t.printStackTrace(); } } | public static SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; } | |
} | public static void setDefaultHostnameVerifier(HostnameVerifier newDefault) { if (newDefault == null) throw new IllegalArgumentException("default verifier cannot be null"); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new SSLPermission("setHostnameVerifier"))... | |
} | public static void setDefaultSSLSocketFactory(SSLSocketFactory newDefault) { if (newDefault == null) throw new IllegalArgumentException("default factory cannot be null"); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSetFactory(); defaultFactory = newDefault; } | |
protected abstract void resolve() throws PluginException; | protected abstract void resolve(PluginRegistryModel registry) throws PluginException; | protected abstract void resolve() throws PluginException; |
protected abstract void unresolve() throws PluginException; | protected abstract void unresolve(PluginRegistryModel registry) throws PluginException; | protected abstract void unresolve() throws PluginException; |
} else { | } else if (graphic.isSelected()){ | public SendEMailDialog(Frame parent, Session session) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog( parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE, null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] m... |
currentTip = null; | void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent = currentTip.getParent(); if (par... | |
currentTip.setVisible(true); currentTip.revalidate(); currentTip.repaint(); | void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon... | |
focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); | public MetalButtonUI() { super(); focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); } | |
return new MetalButtonUI(); | if (sharedUI == null) sharedUI = new MetalButtonUI(); return sharedUI; | public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); } |
disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); | protected Color getDisabledTextColor() { return disabledTextColor; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.