Changeset 220


Ignore:
Timestamp:
11/10/02 00:29:56 (21 years ago)
Author:
piso
Message:

getIcon(): make TAG_METHOD the default case.

File:
1 edited

Legend:

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

    r2 r220  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: LocalTag.java,v 1.1.1.1 2002-09-24 16:09:11 piso Exp $
     5 * $Id: LocalTag.java,v 1.2 2002-11-10 00:29:56 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3838        super(name, line.getText());
    3939        pos = new Position(line, 0);
    40         this.type = TAG_METHOD;
     40        type = TAG_METHOD;
    4141    }
    4242
     
    4545        super(name, pos.getLine().getText());
    4646        this.pos = new Position(pos);
    47         this.type = TAG_METHOD;
     47        type = TAG_METHOD;
    4848    }
    4949
     
    126126        ImageIcon base = null;
    127127        ImageIcon overlay = null;
    128 
    129128        switch (type) {
    130129            case TAG_INTERFACE:
     
    141140                break;
    142141            case TAG_METHOD:
     142            default:
    143143                if (methodIcon == null)
    144144                    methodIcon = Utilities.getIconFromFile("method.png");
     
    150150                base = fieldIcon;
    151151                break;
    152             default:
    153                 break;
    154         }
    155 
     152        }
    156153        if (isPublic()) {
    157154            if (publicIcon == null)
     
    167164            overlay = privateIcon;
    168165        }
    169 
    170166        return new OverlayIcon(base, overlay);
    171167    }
Note: See TracChangeset for help on using the changeset viewer.