AutopsySLogVizModule/src/AutopsySLogVizModule/DataContentViewerSlogViz.java
//Assures that the index for an object in this.prev is always the same index as in this.listModel
Assures that the index for an object in this.prev is always the same index as in this.listModel
Assures that the index for an object in this . prev is always the same index as in this . listModel
private void addPreviousContent() {
        if(this.c == null){
            return;
        }
        if(this.prev.contains(this.c)){
            this.prev.remove(this.c);
        }
        this.prev.add(0, this.c);
        if(this.listModel.contains(this.c.getName()) && !this.listModel.get(0).equals(this.c.getName())){
            this.listModel.removeElement(this.c.getName());
        }
        String name = this.prev.get(0).getName();
        this.listModel.add(0, name);
    }
private void addPreviousContent ( ) { if ( this . c == null ) { return ; } if ( this . prev . contains ( this . c ) ) { this . prev . remove ( this . c ) ; } this . prev . add ( 0 , this . c ) ; if ( this . listModel . contains ( this . c . getName ( ) ) && ! this . listModel . get ( 0 ) . equals ( this . c . getName ( ) ) ) { this . listModel . removeElement ( this . c . getName ( ) ) ; } String name = this . prev . get ( 0 ) . getName ( ) ; this . listModel . add ( 0 , name ) ; }
Assures that the index for an object in this.prev is always the same index as in this.listModel
Assures that the index for an object in this . prev is always the same index as in this . listModel