Changeset 4380


Ignore:
Timestamp:
10/15/03 14:52:25 (18 years ago)
Author:
piso
Message:

populateSearchMenu() => protected

File:
1 edited

Legend:

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

    r4379 r4380  
    33 *
    44 * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: AbstractMode.java,v 1.19 2003-10-15 14:43:31 piso Exp $
     5 * $Id: AbstractMode.java,v 1.20 2003-10-15 14:52:25 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    305305    }
    306306
    307     private static void populateSearchMenu(Editor editor, Menu menu)
     307    protected void populateSearchMenu(Editor editor, Menu menu)
    308308    {
    309309        final File dir = editor.getCurrentDirectory();
     
    322322        menu.addSeparator();
    323323        final boolean isNotReadOnly = !editor.getBuffer().isReadOnly();
    324         menu.add(editor, "Replace...", 'P', "replace", isNotReadOnly);
     324        if (!(editor.getBuffer() instanceof Directory))
     325            menu.add(editor, "Replace...", 'P', "replace", isNotReadOnly);
    325326        menu.add(editor, "Replace in Files...", 'E', "replaceInFiles", local);
    326         menu.addSeparator();
    327         menu.add(editor, "Find Tag...", 'A', "findTag");
     327        if (!(editor.getBuffer() instanceof Directory)) {
     328            menu.addSeparator();
     329            menu.add(editor, "Find Tag...", 'A', "findTag");
     330        }
    328331    }
    329332
Note: See TracChangeset for help on using the changeset viewer.