bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public JViewport() { setOpaque(true); String scrollModeProp = System.getProperty("gnu.javax.swing.JViewport.scrollMode", "BLIT"); int myScrollMode; if (scrollModeProp.equalsIgnoreCase("simple")) myScrollMode = SIMPLE_SCROLL_MODE; else if (scrollModeProp.equalsIgnoreCa...
public JViewport() { setOpaque(true); String scrollModeProp = System.getProperty("gnu.javax.swing.JViewport.scrollMode", "BLIT"); int myScrollMode; if (scrollModeProp.equalsIgnoreCase("simple")) myScrollMode = SIMPLE_SCROLL_MODE; else if (scrollModeProp.equalsIgnoreCa...
3,310
public static ServantLocator read(InputStream input) { throw new MARSHAL(); }
public static ServantLocator read(InputStream input) { MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; }
3,312
public static void write(OutputStream output, ServantLocator value) { throw new MARSHAL(); }
public static void write(OutputStream output, ServantLocator value) { MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; }
3,313
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
3,314
public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; }
public DoubleItem(int kind, int offsetToFP, Register lsb, Register msb, double value) { super(kind, offsetToFP, lsb, msb); this.value = value; }
3,315
protected DoubleWordItem cloneConstant() { return createConst(getValue()); }
protected DoubleWordItem cloneConstant() { return factory.createDConst(getValue()); }
3,316
public LabelView(Element element) { super(element); setPropertiesFromAttributes(); }
public LabelView(Element element) { super(element); valid = false; }
3,317
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory vf) { setPropertiesFromAttributes(); }
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory vf) { valid = false; super.changedUpdate(e, a, vf); }
3,318
protected FontMetrics getFontMetrics() { return getContainer().getGraphics().getFontMetrics(font); }
protected FontMetrics getFontMetrics() { if (! valid) setPropertiesFromAttributes(); Container c = getContainer(); FontMetrics fm; if (c != null) fm = c.getFontMetrics(font); else fm = Toolkit.getDefaultToolkit().getFontMetrics(font); return fm; }
3,321
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
3,327
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
protected void setPropertiesFromAttributes() { Element el = getElement(); AttributeSet atts = el.getAttributes(); // We cannot use StyleConstants.getBackground() here, because that returns // BLACK as default (when background == null). What we need is the // background setting of the text component in...
3,328
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); switch (axis) { case X_AXIS: span = determineMaxLineLength(); ...
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); Element el = getElement(); switch (axis) { case X_AXIS: span = determineMaxLineLength(); case Y_AXIS: ...
3,330
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement...
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = el.getElementIndex(chan...
3,331
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement...
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement...
3,332
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); // PlainView doesn't support line-wrapping so we can find out which // Element was clicked on just by the y-position ...
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); // PlainView doesn't support line-wrapping so we can find out which // Element was clicked on just by the y-position ...
3,334
public void editingCanceled(ChangeEvent e) { cancelEditing(tree); }
public void editingCanceled(ChangeEvent e) { completeEditing(false, false, false); }
3,337
public void editingStopped(ChangeEvent e) { stopEditing(tree); }
public void editingStopped(ChangeEvent e) { completeEditing(false, false, true); }
3,338
public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void keyPressed(KeyEvent e) { // TODO: What should be done here, if anything? }
3,339
public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void keyReleased(KeyEvent e) { // TODO: What should be done here, if anything? }
3,340
public void keyTyped(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void keyTyped(KeyEvent e) { // TODO: What should be done here, if anything? }
3,341
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseDragged(MouseEvent e) { // TODO: What should be done here, if anything? }
3,343
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseMoved(MouseEvent e) { // TODO: What should be done here, if anything? }
3,344
public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(...
public void mousePressed(MouseEvent e) { if (! e.isConsumed()) { handleEvent(e); selectedOnPress = true; } else { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e...
3,345
public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(...
public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(...
3,346
public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseReleased(MouseEvent e) { // TODO: What should be done here, if anything? }
3,347
public void mouseClicked(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseClicked(MouseEvent e) { // TODO: What should be done here, if anything? }
3,350
public void mouseEntered(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseEntered(MouseEvent e) { // TODO: What should be done here, if anything? }
3,353
public void mouseExited(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mouseExited(MouseEvent e) { // TODO: What should be done here, if anything? }
3,355
public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void mousePressed(MouseEvent e) { // TODO: What should be done here, if anything? }
3,358
protected void removeFromSource() throws NotImplementedException { // TODO: Implement this properly. }
protected void removeFromSource() { // TODO: Implement this properly. }
3,360
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
3,362
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
3,363
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr...
3,364
public void propertyChange(PropertyChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void propertyChange(PropertyChangeEvent event) { // TODO: What should be done here, if anything? }
3,367
public void actionPerformed(ActionEvent e) { String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeS...
public void actionPerformed(ActionEvent e) { String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeS...
3,372
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta...
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta...
3,373
public void cancelEditing(JTree tree) { // There is no need to send the cancel message to the editor, // as the cancellation event itself arrives from it. This would // only be necessary when cancelling the editing programatically. completeEditing(false, false, false); finish(); }
public void cancelEditing(JTree tree) { // There is no need to send the cancel message to the editor, // as the cancellation event itself arrives from it. This would // only be necessary when cancelling the editing programatically. completeEditing(false, false, false); finish(); }
3,376
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); }
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); configureLayoutCache(); treeState.setRootVisible(tree.isRootVisible()); treeSelectionModel.setRowMapper(treeState); configureL...
3,378
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); }
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); updateSize(); }
3,379
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action = new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Act...
3,380
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action = new TreeHomeAction(-1, "selectFirstChangeLead"); am.put(action.getValue(Action.NAME), ...
3,381
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
3,382
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
3,383
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
3,384
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ...
3,385
protected TreePath getLastChildPath(TreePath parent) { return ((TreePath) parent.getLastPathComponent()); }
protected TreePath getLastChildPath(TreePath parent) { return (TreePath) parent.getLastPathComponent(); }
3,387
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get(...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get(...
3,389
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width; // Only guessing. Icon expandedIcon = getExpandedIcon(); if (e...
3,390
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i...
3,391
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr...
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); boolean paintLine; if (isRootVisible()) paintLine = parent != null; else paintL...
3,392
protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; createdCellEditor = true; }
protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; createdCellEditor = true; }
3,394
protected void setCellRenderer(TreeCellRenderer tcr) { currentCellRenderer = tcr; updateRenderer(); }
protected void setCellRenderer(TreeCellRenderer tcr) { completeEditing(); updateRenderer(); }
3,395
protected void setEditable(boolean newValue) { tree.setEditable(newValue); }
protected void setEditable(boolean newValue) { updateCellEditor(); }
3,397
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return...
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return...
3,402
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,403
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,404
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,405
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,406
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,407
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,408
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,409
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ...
3,410
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
public boolean stopEditing(JTree tree) { boolean ret = false; if (editingComponent != null && cellEditor.stopCellEditing()) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
3,413
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); ret = true; } return ! isEditing(tree); }
3,414
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); }
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ret; }
3,415
protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); }
protected void toggleExpandState(TreePath path) { if (treeState.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); }
3,416
protected void uninstallKeyboardActions() { action = null; tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); }
protected void uninstallKeyboardActions() { tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); }
3,417
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; }
3,418
protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState(((TreePath) expanded.nextElement()), true); }
protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState((TreePath) expanded.nextElement(), true); }
3,420
protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); }
protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); }
3,421
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...
3,423
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; } }
3,424
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); }
3,425
public int getErrorLine() { return errorLineNum; }
public int getErrorLine() { return planes.getErrorLine(); }
3,432
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...
3,433
public void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } }
protected void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); int y = fmHeight * planes.getErrorLine(); updateImage(0, y, bi.getWidth(), fmHeight); } }
3,434
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()-1); updateImage(0, y, bi.getWidth(), fmHeight); } }
3,435
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, ...
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 ScreenChar[numCols];// int r = getPos(errorLineNum - ...
3,436
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; }
3,437
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...
3,438
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 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.rubberband.erase...
3,439
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...
3,440
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...
3,441
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; }
3,442
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; }
3,443
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); }
3,444
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); }
3,445
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; }
3,446
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); }
3,447
protected boolean isErrorLineSaved() { return errorLine == null ? true : false; }
protected boolean isErrorLineSaved() { return errorLine == null ? false : true; }
3,448
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); setScreenCharAndAttr(r+x,errorLine[x],errorLineAttr[x], (err...
3,449
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...
3,450
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 ...
3,451
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...
3,452
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....
3,453
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 ...
3,454
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(...
3,455
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...
3,457
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...
3,458
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.att...
3,459