Changeset 8737


Ignore:
Timestamp:
03/07/05 03:33:33 (16 years ago)
Author:
piso
Message:

getStatusText(): report emulation ("emacs").

File:
1 edited

Legend:

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

    r8329 r8737  
    22 * StatusBar.java
    33 *
    4  * Copyright (C) 1998-2004 Peter Graves
    5  * $Id: StatusBar.java,v 1.6 2005-01-05 13:50:17 piso Exp $
     4 * Copyright (C) 1998-2005 Peter Graves
     5 * $Id: StatusBar.java,v 1.7 2005-03-07 03:33:33 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3636import javax.swing.border.MatteBorder;
    3737
    38 public final class StatusBar extends JComponent implements PreferencesChangeListener
     38public final class StatusBar extends JComponent
     39    implements PreferencesChangeListener
    3940{
    4041    private static final Font font = new Font("SansSerif", Font.PLAIN, 12);
     
    8081    }
    8182
    82     private FastStringBuffer sb = new FastStringBuffer(48);
    83 
    8483    private String getStatusText(Editor editor)
    8584    {
     
    8786        if (buffer == null)
    8887             return "";
    89         sb.setLength(0);
     88        FastStringBuffer sb = new FastStringBuffer();
     89        String emulation = buffer.getStringProperty(Property.EMULATION);
     90        if (emulation != null && emulation.length() > 0) {
     91            sb.append(emulation);
     92            sb.append("   ");
     93        }
    9094        String modeName = buffer.getMode().getDisplayName();
    9195        if (modeName != null)
Note: See TracChangeset for help on using the changeset viewer.