Changeset 9158


Ignore:
Timestamp:
2005-02-23T15:06:08+13:00 (19 years ago)
Author:
mdewsnip
Message:

Changed some "proceeding"s to "preceeding"s... John, John, John.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/DOMProxyListModel.java

    r8845 r9158  
    115115    /** Used to add an element into the underlying dom, and fire the appropriate repaint events. This version inserts the new entry immediately -after- the given entry in the DOM.
    116116     * @param entry the DOMProxyListEntry to be inserted
    117      * @param proceeding_entry the DOMProxyListEntry immediately before where we want the new entry
    118      */
    119     public synchronized void addAfter(DOMProxyListEntry entry, DOMProxyListEntry proceeding_entry) {
    120     Element element = entry.getElement();
    121     Element proceeding_sibling = proceeding_entry.getElement();
    122     Node parent_node = proceeding_sibling.getParentNode();
    123     Node following_sibling = proceeding_sibling.getNextSibling();
     117     * @param preceeding_entry the DOMProxyListEntry immediately before where we want the new entry
     118     */
     119    public synchronized void addAfter(DOMProxyListEntry entry, DOMProxyListEntry preceeding_entry) {
     120    Element element = entry.getElement();
     121    Element preceeding_sibling = preceeding_entry.getElement();
     122    Node parent_node = preceeding_sibling.getParentNode();
     123    Node following_sibling = preceeding_sibling.getNextSibling();
    124124    if(following_sibling != null) {
    125125        parent_node.insertBefore(element, following_sibling);
     
    130130    // Regardless fire update event
    131131    cache.clear();
    132     int index = indexOf(proceeding_entry) + 1;
     132    int index = indexOf(entry);
    133133    fireIntervalAdded(this, index, index);
    134134    }
Note: See TracChangeset for help on using the changeset viewer.