bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | 5,508 |
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie... | public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie... | 5,509 |
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie... | getDataCube().incrementDimension(fieldAxis); getDataCube().incrementDimension(fieldAxis); publicgetDataCube().incrementDimension(fieldAxis); FieldAxisgetDataCube().incrementDimension(fieldAxis); addFieldAxis(FieldAxisgetDataCube().incrementDimension(fieldAxis); fieldAxis)getDataCube().incrementDimension(fieldAxis); {ge... | 5,510 |
public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie... | public FieldAxis addFieldAxis(FieldAxis fieldAxis) { if (!canAddFieldAxisObjToArray(fieldAxis)) return null; if (getFieldAxis() !=null) { List axisList = getAxisList(); axisList.remove(0); // axisList.add(0, fieldAxis); //replace the old fieldAxis with the new one } else { //add fie... | 5,511 |
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else { Log.warn("in Structure.addParamGroup(). ParameterGroup passed in is null"); return null; } } | public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else { Log.warn("in Array.addParamGroup(). ParameterGroup passed in is null"); return null; } } | 5,512 |
public boolean removeParamGroup(ParameterGroup group) { if (group == null) { Log.warn("in Structure.removeParamGroup(). ParameterGroup passed in is null"); return false; } return paramGroupOwnedHash.remove(group); } | public boolean removeParamGroup(ParameterGroup group) { if (group == null) { Log.warn("in Array.removeParamGroup(). ParameterGroup passed in is null"); return false; } return paramGroupOwnedHash.remove(group); } | 5,513 |
public void deiconifyFrame(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); removeIconFor(frame); c.add(frame); frame.setVisible(true); if (! frame.isSelected()) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(fr... | public void deiconifyFrame(JInternalFrame frame) { JDesktopIcon icon = frame.getDesktopIcon(); Container c = icon.getParent(); removeIconFor(frame); c.add(frame); frame.setVisible(true); if (!frame.isSelected()) { JDesktopPane p = frame.getDesktopPane(); if (p != null) p.setSelectedFrame(fra... | 5,514 |
public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { ... | 5,515 |
public int getErrorLine() { return errorLineNum; } | public int getErrorLine() { return errorLineNum; } | 5,522 |
void jbInit() throws Exception { // damn I hate putting this in but it is the only way to get // it to work correctly. What a pain in the ass. if (OperatingSystem.isMacOS() && OperatingSystem.hasJava14()) fullRepaint = true; // change by Luc - LDC If the font from the properties file does not // exist // s... | void jbInit() throws Exception { // damn I hate putting this in but it is the only way to get // it to work correctly. What a pain in the ass. if (OperatingSystem.isMacOS() && OperatingSystem.hasJava14()) fullRepaint = true; // change by Luc - LDC If the font from the properties file does not // exist // s... | 5,523 |
public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } } | public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } } | 5,524 |
public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } } | public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } } | 5,525 |
public void saveErrorLine() {// // if there is already an error line saved then do not save it again// // This signifies that there was a previous error and the original error// // line was not restored yet.// if (errorLine == null) {// errorLine = new ScreenChar[numCols];// int r = getPos(errorLineNum - 1, ... | public void saveErrorLine() {// // if there is already an error line saved then do not save it again// // This signifies that there was a previous error and the original error// // line was not restored yet.// if (errorLine == null) {// errorLine = new ScreenChar[numCols];// int r = getPos(errorLineNum - 1, ... | 5,526 |
public void setErrorLine(int line) { if (line == 0 || line > numRows) errorLineNum = numRows; else errorLineNum = line; } | public void setErrorLine(int line) { if (line == 0 || line > numRows) errorLineNum = numRows; else errorLineNum = line; } | 5,527 |
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols;// screen = new ScreenChar[lenScreen];//// for (int y = 0; y < lenScreen; y++) {// screen[y] = new ScreenChar(this);// screen[y].setCharAndAttr(' ', initAttr... | public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols;// screen = new ScreenChar[lenScreen];//// for (int y = 0; y < lenScreen; y++) {// screen[y] = new ScreenChar(this);// screen[y].setCharAndAttr(' ', initAttr... | 5,528 |
protected synchronized void updateImage(int x, int y, int width, int height) { if (gg2d == null) { //System.out.println("was null"); gg2d = (Graphics2D) gui.getGraphics(); } // check for selected area and erase it before updating screen if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rub... | protected synchronized void updateImage(int x, int y, int width, int height) { if (gg2d == null) { //System.out.println("was null"); gg2d = (Graphics2D) gui.getGraphics(); } // check for selected area and erase it before updating screen if (gui.rubberband != null && gui.rubberband.isAreaSelected()) { gui.rub... | 5,529 |
public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi... | public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi... | 5,530 |
public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi... | public synchronized int GetScreen(char buffer[], int bufferLength, int from, int length, int plane)// throws OhioException { {// if(buffer == null)// throw new OhioException(sessionVT.getSessionConfi... | 5,531 |
protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = attr; disperseAttribute(pos,attr); screenIsAttr[pos] = isAttr; screenGUI[pos] = initChar; } | protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = (char)attr; disperseAttribute(pos,attr); screenIsAttr[pos] = isAttr; screenGUI[pos] = initChar; } | 5,532 |
protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = attr; disperseAttribute(pos,attr); screenIsAttr[pos] = isAttr; screenGUI[pos] = initChar; } | protected void setScreenCharAndAttr(int pos, char c, int attr, boolean isAttr) { screen[pos] = c; screenAttr[pos] = attr; disperseAttribute(pos,attr); screenIsAttr[pos] = (isAttr ? '1' : '0'); screenGUI[pos] = initChar; } | 5,533 |
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); } | protected void setScreenAttr(int pos, int attr, boolean isAttr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); } | 5,534 |
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); } | protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = (char)attr; screenIsAttr[pos] = isAttr ? '1' : '0'; disperseAttribute(pos,attr); screenGUI[pos] = initChar; disperseAttribute(pos,attr); } | 5,535 |
protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; disperseAttribute(pos,attr); } | protected void setScreenAttr(int pos, int attr) { screenAttr[pos] = attr; screenGUI[pos] = initChar; } | 5,536 |
protected final void setChar(int pos, char c) { screenIsChanged[pos] = screen[pos] == c ? false : true; // if (isChanged) // System.out.println(sChar[0] + " - " + c); screen[pos] = c; if (screenIsAttr[pos]) setScreenCharAndAttr(pos,c,32,false); } | protected final void setChar(int pos, char c) { screenIsChanged[pos] = screen[pos] == c ? false : true; // if (isChanged) // System.out.println(sChar[0] + " - " + c); screen[pos] = c; if (screenIsAttr[pos] == '1') setScreenCharAndAttr(pos,c,32,false); } | 5,537 |
protected boolean isErrorLineSaved() { return errorLine == null ? true : false; } | protected boolean isErrorLineSaved() { return errorLine == null ? false : true; } | 5,538 |
protected void restoreErrorLine() { if (errorLine != null) { int r = scr.getPos(errorLineNum - 1, 0); for (int x = 0; x < numCols - 1; x++) {// screen[r + x].setCharAndAttr(errorLine[x].getChar(),// errorLine[x].getCharAttr(), false); this.setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x],... | protected void restoreErrorLine() { if (errorLine != null) { int r = scr.getPos(errorLineNum - 1, 0); for (int x = 0; x < numCols - 1; x++) {// screen[r + x].setCharAndAttr(errorLine[x].getChar(),// errorLine[x].getCharAttr(), false); this.setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x],... | 5,539 |
protected void saveErrorLine() { // if there is already an error line saved then do not save it again // This signifies that there was a previous error and the original error // line was not restored yet. if (errorLine == null) { errorLine = new char[numCols]; errorLineAttr = ne... | protected void saveErrorLine() { // if there is already an error line saved then do not save it again // This signifies that there was a previous error and the original error // line was not restored yet. if (errorLine == null) { errorLine = new char[numCols]; errorLineAttr = ne... | 5,540 |
protected void setSize(int newSize) { int oldRows = numRows; screenSize = newSize; numCols = 80; switch (newSize) { case 24: numRows = 24; break; case 27: numRows = 27; numCols = 132; break; } // this is used here when ... | protected void setSize(int newSize) { int oldRows = numRows; screenSize = newSize; numCols = 80; switch (newSize) { case 24: numRows = 24; break; case 27: numRows = 27; numCols = 132; break; } // this is used here when ... | 5,541 |
protected synchronized void startDevice() throws DriverException { // Claim the irq irq = bus.claimResources(getDevice(), KB_IRQ); try { // Set the mode setEnabled(true); } catch (DeviceException ex) { throw new DriverException("Cannot enable keyboard", ex); } // Start the rest super.startDevice(); // Ma... | protected synchronized void startDevice() throws DriverException { // Claim the irq irq = bus.claimResources(getDevice(), KB_IRQ); try { // Set the mode setEnabled(true); } catch (DeviceException ex) { throw new DriverException("Cannot enable keyboard", ex); } // Start the rest super.startDevice(); // Ma... | 5,542 |
private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) Class.forName(... | private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) ObjectCreator.... | 5,543 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null || newParent instanceof Wind... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newP... | 5,544 |
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ... | public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ... | 5,546 |
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(... | public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event.getFirstRow() ==TableModelEvent.HEADER_ROW) && autoCreateColumnsFromModel) createDefaultColumnsFromModel(... | 5,547 |
private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | private void processVTKeyTyped(KeyEvent e){ char kc = e.getKeyChar();// displayInfo(e,"Typed processed " + keyProcessed); // Hack to make german umlauts work under Linux // The problem is that these umlauts don't generate a keyPressed event // and so keyProcessed is true (even if is hasn't b... | 5,549 |
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | 5,551 |
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too if (attribValue == null) { return cloneObj; } if (attribValue instanceof String ) { cloneObj.attr... | 5,552 |
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | 5,553 |
public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { return cloneObj; } if (att... | public Object clone () throws CloneNotSupportedException{ XMLAttribute cloneObj = null; cloneObj = (XMLAttribute) super.clone(); // need to deep copy the fields here too cloneObj.attribType = new String(this.attribType); if (attribValue == null) { cloneObj.attribValue = ((BaseObject... | 5,554 |
public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); } | public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); } | 5,555 |
public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); } | public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); } | 5,556 |
public void changeToParentDirectory() { if (fsv.getParentDirectory(currentDir) != null) setCurrentDirectory(fsv.getParentDirectory(currentDir)); } | public void changeToParentDirectory() { if (fsv.getParentDirectory(currentDir) != null) setCurrentDirectory(fsv.getParentDirectory(currentDir)); } | 5,557 |
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); } | public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); } | 5,558 |
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); } | public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); } | 5,559 |
public FileFilter[] getChoosableFileFilters() { return (FileFilter[]) choosableFilters.toArray(new FileFilter[0]); } | public FileFilter[] getChoosableFileFilters() { return (FileFilter[]) choosableFilters.toArray(new FileFilter[choosableFilters.size()]); } | 5,560 |
public File[] getSelectedFiles() { if (selectedFiles != null) return selectedFiles; if (selectedFile != null) return new File[] { selectedFile }; return null; } | public File[] getSelectedFiles() { if (selectedFiles != null) return selectedFiles; if (selectedFile != null) return new File[] { selectedFile }; return null; } | 5,561 |
public FileChooserUI getUI() { return (FileChooserUI) ui; } | public FileChooserUI getUI() { return (FileChooserUI) ui; } | 5,562 |
public void removeActionListener(ActionListener l) { try { listenerList.remove(ActionListener.class, l); } catch (IllegalArgumentException e) { e.printStackTrace(); } } | public void removeActionListener(ActionListener l) { try { listenerList.remove(ActionListener.class, l); } catch (IllegalArgumentException e) { e.printStackTrace(); } } | 5,563 |
public void removeActionListener(ActionListener l) { try { listenerList.remove(ActionListener.class, l); } catch (IllegalArgumentException e) { e.printStackTrace(); } } | public void removeActionListener(ActionListener l) { try { listenerList.remove(ActionListener.class, l); } catch (IllegalArgumentException e) { e.printStackTrace(); } } | 5,564 |
private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetterInterface kg = getMeAKeyProcessor(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (Stri... | private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetterInterface kg = getMeAKeyProcessor(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (Stri... | 5,565 |
private void process_XY(int pos) { if (pos < 0) pos = lenScreen + pos ; if (pos > lenScreen - 1) pos = pos - lenScreen; goto_XY(pos); } | private void process_XY(int pos) { if (pos < 0) pos = lenScreen + pos ; if (pos > lenScreen - 1) pos = pos - lenScreen; if (feError) { feError = false; screenFields.getCurrentField().changePos(-1); if (screenFields.getCurrentField() != null && screenFields.getCurre... | 5,572 |
public void paint(Graphics g, JComponent c) { if (! progressBar.isIndeterminate()) paintDeterminate(g, c); else paintIndeterminate(g, c); if (progressBar.isBorderPainted()) progressBar.getBorder().paintBorder(progressBar, g, 0, 0, progressBar.get... | public void paint(Graphics g, JComponent c) { if (! progressBar.isIndeterminate()) paintDeterminate(g, c); else paintIndeterminate(g, c); if (progressBar.isBorderPainted()) progressBar.getBorder().paintBorder(progressBar, g, 0, 0, progressBar.get... | 5,576 |
public Caret createCaret() { return new DefaultCaret(); } | public Caret createCaret() { return new DefaultCaret(); } | 5,577 |
public Caret createCaret() { return new DefaultCaret(); } | public Caret createCaret() { return new DefaultCaret(); } | 5,578 |
public Document createDefaultDocument() { return new PlainDocument(); } | public Document createDefaultDocument() { return new PlainDocument(); } | 5,579 |
public Action[] getActions() { return defaultActions; } | public Action[] getActions() { return defaultActions; } | 5,580 |
public Action[] getActions() { return defaultActions; } | public Action[] getActions() { return defaultActions; } | 5,581 |
public String getContentType() { return "text/plain"; } | public String getContentType() { return "text/plain"; } | 5,582 |
public ViewFactory getViewFactory() { return null; } | public ViewFactory getViewFactory() { return null; } | 5,583 |
public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { read(new InputStreamReader(in), document, offset); } | public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { read(new InputStreamReader(in), document, offset); } | 5,584 |
public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { read(new InputStreamReader(in), document, offset); } | public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { read(new InputStreamReader(in), document, offset); } | 5,585 |
public void write(OutputStream out, Document document, int offset, int len) throws BadLocationException, IOException { write(new OutputStreamWriter(out), document, offset, len); } | public void write(OutputStream out, Document document, int offset, int len) throws BadLocationException, IOException { write(new OutputStreamWriter(out), document, offset, len); } | 5,586 |
public void write(OutputStream out, Document document, int offset, int len) throws BadLocationException, IOException { write(new OutputStreamWriter(out), document, offset, len); } | public void write(OutputStream out, Document document, int offset, int len) throws BadLocationException, IOException { write(new OutputStreamWriter(out), document, offset, len); } | 5,587 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 5,588 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 5,589 |
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 5,590 |
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | private void doExport() { if (!pagesValid()) return; workingThread = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | 5,593 |
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) workingThread = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else workingThread = new Thread(new R... | 5,594 |
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) workingThread = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else workingThread = new Thread(new R... | 5,595 |
private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | private void doExport() { if (!pagesValid()) return; Thread cvt = null; if (cvtType.getSelectedIndex() == 0) cvt = new Thread(new Runnable () { public void run() { cvtToPDF(); } }); else cvt = new Thread(new Runnable () { ... | 5,596 |
public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { if (System.getProperty("jnode.font.renderer", "simple").equals("new")) { r = new TTFTextRenderer(renderCache, getFontData(font), font.getSize()); } else { ... | public TextRenderer getTextRenderer(Font font) { TextRenderer r = (TextRenderer) renderers.get(font); if (r == null) { final String renderer = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "simple")); if (renderer.equals("new")) { r = new TTFTextRenderer... | 5,597 |
public TTFFontDataFile(URL url) throws IOException { this(new TTFURLInput(url)); } | public TTFFontDataFile(URL url) throws IOException { this(new TTFURLInput(url)); } | 5,598 |
UTF_16LE () { super ("UTF-16LE", null); } | UTF_16LE () { super ("UTF-16LE", null); } | 5,599 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJApplet(); return accessibleContext; } | 5,600 |
public BufferedImage createCompatibleImage(int w, int h) { return createCompatibleImage(w, h, Transparency.OPAQUE); } | public BufferedImage createCompatibleImage(int w, int h) { return createCompatibleImage(w, h, Transparency.OPAQUE); } | 5,601 |
public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; /* If there is an outside border, add it to insets. */ if (outsideBorder != null) { bo... | public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; if (outsideBorder != null) { borderInsets = outsideBorder.getBorderInsets(c); in... | 5,602 |
public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; /* If there is an outside border, add it to insets. */ if (outsideBorder != null) { bo... | public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; /* If there is an outside border, add it to insets. */ if (outsideBorder != null) { bo... | 5,603 |
public boolean isBorderOpaque () { /* While it would be safe to assume true for the opacity of * a null border, this behavior would not be according to * the API specification. Also, it is pathological to have * null borders anyway. */ if ((insideBorder == null) || (outsideBorder == null)) ... | public boolean isBorderOpaque () { /* While it would be safe to assume true for the opacity of * a null border, this behavior would not be according to * the API specification. Also, it is pathological to have * null borders anyway. */ if ((insideBorder == null) || (outsideBorder == null)) ... | 5,604 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { /* If there is an outside border, paint it and reduce the * bounding box by its insets. */ if (outsideBorder != null) { Insets outsideInsets; outsideBorder.paintBorder(c, g, x, ... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { /* If there is an outside border, paint it and reduce the * bounding box by its insets. */ if (outsideBorder != null) { Insets outsideInsets; outsideBorder.paintBorder(c, g, x, ... | 5,605 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { /* If there is an outside border, paint it and reduce the * bounding box by its insets. */ if (outsideBorder != null) { Insets outsideInsets; outsideBorder.paintBorder(c, g, x, ... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { /* If there is an outside border, paint it and reduce the * bounding box by its insets. */ if (outsideBorder != null) { Insets outsideInsets; outsideBorder.paintBorder(c, g, x, ... | 5,606 |
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else return null; } | public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else { Log.warn("in Structure.addParamGroup(). ParameterGroup passed in is null"); return null; } | 5,610 |
public ParameterGroup addParamGroup (ParameterGroup group) { if (group !=null) { //add the group to the groupOwnedHash paramGroupOwnedHash.add(group); return group; } else return null; } | } } public} ParameterGroup} addParamGroup} (ParameterGroup} group)} {} } } } if} (group} !=null)} {} } } } } } //add} the} group} to} the} groupOwnedHash} } } } } } paramGroupOwnedHash.add(group);} } } } } } return} group;} } } } }} } } } else} } } } } } return} null;} } } | 5,611 |
private void init() { classXMLName = "structure"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"arrayList"); attribOrder.add(0,"structList"); attribOrder.add(0,"paramList"); attribOrder.add(0,"description"... | private void init() { classXDFNodeName = "structure"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"arrayList"); attribOrder.add(0,"structList"); attribOrder.add(0,"paramList"); attribOrder.add(0,"descript... | 5,613 |
public Note removeNote (Note note, int i) { return note; } | public Note removeNote (Note note, int i) { return note; } | 5,615 |
public boolean removeParamGroup(ParameterGroup group) { return paramGroupOwnedHash.remove(group); } | publicbooleanremoveParamGroup(ParameterGroupgroup){returnparamGroupOwnedHash.remove(group);} | 5,616 |
public String setDescription (String strDesc) { return (String) ((XMLAttribute) attribHash.get("description")).setAttribValue(strDesc); } | publicStringsetDescription(StringstrDesc){return(String)((XMLAttribute)attribHash.get("description")).setAttribValue(strDesc);} | 5,617 |
public void log(Level level, String message) { log(level, message, (Object[]) null); } | public synchronized void log(LogRecord record) { log(level, message, (Object[]) null); } | 5,619 |
public void log(Level level, String message) { log(level, message, (Object[]) null); } | public void log(Level level, String message) { if (!isLoggable(record.getLevel())) return; if ((filter != null) && !filter.isLoggable(record)) return; /* If no logger name has been set for the log record, * use the name of this logger. */ if (record.getLoggerName() == null) record.setLoggerName(name); /* Avoid... | 5,620 |
public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";... | public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";... | 5,622 |
public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";... | public String toString() { String prefix = ""; switch (align) { case ALIGN_LEFT: prefix = "left "; break; case ALIGN_RIGHT: prefix = "right "; break; case ALIGN_CENTER: prefix = "center "; break; case ALIGN_DECIMAL: prefix = "decimal ";... | 5,623 |
public static IdUniquenessPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } } | public static IdUniquenessPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad; } } | 5,624 |
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | public final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alread... | 5,626 |
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | 5,627 |
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | 5,628 |
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | 5,629 |
protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | protected final void copyMe() { Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); StringBuffer s = new StringBuffer(); if (!gui.rubberband.isAreaSelected()) workR.setBounds(0,0,numCols,numRows); else { // lets get the bounding area using a rectangle that we have alr... | 5,630 |
public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getCols(),getRows()); } else { // lets get the bounding area using a rectangle... | 5,631 |
public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | 5,632 |
public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | 5,633 |
public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | 5,634 |
public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | public void getBoundingArea(Rectangle bounds) { // check to see if there is an area selected. If not then return all // screen area. if (!gui.rubberband.isAreaSelected()) { bounds.setBounds(1,1,getRows(),getCols()); } else { // lets get the bounding area using a rectangle... | 5,635 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.