Changeset 262


Ignore:
Timestamp:
11/15/02 20:20:21 (21 years ago)
Author:
piso
Message:

readArticleOtherWindow()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/mail/NewsCommands.java

    r2 r262  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: NewsCommands.java,v 1.1.1.1 2002-09-24 16:09:59 piso Exp $
     5 * $Id: NewsCommands.java,v 1.2 2002-11-15 20:20:21 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    8686    public static void readArticle()
    8787    {
     88        readArticle(false);
     89    }
     90
     91    public static void readArticleOtherWindow()
     92    {
     93        readArticle(true);
     94    }
     95
     96    private static void readArticle(boolean useOtherWindow)
     97    {
    8898        final Editor editor = Editor.currentEditor();
    8999        final Buffer buffer = editor.getBuffer();
    90100        if (buffer instanceof NewsGroupSummary && editor.getDot() != null)
    91             ((NewsGroupSummary)buffer).readArticle(editor, editor.getDotLine());
     101            ((NewsGroupSummary)buffer).readArticle(editor,
     102                editor.getDotLine(), useOtherWindow);
    92103    }
    93104}
Note: See TracChangeset for help on using the changeset viewer.