Changeset 181


Ignore:
Timestamp:
10/26/02 15:05:36 (20 years ago)
Author:
piso
Message:

Indentation.

File:
1 edited

Legend:

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

    r37 r181  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: JavaMode.java,v 1.3 2002-10-03 17:36:54 piso Exp $
     5 * $Id: JavaMode.java,v 1.4 2002-10-26 15:05:36 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    216216        if (model == null)
    217217            return 0;
     218
     219        final int indentSize = buffer.getIndentSize();
     220
     221        final String firstIdentifier = getFirstIdentifier(text);
     222        if (firstIdentifier.equals("throws"))
     223            return buffer.getIndentation(model) + indentSize;
     224
    218225        final String modelText = trimSyntacticWhitespace(model.getText());
    219226
     
    241248
    242249        final int indent = getIndentationOfEnclosingScope(line, buffer);
    243         final int indentSize = buffer.getIndentSize();
    244250
    245251        if (textFirstChar == '{') {
Note: See TracChangeset for help on using the changeset viewer.