Package com.baulsupp.kolja.log.line

Examples of com.baulsupp.kolja.log.line.LineIndex


      }
     
      File f = new File(cmd.getArgs()[0]);
      ReloadableCharBuffer buffer = ReloadableCharBuffer.fromFileReloadable(f);
     
      LineIndex lineIndex = format.getLineIndex(buffer);

      BasicLineIterator i = new BasicLineIterator(lineIndex);
     
      EventList eventIndex = format.getEventList(lineIndex);
     
View Full Code Here


public class ModelsCommand implements Command<Less> {
  private List<LineIndex> models = new ArrayList<LineIndex>();
 
  public ModelsCommand(LogFormat format, CharSequence buffer, Less less) {
    LineIndex li = format.getLineIndex(buffer);
    models.add(li);

    // TODO move filtering to config and allow choices
    Filter filter = new PriorityFilter();
    LineIndex filteredIndex = new FilteredLineIndex(li, filter);
    models.add(filteredIndex);

    less.setLineIndex(getNextLineModel());
  }
View Full Code Here

    less.setLineIndex(getNextLineModel());
  }

  LineIndex getNextLineModel() {
    LineIndex li = (LineIndex) models.remove(0);
    models.add(li);

    return li;
  }
View Full Code Here

    commands.add(new GotoLineCommand());
    commands.add(new SearchCommand(this));
  }

  public void setLineIndex(LineIndex lineIndex) {
    LineIndex oldIndex = this.lineIndex;

    this.lineIndex = lineIndex;

    setModel(new LineIndexItemModel(new BasicLineIterator(lineIndex)));
View Full Code Here

TOP

Related Classes of com.baulsupp.kolja.log.line.LineIndex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.