bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } } | protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } } | 9,205 |
private boolean evaluateImpl(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); /* * If both objects to be compared are node-sets, then the comparison * will be true if and only if there is a node in the first node-set and... | private boolean evaluateImpl(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); /* * If both objects to be compared are node-sets, then the comparison * will be true if and only if there is a node in the first node-set and... | 9,206 |
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we... | public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we... | 9,207 |
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we... | public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we... | 9,208 |
public void action (AttributeList attrs) { Log.errorln("FOR Start handler not implemented yet."); } | public void action (AttributeList attrs) { for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if (name.equals("axisIdRef") ) { AxisReadOrder.add(AxisObj.get(attrs.getValue(i))); } else Log.warnln("Warning: got weird attribute:"+name+" on for node"); } } | 9,209 |
public void action (AttributeList attrs) { // grab parent node name String gParentNodeName = getGrandParentNodeName(); // create new object appropriately Unit newunit = new Unit(); newunit.setXMLAttributes(attrs); // determine where this goes and then inse... | public void action (AttributeList attrs) { // grab parent node name String gParentNodeName = getGrandParentNodeName(); // create new object appropriately Unit newunit = new Unit(); newunit.setXMLAttributes(attrs); // determine where this goes and then inse... | 9,211 |
public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string int... | public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string int... | 9,212 |
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ... | CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new... | 9,214 |
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ... | public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) for (int i = 0; i < attrs.getLength(); i++) { if (attrs.getValue(i) != null) CurrentVa... | 9,215 |
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ... | public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no ... | 9,216 |
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) { // Note that we dont treat binary data at all try { Log.erro... | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) { // Note that we dont treat binary data at all try { ... | 9,217 |
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attribu... | private ArrayList getValueListNodeValues () { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attributes // into a... | 9,218 |
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attribu... | private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attribu... | 9,219 |
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; ... | public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; ... | 9,222 |
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; ... | public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (sizeChanged) { damaged = true;... | 9,223 |
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment //... | public void scrollRectToVisible(Rectangle contentRect) {if (isShowing()) getView().validate(); Point pos = getViewPosition();if (isShowing()) getView().validate(); Rectangle viewBounds = getView().getBounds();if (isShowing()) getView().validate(); Rectangle portBounds = getBounds();if (isShowing()) getView().vali... | 9,224 |
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment //... | public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment //... | 9,225 |
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon... | public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon... | 9,226 |
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addCompon... | public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponent... | 9,227 |
public DSSPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) { super(p, q, g); this.y = y; } | public DSSPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) { super(p, q, g); this.y = y; } | 9,229 |
public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("format"); } return result; } | public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("Unsupported encoding format: " + format); } return resu... | 9,230 |
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | 9,231 |
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | 9,232 |
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | 9,233 |
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheap... | 9,234 |
protected void initKeys(Keys keys) { Key key; keys.setKey( 1,new Key(KeyEvent.VK_ESCAPE)); keys.setKey( 2,new Key('1' ,KeyEvent.VK_1,'+' ,KeyEvent.VK_ADD ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 3,new Key('2' ,KeyEvent.VK_2,'"' ,KeyEvent.VK_QUOTEDBL ,'@' ,KeyEvent.VK_AT)); keys.setK... | protected void initKeys(Keys keys) { Key key; keys.setKey( 1,new Key(KeyEvent.VK_ESCAPE)); keys.setKey( 2,new Key('1' ,KeyEvent.VK_1,'+' ,KeyEvent.VK_ADD ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 3,new Key('2' ,KeyEvent.VK_2,'"' ,KeyEvent.VK_QUOTEDBL ,'@' ,KeyEvent.VK_AT)); keys.setK... | 9,236 |
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | 9,237 |
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | 9,238 |
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | 9,239 |
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sou... | 9,240 |
public AccessibleJTextComponent() { super(); textComp.addCaretListener(this); } | public AccessibleJTextComponent() { super(); JTextComponent.this.addCaretListener(this); caretDot = getCaretPosition(); } | 9,241 |
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); } | public void caretUpdate(CaretEvent e) { // TODO: fire appropriate event. dot = e.getDot(); } | 9,242 |
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); } | public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. int dot = e.getDot(); int mark = e.getMark(); if (caretDot != dot) { firePropertyChange(ACCESSIBLE_CARET_PROPERTY, new Integer(caretDot), new Integer(dot)); caretDot = dot; } if (mark != dot) { f... | 9,243 |
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | public void changedUpdate(DocumentEvent e) { // TODO } | 9,244 |
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); ... | 9,245 |
public void cut(int start, int end) { textComp.select(start, end); textComp.cut(); } | public void cut(int start, int end) { textComp.select(start, end); textComp.cut(); } | 9,246 |
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO } | public boolean doAccessibleAction(int i) { return false; // TODO } | 9,247 |
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO } | public boolean doAccessibleAction(int i) throws NotImplementedException { boolean ret = false; Action[] actions = getActions(); if (i >= 0 && i < actions.length) { ActionEvent ev = new ActionEvent(JTextComponent.this, ActionEvent.ACTION_PERFORMED, null); actions[i].actionPerformed(ev); ret = true; } re... | 9,248 |
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO } | public int getAccessibleActionCount() { return 0; // TODO } | 9,249 |
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO } | public int getAccessibleActionCount() throws NotImplementedException { return getActions().length; // TODO } | 9,250 |
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); } | public String getAccessibleActionDescription(int i) { // TODO: Not implemented fully return super.getAccessibleDescription(); } | 9,251 |
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); } | public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully String desc = null; Action[] actions = getActions(); if (i >= 0 && i < actions.length) desc = (String) actions[i].getValue(Action.NAME); return desc; } | 9,252 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; } | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; } | 9,253 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; } | if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); publicif (isEditable()) state.add(AccessibleState.EDITABLE); AccessibleStateSetif (isEditable()) sta... | 9,254 |
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getAfterIndex(int part, int index) { return null; // TODO } | 9,255 |
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getAfterIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, 1); // TODO } | 9,256 |
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getAtIndex(int part, int index) { return null; // TODO } | 9,257 |
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getAtIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, 0); // TODO } | 9,258 |
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getBeforeIndex(int part, int index) { return null; // TODO } | 9,259 |
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO } | public String getBeforeIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, -1); // TODO } | 9,260 |
public int getCaretPosition() { dot = textComp.getCaretPosition(); return dot; } | public int getCaretPosition() { dot = textComp.getCaretPosition(); return dot; } | 9,261 |
public int getCharCount() { return textComp.getText().length(); } | public int getCharCount() { return JTextComponent.this.getText().length(); } | 9,262 |
public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { return null; // TODO } | public AttributeSet getCharacterAttribute(int index) { return null; // TODO } | 9,263 |
public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { return null; // TODO } | public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { AttributeSet atts; if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { Element el = doc.getDefaultRootElement(); while (! el.isLeaf()) { int i = el.getElementIndex(index); el = el.getElemen... | 9,264 |
public Rectangle getCharacterBounds(int index) throws NotImplementedException { return null; // TODO } | public Rectangle getCharacterBounds(int index) { return null; // TODO } | 9,265 |
public Rectangle getCharacterBounds(int index) throws NotImplementedException { return null; // TODO } | public Rectangle getCharacterBounds(int index) throws NotImplementedException { Rectangle bounds = null; if (index >= 0 && index < doc.getLength() - 1) { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { TextUI ui = getUI(); if (ui != null) { Rectangle rect = new Rectan... | 9,266 |
public int getIndexAtPoint(Point p) throws NotImplementedException { return 0; // TODO } | public int getIndexAtPoint(Point p) { return 0; // TODO } | 9,267 |
public int getIndexAtPoint(Point p) throws NotImplementedException { return 0; // TODO } | public int getIndexAtPoint(Point p) throws NotImplementedException { return viewToModel(p); // TODO } | 9,268 |
public String getSelectedText() { return textComp.getSelectedText(); } | public String getSelectedText() { return JTextComponent.this.getSelectedText(); } | 9,269 |
public int getSelectionEnd() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionEnd(); } | public int getSelectionEnd() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionEnd(); } | 9,270 |
public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionStart(); } | public int getSelectionStart() { if (getSelectedText() == null || (JTextComponent.this.getText().equals(""))) return 0; return textComp.getSelectionStart(); } | 9,271 |
public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionStart(); } | public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return JTextComponent.this.getSelectionStart(); } | 9,272 |
public String getTextRange(int start, int end) { try { return textComp.getText(start, end - start); } catch (BadLocationException ble) { return ""; } } | public String getTextRange(int start, int end) { try { return JTextComponent.this.getText(start, end - start); } catch (BadLocationException ble) { return ""; } } | 9,273 |
public void insertTextAtIndex(int index, String s) throws NotImplementedException { replaceText(index, index, s); } | public void insertTextAtIndex(int index, String s) { replaceText(index, index, s); } | 9,274 |
public void insertTextAtIndex(int index, String s) throws NotImplementedException { replaceText(index, index, s); } | public void insertTextAtIndex(int index, String s) throws NotImplementedException { try { doc.insertString(index, s, null); } catch (BadLocationException ex) { ex.printStackTrace(); } } | 9,275 |
public void insertUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | public void insertUpdate(DocumentEvent e) { // TODO } | 9,276 |
public void insertUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); ... | 9,277 |
public void paste(int start) { textComp.setCaretPosition(start); textComp.paste(); } | public void paste(int start) { textComp.setCaretPosition(start); textComp.paste(); } | 9,278 |
public void removeUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | public void removeUpdate(DocumentEvent e) { // TODO } | 9,279 |
public void removeUpdate(DocumentEvent e) throws NotImplementedException { // TODO } | firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); ... | 9,280 |
public void replaceText(int start, int end, String s) { textComp.select(start, end); textComp.replaceSelection(s); } | public void replaceText(int start, int end, String s) { textComp.select(start, end); textComp.replaceSelection(s); } | 9,281 |
public void selectText(int start, int end) { textComp.select(start, end); } | public void selectText(int start, int end) { JTextComponent.this.select(start, end); } | 9,282 |
public void setAttributes(int start, int end, AttributeSet s) throws NotImplementedException { // TODO } | public void setAttributes(int start, int end, AttributeSet s) { // TODO } | 9,283 |
public void setAttributes(int start, int end, AttributeSet s) throws NotImplementedException { // TODO } | if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { S... | 9,284 |
public void setTextContents(String s) throws NotImplementedException { // TODO } | public void setTextContents(String s) { // TODO } | 9,285 |
public void setTextContents(String s) throws NotImplementedException { // TODO } | setText(s); setText(s); setText(s); setText(s); publicsetText(s); voidsetText(s); setTextContents(StringsetText(s); s)setText(s); setText(s); setText(s); setText(s); setText(s); setText(s); throwssetText(s); NotImplementedExceptionsetText(s); setText(s); setText(s); setText(s); {setText(s); setText(s); setText(s); setT... | 9,286 |
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; } | public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; } | 9,287 |
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; } | public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return res; } | 9,288 |
public void reset() { spoolName.setEnabled(false); spoolName.setText(""); //select.setSelected(false); all.setSelected(true); } | publicvoidreset(){spoolName.setEnabled(false);spoolName.setText("");//select.setSelected(false);all.setSelected(true);} | 9,290 |
public final void hostPrint(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } screen52.setCursorOff(); screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null... | public final void hostPrint(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } screen52.setCursorActive(false); screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE... | 9,291 |
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1:... | private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk... | 9,292 |
private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen5... | private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setStatus... | 9,293 |
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 9,294 |
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 9,295 |
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 9,296 |
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 9,297 |
public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen52.STAT... | public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setStatus(scree... | 9,298 |
Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; } | Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; } | 9,299 |
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | 9,302 |
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | 9,303 |
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); ... | 9,304 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp... | 9,328 |
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis... | public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis... | 9,359 |
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis... | public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis... | 9,360 |
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + gap, ... | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), ... | 9,363 |
Icon getCurrentControlIcon(TreePath path) { if (tree.isExpanded(path)) return UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon"); return UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon"); } | Icon getCurrentControlIcon(TreePath path) { if (tree.isExpanded(path)) return UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon"); return UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon"); } | 9,364 |
boolean hasControlIcons() { if (UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon") != null || UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon") != null) return true; return false; } | boolean hasControlIcons() { if (UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon") != null || UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon") != null) return true; return false; } | 9,365 |
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");... | protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent");... | 9,366 |
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selecti... | protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionMod... | 9,367 |
public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); if (mo... | public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); if (mo... | 9,368 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.