bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected int getOffset(int axis, int childIndex) { if (axis == X_AXIS) return offsetsX[childIndex]; else return offsetsY[childIndex]; } | protected int getOffset(int axis, int childIndex) { if (axis == X_AXIS) return offsetsX[childIndex]; else return offsetsY[childIndex]; } | 40,482 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (!isAllocationValid()) { Rectangle bounds = a.getBounds(); setSize(bounds.width, bounds.height); } return super.model... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (! isAllocationValid()) { Rectangle bounds = a.getBounds(); setSize(bounds.width, bounds.height); } return super.mode... | 40,483 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (!isAllocationValid()) { Rectangle bounds = a.getBounds(); setSize(bounds.width, bounds.height); } return super.model... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (!isAllocationValid()) { Rectangle bounds = a.getBounds(); layout(bounds.width, bounds.height); } return super.modelT... | 40,484 |
public int getDecayTime() { return decayTime; } | public final int getDecayTime() { return decayTime; } | 40,485 |
public int getEarlyReflectionDelay() { return earlyReflectionDelay; } | public final int getEarlyReflectionDelay() { return earlyReflectionDelay; } | 40,486 |
public float getEarlyReflectionIntensity() { return earlyReflectionIntensity; } | public final float getEarlyReflectionIntensity() { return earlyReflectionIntensity; } | 40,487 |
public int getLateReflectionDelay() { return lateReflectionDelay; } | public final int getLateReflectionDelay() { return lateReflectionDelay; } | 40,488 |
public float getLateReflectionIntensity() { return lateReflectionIntensity; } | public final float getLateReflectionIntensity() { return lateReflectionIntensity; } | 40,489 |
public String toString() { return ("name=" + name + "; earlyReflectionDelay=" + earlyReflectionDelay + "; earlyReflectionIntensity=" + earlyReflectionIntensity + "; lateReflectionDelay=" + lateReflectionDelay + "; lateReflectionIntensity=" + lateReflectionIntensity + "; decayTime=" + decayTime); ... | public final String toString() { return ("name=" + name + "; earlyReflectionDelay=" + earlyReflectionDelay + "; earlyReflectionIntensity=" + earlyReflectionIntensity + "; lateReflectionDelay=" + lateReflectionDelay + "; lateReflectionIntensity=" + lateReflectionIntensity + "; decayTime=" + decayTi... | 40,490 |
public FileHandler() throws IOException, SecurityException { this(/* pattern: use configiguration */ null, LogManager.getIntProperty("java.util.logging.FileHandler.limit", /* default */ 0), LogManager.getIntProperty("java.util.logging.FileHandler.count", /* default */ 1), LogManager.getBooleanPr... | public FileHandler() throws IOException, SecurityException { this(/* pattern: use configiguration */ null, LogManager.getIntProperty("java.util.logging.FileHandler.limit", /* default */ 0), LogManager.getIntProperty("java.util.logging.FileHandler.count", /* default */ 1), LogManager.getBooleanPr... | 40,491 |
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | 40,492 |
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | 40,493 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | assert false : e.toString(); assert false : e.toString(); publicassert false : e.toString(); floatassert false : e.toString(); getPreferredSpan(intassert false : e.toString(); axis)assert false : e.toString(); assert false : e.toString(); {assert false : e.toString(); assert false : e.toString(); assert false : e.toStr... | 40,494 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 40,495 |
private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoint(); ... | private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoint(); ... | 40,496 |
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 40,498 |
public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); iter.setIndex(save); return r; } | public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); return r; } | 40,499 |
public Handler() { } | public Handler() { } | 40,500 |
protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.jar.JarURLConnection(url)); } | protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.jar.JarURLConnection(url)); } | 40,501 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 40,502 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 40,503 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 40,504 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 40,505 |
protected String toExternalForm(URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation mannually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer(file.length() + 5); sb.append("jar:"); sb.append(file); return sb.toStr... | protected String toExternalForm(URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation mannually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer(file.length() + 5); sb.append("jar:"); sb.append(file); return sb.toStr... | 40,506 |
protected String toExternalForm(URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation mannually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer(file.length() + 5); sb.append("jar:"); sb.append(file); return sb.toStr... | protected String toExternalForm(URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation mannually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer(file.length() + 5); sb.append("jar:"); sb.append(file); return sb.toStr... | 40,507 |
public void addSource(Variable source) { sources.add(source); int type = getType(); if (type == UNKNOWN) { setType(source.getType()); Variable v = (Variable) source; varIndex = v.getIndex(); } else if (type != source.getType()) { throw new AssertionError("phi operand source types don't match"); } } | public void addSource(Variable source) { sources.add(source); int type = getType(); if (type == UNKNOWN) { setType(source.getType()); Variable v = (Variable) source; varIndex = v.getIndex(); } else if (type != source.getType()) { throw new AssertionError("phi operand source types don't match"); } } | 40,508 |
public void exit(int status) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And... | public void exit(int status) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And... | 40,510 |
public boolean matches (Event event) { // FIXME throw new RuntimeException ("LocationOnlyFilter.matches not implemented"); } | public boolean matches (Event event) { // FIXME return true; } | 40,512 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (propName.equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColum... | 40,513 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (propName.equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.getProperty... | 40,514 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (propName.equals("columnHeader")) updateColumnHeader(e); else if (e.getProperty... | 40,515 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (pr... | 40,516 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static BufferedCdrOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (i... | 40,518 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | 40,519 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof BufferredCdrInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (... | 40,520 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { BufferredCdrInput in = (BufferredCdrInput) input; bout.setBigEndian(in.isBigEndian()); } ... | 40,521 |
public static int readNestedValue(int value_tag, InputStream input, cdrBufOutput output, int level) throws IOException { String id = null; if (level < -1) { // For the first level, this information is already behind. output.write_long(value_tag - vf_CHUNKING); // The nested valu... | public static int readNestedValue(int value_tag, InputStream input, BufferedCdrOutput output, int level) throws IOException { String id = null; if (level < -1) { // For the first level, this information is already behind. output.write_long(value_tag - vf_CHUNKING); // The nested... | 40,522 |
public static Serializable readValue(InputStream input, final int position, Object value, BoxedValueHelper helper, String id, String[] ids, String codebase) { gnuRuntime g; gnuValueStream c = ((gnuValueStream) input); if (c.getRunTime() == null) { g = new gnuRuntime(codebase, value); ... | public static Serializable readValue(InputStream input, final int position, Object value, BoxedValueHelper helper, String id, String[] ids, String codebase) { gnuRuntime g; gnuValueStream c = ((gnuValueStream) input); if (c.getRunTime() == null) { g = new gnuRuntime(codebase, value); ... | 40,523 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,524 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,525 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,526 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,527 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,528 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,529 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,530 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,531 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,532 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 40,533 |
static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | 40,534 |
static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | 40,535 |
public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { return super.equals(other); } | public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { return self==other; } | 40,536 |
public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | 40,537 |
public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | 40,538 |
public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | public LanceCore( LanceDriver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws ResourceNotFreeException, DriverException { this.driver = driver; this.flags = (LanceFlags) flags; final PCIDeviceConfig config = device.getConfig(); final int irq = config.getInterruptLine(); final PCIBaseAddres... | 40,539 |
private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | 40,540 |
private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | 40,541 |
private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | private IOResource claimPorts(final ResourceManager rm, final ResourceOwner owner, final int low, final int length) throws ResourceNotFreeException, DriverException { try { return (IOResource)AccessControllerUtils.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws Reso... | 40,542 |
public Object run() throws ResourceNotFreeException { return rm.claimIOResource(owner, low, length); }}); | public Object run() throws ResourceNotFreeException { return rm.claimIOResource(owner, low, length); }}); | 40,543 |
private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | 40,544 |
private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | 40,545 |
private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | 40,546 |
private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | 40,547 |
private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | private IOAccess getIOAccess() { // reset ioResource.inPortWord(iobase + WIO_RESET); ioResource.outPortWord(iobase + WIO_RAP, 0); if(ioResource.inPortWord(iobase + WIO_RDP) == 4) { ioResource.outPortWord(iobase + WIO_RAP, 88); if(ioResource.inPortWord(iobase +WIO_RAP) == 88) { return new WordIOAccess(ioReso... | 40,548 |
public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); /*final int csr3 =*/ io.getCSR(3); final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to I... | public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); /*final int csr3 =*/ io.getCSR(3); final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to I... | 40,549 |
public void initialize() { // reset the chip io.reset(); // Set the Software Style to mode 2 (PCnet-PCI) // Note: this may not be compatable with older lance controllers (non PCnet) io.setBCR(20, 2); // TODO the device should be setup based on the flags for the chip version // Auto select port io.setBCR(2, B... | public void initialize() { // reset the chip io.reset(); // Set the Software Style to mode 2 (PCnet-PCI) // Note: this may not be compatable with older lance controllers (non PCnet) io.setBCR(20, 2); // TODO the device should be setup based on the flags for the chip version // Auto select port io.setBCR(2, B... | 40,550 |
public void initialize() { // reset the chip io.reset(); // Set the Software Style to mode 2 (PCnet-PCI) // Note: this may not be compatable with older lance controllers (non PCnet) io.setBCR(20, 2); // TODO the device should be setup based on the flags for the chip version // Auto select port io.setBCR(2, B... | public void initialize() { // reset the chip io.reset(); // Set the Software Style to mode 2 (PCnet-PCI) // Note: this may not be compatable with older lance controllers (non PCnet) io.setBCR(20, 2); // TODO the device should be setup based on the flags for the chip version // Auto select port io.setBCR(2, B... | 40,551 |
private final EthernetAddress loadHWAddress() { final byte[] addr = new byte[ETH_ALEN]; for (int i = 0; i < addr.length; i++) { addr[i] = (byte) ioResource.inPortByte(iobase + R_ETH_ADDR_OFFSET + i); } return new EthernetAddress(addr, 0); } | private final EthernetAddress loadHWAddress() { final byte[] addr = new byte[ETH_ALEN]; for (int i = 0; i < addr.length; i++) { addr[i] = (byte) ioResource.inPortByte(iobase + R_ETH_ADDR_OFFSET + i); } return new EthernetAddress(addr, 0); } | 40,552 |
private final void setFlags() { int chipVersion = io.getCSR(88) | (io.getCSR(89) << 16); chipVersion = (chipVersion >> 12) & 0xffff; flags.setForVersion(chipVersion); } | private final void setFlags() { int chipVersion = io.getCSR(88) | (io.getCSR(89) << 16); chipVersion = (chipVersion >> 12) & 0xffff; flags.setForVersion(chipVersion); } | 40,553 |
public synchronized void transmit(SocketBuffer buf, long timeout) throws InterruptedException, TimeoutException { // Set the source address hwAddress.writeTo(buf, 6); //log.info("Transmit packet of size = " + buf.getSize()); bufferManager.transmit(buf); io.setCSR(0, io.getCSR(0) | CSR0_TDMD); } | public synchronized void transmit(SocketBuffer buf, long timeout) throws InterruptedException, TimeoutException { // Set the source address hwAddress.writeTo(buf, 6); //log.info("Transmit packet of size = " + buf.getSize()); bufferManager.transmit(buf); io.setCSR(0, io.getCSR(0) | CSR0_TD... | 40,554 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { Vector consumers = new Vector(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 40,556 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 40,557 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 40,558 |
public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | 40,560 |
public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | 40,561 |
protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offset, st... | protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offset, st... | 40,562 |
public void editingCanceled(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | public void editingCanceled(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | 40,563 |
public void editingStopped(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | public void editingStopped(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | 40,564 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | 40,565 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,566 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,567 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,568 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,569 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,570 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,571 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,572 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,573 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 40,574 |
public void treeCollapsed(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); } | public void treeCollapsed(TreeExpansionEvent event) { tree.repaint(); } | 40,575 |
public void treeExpanded(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); } | public void treeExpanded(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); } | 40,576 |
public void valueChanged(TreeSelectionEvent event) { // FIXME: not implemented } | publicif (tree.isEditing()) tree.cancelEditing(); voidif (tree.isEditing()) tree.cancelEditing(); valueChanged(TreeSelectionEventif (tree.isEditing()) tree.cancelEditing(); event) {if (tree.isEditing()) tree.cancelEditing(); if (tree.isEditing()) tree.cancelEditing(); if (tree.isEditing()) tree.cancelEditing(); if (... | 40,582 |
protected void ensureRowsAreVisible(int beginRow, int endRow) { //FIXME: not implemented } | protected void ensureRowsAreVisible(int beginRow, int endRow) { //FIXME: not implemented } | 40,584 |
public TreePath getClosestPathForLocation(JTree tree, int x, int y) { //FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visib... | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { //FIXME: what if root is hidden? should not depend on (0,0) // should start counting rows from where root is. int row = Math.round(y / getRowHeight()); TreePath path = getPathForRow(tree, row); // no row is visib... | 40,585 |
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropert... | protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropert... | 40,588 |
public boolean isEditing(JTree tree) { return getCellEditor() != null; } | public boolean isEditing(JTree tree) { return getCellEditor() != null; } | 40,589 |
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | 40,590 |
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | 40,591 |
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de... | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return de... | 40,592 |
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | 40,593 |
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | 40,594 |
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | 40,595 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.