Changeset 144


Ignore:
Timestamp:
10/15/02 01:02:55 (21 years ago)
Author:
piso
Message:

Moved STATE_ constants from ShellFormatter?.java to Constants.java.

File:
1 edited

Legend:

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

    r138 r144  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Shell.java,v 1.9 2002-10-14 23:38:32 piso Exp $
     5 * $Id: Shell.java,v 1.10 2002-10-15 01:02:55 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    8585            promptIsStderr = false;
    8686    }
    87    
     87
    8888    protected Shell(String shellCommand, Mode mode)
    8989    {
     
    265265        if (promptRE != null) {
    266266            Line dotLine = editor.getDotLine();
    267             if (dotLine.next() == null || dotLine.flags() == ShellFormatter.STATE_INPUT) {
     267            if (dotLine.next() == null || dotLine.flags() == STATE_INPUT) {
    268268                REMatch match = promptRE.getMatch(dotLine.getText());
    269269                if (match != null)
     
    435435        }
    436436        if (dotLine.flags() == 0)
    437             dotLine.setFlags(ShellFormatter.STATE_INPUT);
     437            dotLine.setFlags(STATE_INPUT);
    438438        editor.eol();
    439439        editor.insertLineSeparator();
     
    583583            final int size = completions.size();
    584584            if (size > 0) {
    585                 dotLine.setFlags(ShellFormatter.STATE_INPUT);
     585                dotLine.setFlags(STATE_INPUT);
    586586                editor.insertLineSeparator();
    587587                for (int i = 0; i < size; i++) {
     
    705705        final Editor editor = Editor.currentEditor();
    706706        if (editor.getDotLine().next() == null)
    707             editor.getDotLine().setFlags(ShellFormatter.STATE_INPUT);
     707            editor.getDotLine().setFlags(STATE_INPUT);
    708708        try {
    709709            stdin.write(c);
     
    874874        final Line last = posEndOfOutput.getLine();
    875875        if (isPasswordPrompt(last)) {
    876             last.setFlags(ShellFormatter.STATE_PASSWORD_PROMPT);
     876            last.setFlags(STATE_PASSWORD_PROMPT);
    877877            return;
    878878        }
     
    886886            REMatch match = promptRE.getMatch(last.getText());
    887887            if (match != null)
    888                 nextToLast.setFlags(ShellFormatter.STATE_PROMPT);
     888                nextToLast.setFlags(STATE_PROMPT);
    889889        }
    890890    }
     
    903903    {
    904904        if (isPasswordPrompt(posEndOfOutput.getLine())) {
    905             String password = PasswordDialog.showPasswordDialog(Editor.currentEditor(), "Password:", "Password");
     905            String password =
     906                PasswordDialog.showPasswordDialog(Editor.currentEditor(),
     907                                                  "Password:", "Password");
    906908            if (password != null) {
    907909                try {
Note: See TracChangeset for help on using the changeset viewer.