Ignore:
Timestamp:
17.06.2009 10:04:22 (3 years ago)
Author:
stoecker
Message:

remove all these ugly tab stops introduced in the last half year

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/historycombobox/EventConsumingPlainDocument.java

    r1575 r1677  
    11/* Copyright (c) 2008, Henrik Niehaus 
    22 * All rights reserved. 
    3  *  
     3 * 
    44 * Redistribution and use in source and binary forms, with or without 
    55 * modification, are permitted provided that the following conditions are met: 
    6  *  
     6 * 
    77 * 1. Redistributions of source code must retain the above copyright notice, 
    88 *    this list of conditions and the following disclaimer. 
    9  * 2. Redistributions in binary form must reproduce the above copyright notice,  
    10  *    this list of conditions and the following disclaimer in the documentation  
     9 * 2. Redistributions in binary form must reproduce the above copyright notice, 
     10 *    this list of conditions and the following disclaimer in the documentation 
    1111 *    and/or other materials provided with the distribution. 
    12  * 3. Neither the name of the project nor the names of its  
    13  *    contributors may be used to endorse or promote products derived from this  
     12 * 3. Neither the name of the project nor the names of its 
     13 *    contributors may be used to endorse or promote products derived from this 
    1414 *    software without specific prior written permission. 
    15  *  
     15 * 
    1616 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    1717 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
     
    3333 
    3434public class EventConsumingPlainDocument extends PlainDocument { 
    35         private boolean consumeEvents; 
     35    private boolean consumeEvents; 
    3636 
    37         public boolean isConsumeEvents() { 
    38                 return consumeEvents; 
    39         } 
     37    public boolean isConsumeEvents() { 
     38        return consumeEvents; 
     39    } 
    4040 
    41         public void setConsumeEvents(boolean consumeEvents) { 
    42                 this.consumeEvents = consumeEvents; 
    43         } 
     41    public void setConsumeEvents(boolean consumeEvents) { 
     42        this.consumeEvents = consumeEvents; 
     43    } 
    4444 
    45         @Override 
    46         protected void fireChangedUpdate(DocumentEvent e) { 
    47                 if(!consumeEvents) { 
    48                         super.fireChangedUpdate(e); 
    49                 } 
    50         } 
     45    @Override 
     46    protected void fireChangedUpdate(DocumentEvent e) { 
     47        if(!consumeEvents) { 
     48            super.fireChangedUpdate(e); 
     49        } 
     50    } 
    5151 
    52         @Override 
    53         protected void fireInsertUpdate(DocumentEvent e) { 
    54                 if(!consumeEvents) { 
    55                         super.fireInsertUpdate(e); 
    56                 } 
    57         } 
     52    @Override 
     53    protected void fireInsertUpdate(DocumentEvent e) { 
     54        if(!consumeEvents) { 
     55            super.fireInsertUpdate(e); 
     56        } 
     57    } 
    5858 
    59         @Override 
    60         protected void fireRemoveUpdate(DocumentEvent e) { 
    61                 if(!consumeEvents) { 
    62                         super.fireRemoveUpdate(e); 
    63                 } 
    64         } 
     59    @Override 
     60    protected void fireRemoveUpdate(DocumentEvent e) { 
     61        if(!consumeEvents) { 
     62            super.fireRemoveUpdate(e); 
     63        } 
     64    } 
    6565 
    66         @Override 
    67         protected void fireUndoableEditUpdate(UndoableEditEvent e) { 
    68                 if(!consumeEvents) { 
    69                         super.fireUndoableEditUpdate(e); 
    70                 } 
    71         } 
    72          
    73          
     66    @Override 
     67    protected void fireUndoableEditUpdate(UndoableEditEvent e) { 
     68        if(!consumeEvents) { 
     69            super.fireUndoableEditUpdate(e); 
     70        } 
     71    } 
     72 
     73 
    7474} 
Note: See TracChangeset for help on using the changeset viewer.