Changeset 5957


Ignore:
Timestamp:
02/25/10 12:20:16 (10 years ago)
Author:
callan
Message:

#466 Converting TiffCompression into a Java 1.5+ enum

Location:
branches/cleanup/components
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/components/bio-formats/src/loci/formats/gui/AWTTiffTools.java

    r5877 r5957  
    155155 
    156156    // create pixel output buffers 
    157     int compression = ifd.getCompression(); 
     157    TiffCompression compression = ifd.getCompression(); 
    158158    boolean fullImageCompression = compression == TiffCompression.JPEG_2000 || 
    159159      compression == TiffCompression.JPEG_2000_LOSSY || 
  • branches/cleanup/components/bio-formats/src/loci/formats/in/BaseTiffReader.java

    r5852 r5957  
    145145    } 
    146146 
    147     int comp = firstIFD.getCompression(); 
    148     put("Compression", TiffCompression.getCodecName(comp)); 
     147    TiffCompression comp = firstIFD.getCompression(); 
     148    put("Compression", comp.getCodecName()); 
    149149 
    150150    int photo = firstIFD.getPhotometricInterpretation(); 
  • branches/cleanup/components/bio-formats/src/loci/formats/out/TiffWriter.java

    r5852 r5957  
    207207    IFD h = new IFD(); 
    208208    if (compression == null) compression = ""; 
    209     Integer compressType = new Integer(TiffCompression.UNCOMPRESSED); 
     209    TiffCompression compressType = TiffCompression.UNCOMPRESSED; 
    210210    if (compression.equals(COMPRESSION_LZW)) { 
    211       compressType = new Integer(TiffCompression.LZW); 
     211      compressType = TiffCompression.LZW; 
    212212    } 
    213213    else if (compression.equals(COMPRESSION_J2K)) { 
    214       compressType = new Integer(TiffCompression.JPEG_2000); 
     214      compressType = TiffCompression.JPEG_2000; 
    215215    } 
    216216    else if (compression.equals(COMPRESSION_J2K_LOSSY)) { 
    217       compressType = new Integer(TiffCompression.JPEG_2000_LOSSY); 
     217      compressType = TiffCompression.JPEG_2000_LOSSY; 
    218218    } 
    219219    else if (compression.equals(COMPRESSION_JPEG)) { 
    220       compressType = new Integer(TiffCompression.JPEG); 
     220      compressType = TiffCompression.JPEG; 
    221221    } 
    222222    h.put(new Integer(IFD.COMPRESSION), compressType); 
  • branches/cleanup/components/bio-formats/src/loci/formats/tiff/IFD.java

    r5956 r5957  
    651651   * @throws FormatException if there is a problem parsing the IFD metadata. 
    652652   */ 
    653   public int getCompression() throws FormatException { 
    654     return getIFDIntValue(COMPRESSION, false, TiffCompression.UNCOMPRESSED); 
     653  public TiffCompression getCompression() throws FormatException { 
     654    return TiffCompression.get(getIFDIntValue( 
     655        COMPRESSION, false, TiffCompression.UNCOMPRESSED.getCode())); 
    655656  } 
    656657 
  • branches/cleanup/components/bio-formats/src/loci/formats/tiff/TiffCompression.java

    r5956 r5957  
    2525 
    2626import java.io.IOException; 
    27  
     27import java.util.EnumSet; 
     28import java.util.HashMap; 
     29import java.util.Map; 
     30 
     31import loci.common.CodedEnum; 
    2832import loci.common.DataTools; 
    2933import loci.formats.FormatException; 
     
    5458 * @author Chris Allan callan at blackcat.ca 
    5559 */ 
    56 public final class TiffCompression { 
     60public enum TiffCompression implements CodedEnum { 
     61 
     62  UNCOMPRESSED(1, "Uncompressed"), 
     63  CCITT_1D(2, "CCITT Group 3 1-Dimensional Modified Huffman"), 
     64  GROUP_3_FAX(3, "CCITT T.4 bi-level encoding (Group 3 Fax)"), 
     65  GROUP_4_FAX(4, "CCITT T.6 bi-level encoding (Group 4 Fax)"), 
     66  LZW(5, "LZW"), 
     67  //JPEG(6), 
     68  JPEG(7, "JPEG"), 
     69  PACK_BITS(32773, "PackBits"), 
     70  PROPRIETARY_DEFLATE(32946, "Deflate (Zlib)"), 
     71  DEFLATE(8, "Deflate (Zlib)"), 
     72  THUNDERSCAN(32809, "Thunderscan"), 
     73  JPEG_2000(33003, "JPEG-2000"), 
     74  JPEG_2000_LOSSY(33004, "JPEG-2000 Lossy"), 
     75  ALT_JPEG(33007, "JPEG"), 
     76  NIKON(34713, "Nikon"), 
     77  LURAWAVE(65535, "LuraWave"); 
    5778 
    5879  // -- Constants -- 
     
    6182    LoggerFactory.getLogger(TiffCompression.class); 
    6283 
    63   // TODO: Investigate using Java 1.5 enum instead of int enumeration. 
    64   //       http://javahowto.blogspot.com/2008/04/java-enum-examples.html 
    65   public static final int UNCOMPRESSED = 1; 
    66   public static final int CCITT_1D = 2; 
    67   public static final int GROUP_3_FAX = 3; 
    68   public static final int GROUP_4_FAX = 4; 
    69   public static final int LZW = 5; 
    70   //public static final int JPEG = 6; 
    71   public static final int JPEG = 7; 
    72   public static final int PACK_BITS = 32773; 
    73   public static final int PROPRIETARY_DEFLATE = 32946; 
    74   public static final int DEFLATE = 8; 
    75   public static final int THUNDERSCAN = 32809; 
    76   public static final int JPEG_2000 = 33003; 
    77   public static final int JPEG_2000_LOSSY = 33004; 
    78   public static final int ALT_JPEG = 33007; 
    79   public static final int NIKON = 34713; 
    80   public static final int LURAWAVE = 65535; 
    81  
    82   // -- Constructor -- 
    83  
    84   private TiffCompression() { } 
     84  /** Code for the TIFF compression in the actual TIFF file. */ 
     85  private int code; 
     86 
     87  /** Name of the TIFF compression codec. */ 
     88  private String codecName; 
     89 
     90  /** Reverse lookup of code to TIFF compression enumerate value. */ 
     91  private static Map<Integer, TiffCompression> lookup = 
     92    new HashMap<Integer, TiffCompression>(); 
     93 
     94  static { 
     95    for (TiffCompression v : EnumSet.allOf(TiffCompression.class)) { 
     96      lookup.put(v.getCode(), v); 
     97    } 
     98  } 
    8599 
    86100  // -- TiffCompression methods -- 
    87101 
    88   /** Returns the name of the given codec. */ 
    89   public static String getCodecName(int codec) { 
    90     switch (codec) { 
    91       case UNCOMPRESSED: 
    92         return "Uncompressed"; 
    93       case CCITT_1D: 
    94         return "CCITT Group 3 1-Dimensional Modified Huffman"; 
    95       case GROUP_3_FAX: 
    96         return "CCITT T.4 bi-level encoding (Group 3 Fax)"; 
    97       case GROUP_4_FAX: 
    98         return "CCITT T.6 bi-level encoding (Group 4 Fax)"; 
    99       case LZW: 
    100         return "LZW"; 
    101       case JPEG: 
    102       case ALT_JPEG: 
    103         return "JPEG"; 
    104       case PACK_BITS: 
    105         return "PackBits"; 
    106       case DEFLATE: 
    107       case PROPRIETARY_DEFLATE: 
    108         return "Deflate (Zlib)"; 
    109       case THUNDERSCAN: 
    110         return "Thunderscan"; 
    111       case JPEG_2000: 
    112         return "JPEG-2000"; 
    113       case JPEG_2000_LOSSY: 
    114         return "JPEG-2000 Lossy"; 
    115       case NIKON: 
    116         return "Nikon"; 
    117       case LURAWAVE: 
    118         return "LuraWave"; 
    119     } 
    120     return null; 
     102  /** 
     103   * Default constructor. 
     104   * @param code Integer "code" for the TIFF compression type. 
     105   * @param codecName String name of the compression type. 
     106   */ 
     107  private TiffCompression(int code, String codecName) { 
     108    this.code = code; 
     109    this.codecName = codecName; 
     110  } 
     111 
     112  /** 
     113   * Retrieves a TIFF compression instance by code. 
     114   * @param code Integer "code" for the TIFF compression type. 
     115   * @return See above. 
     116   */ 
     117  public static TiffCompression get(int code) { 
     118    return lookup.get(code); 
     119  } 
     120 
     121  /* (non-Javadoc) 
     122   * @see loci.common.CodedEnum#getCode() 
     123   */ 
     124  public int getCode() { 
     125    return code; 
     126  } 
     127 
     128   
     129  /** 
     130   * Retrieves the name of the TIFF compression codec. 
     131   * @return See above. 
     132   */ 
     133  public String getCodecName() { 
     134    return codecName; 
    121135  } 
    122136 
     
    124138 
    125139  /** Returns true if the given decompression scheme is supported. */ 
    126   public static boolean isSupportedDecompression(int decompression) { 
     140  public boolean isSupportedDecompression() { 
    127141    return 
    128       decompression == UNCOMPRESSED || 
    129       decompression == LZW || 
    130       decompression == JPEG || 
    131       decompression == ALT_JPEG || 
    132       decompression == JPEG_2000 || 
    133       decompression == JPEG_2000_LOSSY || 
    134       decompression == PACK_BITS || 
    135       decompression == PROPRIETARY_DEFLATE || 
    136       decompression == DEFLATE || 
    137       decompression == NIKON || 
    138       decompression == LURAWAVE; 
     142      this == UNCOMPRESSED || 
     143      this == LZW || 
     144      this == JPEG || 
     145      this == ALT_JPEG || 
     146      this == JPEG_2000 || 
     147      this == JPEG_2000_LOSSY || 
     148      this == PACK_BITS || 
     149      this == PROPRIETARY_DEFLATE || 
     150      this == DEFLATE || 
     151      this == NIKON || 
     152      this == LURAWAVE; 
    139153  } 
    140154 
    141155  /** Decodes a strip of data compressed with the given compression scheme. */ 
    142   public static byte[] uncompress(byte[] input, int compression, 
    143     CodecOptions options) throws FormatException, IOException 
    144   { 
    145     if (compression < 0) compression += 65536; 
    146  
    147     if (!isSupportedDecompression(compression)) { 
    148       String compressionName = getCodecName(compression); 
     156  public byte[] uncompress(byte[] input, CodecOptions options) 
     157    throws FormatException, IOException 
     158  { 
     159    if (!isSupportedDecompression()) { 
     160      String compressionName = getCodecName(); 
    149161      String message = null; 
    150162      if (compressionName != null) { 
     
    152164          "Sorry, " + compressionName + " compression mode is not supported"; 
    153165      } 
    154       else message = "Unknown Compression type (" + compression + ")"; 
     166      else message = "Unknown Compression type (" + this + ")"; 
    155167      throw new FormatException(message); 
    156168    } 
     
    158170    Codec codec = null; 
    159171 
    160     if (compression == UNCOMPRESSED) return input; 
    161     else if (compression == LZW) codec = new LZWCodec(); 
    162     else if (compression == JPEG || compression == ALT_JPEG) { 
     172    if (this == UNCOMPRESSED) return input; 
     173    else if (this == LZW) codec = new LZWCodec(); 
     174    else if (this == JPEG || this == ALT_JPEG) { 
    163175      codec = new JPEGCodec(); 
    164176    } 
    165     else if (compression == JPEG_2000 || compression == JPEG_2000_LOSSY) { 
     177    else if (this == JPEG_2000 || this == JPEG_2000_LOSSY) { 
    166178      codec = new JPEG2000Codec(); 
    167179    } 
    168     else if (compression == PACK_BITS) codec = new PackbitsCodec(); 
    169     else if (compression == PROPRIETARY_DEFLATE || compression == DEFLATE) { 
     180    else if (this == PACK_BITS) codec = new PackbitsCodec(); 
     181    else if (this == PROPRIETARY_DEFLATE || this == DEFLATE) { 
    170182      codec = new ZlibCodec(); 
    171183    } 
    172     else if (compression == NIKON) codec = new NikonCodec(); 
    173     else if (compression == LURAWAVE) codec = new LuraWaveCodec(); 
     184    else if (this == NIKON) codec = new NikonCodec(); 
     185    else if (this == LURAWAVE) codec = new LuraWaveCodec(); 
    174186    if (codec != null) return codec.decompress(input, options); 
    175     throw new FormatException("Unhandled compression (" + compression + ")"); 
     187    throw new FormatException("Unhandled compression (" + this + ")"); 
    176188  } 
    177189 
     
    215227 
    216228  /** Returns true if the given compression scheme is supported. */ 
    217   public static boolean isSupportedCompression(int compression) { 
    218     return compression == UNCOMPRESSED || compression == LZW || 
    219       compression == JPEG || compression == JPEG_2000 || 
    220       compression == JPEG_2000_LOSSY; 
     229  public boolean isSupportedCompression() { 
     230    return this == UNCOMPRESSED || this == LZW || this == JPEG || 
     231      this == JPEG_2000 || this == JPEG_2000_LOSSY; 
    221232  } 
    222233 
     
    225236    throws FormatException, IOException 
    226237  { 
    227     int compression = ifd.getIFDIntValue(IFD.COMPRESSION, false, UNCOMPRESSED); 
    228  
    229     if (!isSupportedCompression(compression)) { 
    230       String compressionName = getCodecName(compression); 
     238    TiffCompression compression = get(ifd.getIFDIntValue( 
     239        IFD.COMPRESSION, false, UNCOMPRESSED.getCode())); 
     240 
     241    if (!compression.isSupportedCompression()) { 
     242      String compressionName = compression.getCodecName(); 
    231243      if (compressionName != null) { 
    232244        throw new FormatException("Sorry, " + compressionName + 
  • branches/cleanup/components/bio-formats/src/loci/formats/tiff/TiffParser.java

    r5956 r5957  
    551551    int samplesPerPixel = ifd.getSamplesPerPixel(); 
    552552    int planarConfig = ifd.getPlanarConfiguration(); 
    553     int compression = ifd.getCompression(); 
     553    TiffCompression compression = ifd.getCompression(); 
    554554 
    555555    long numTileCols = ifd.getTilesPerRow(); 
     
    573573      System.arraycopy(jpegTable, 0, q, 0, jpegTable.length - 2); 
    574574      System.arraycopy(tile, 2, q, jpegTable.length - 2, tile.length - 2); 
    575       tile = TiffCompression.uncompress(q, compression, options); 
    576     } 
    577     else tile = TiffCompression.uncompress(tile, compression, options); 
     575      tile = compression.uncompress(q, options); 
     576    } 
     577    else tile = compression.uncompress(tile, options); 
    578578 
    579579    TiffCompression.undifference(tile, ifd); 
     
    640640      samplesPerPixel, numSamples); 
    641641 
    642     int compression = ifd.getCompression(); 
     642    TiffCompression compression = ifd.getCompression(); 
    643643 
    644644    // special case: if we only need one tile, and that tile doesn't need 
     
    786786    } 
    787787 
    788     int compression = ifd.getCompression(); 
     788    TiffCompression compression = ifd.getCompression(); 
    789789    int photoInterp = ifd.getPhotometricInterpretation(); 
    790790    if (compression == TiffCompression.JPEG) photoInterp = PhotoInterp.RGB; 
     
    812812    boolean bps16 = bps0 == 16; 
    813813 
    814     int row = startIndex / (int) imageWidth; 
    815     int col = 0; 
    816  
    817     int cw = 0, ch = 0; 
    818  
    819814    boolean littleEndian = ifd.isLittleEndian(); 
    820815 
     
    823818    TiffRational[] coefficients = (TiffRational[]) 
    824819      ifd.getIFDValue(IFD.Y_CB_CR_COEFFICIENTS); 
    825  
    826     int count = 0; 
    827820 
    828821    BitBuffer bb = new BitBuffer(bytes); 
  • branches/cleanup/components/loci-plugins/.settings/org.eclipse.jdt.core.prefs

    r5068 r5957  
    1 #Sun May 03 15:32:51 PDT 2009 
     1#Thu Feb 18 18:43:03 GMT 2010 
    22eclipse.preferences.version=1 
    33org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 
     
    1111org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 
    1212org.eclipse.jdt.core.compiler.source=1.5 
     13org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 
     14org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 
     15org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 
     16org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 
     17org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 
     18org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 
     19org.eclipse.jdt.core.formatter.alignment_for_assignment=0 
     20org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 
     21org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 
     22org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 
     23org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 
     24org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 
     25org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 
     26org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 
     27org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 
     28org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 
     29org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 
     30org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 
     31org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 
     32org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 
     33org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 
     34org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 
     35org.eclipse.jdt.core.formatter.blank_lines_after_package=1 
     36org.eclipse.jdt.core.formatter.blank_lines_before_field=0 
     37org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 
     38org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 
     39org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 
     40org.eclipse.jdt.core.formatter.blank_lines_before_method=1 
     41org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 
     42org.eclipse.jdt.core.formatter.blank_lines_before_package=0 
     43org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 
     44org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 
     45org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line 
     46org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line 
     47org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line 
     48org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line 
     49org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line 
     50org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line 
     51org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line 
     52org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line 
     53org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line 
     54org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line 
     55org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line 
     56org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false 
     57org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false 
     58org.eclipse.jdt.core.formatter.comment.format_block_comments=true 
     59org.eclipse.jdt.core.formatter.comment.format_header=false 
     60org.eclipse.jdt.core.formatter.comment.format_html=true 
     61org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true 
     62org.eclipse.jdt.core.formatter.comment.format_line_comments=true 
     63org.eclipse.jdt.core.formatter.comment.format_source_code=true 
     64org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true 
     65org.eclipse.jdt.core.formatter.comment.indent_root_tags=true 
     66org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert 
     67org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert 
     68org.eclipse.jdt.core.formatter.comment.line_length=80 
     69org.eclipse.jdt.core.formatter.compact_else_if=true 
     70org.eclipse.jdt.core.formatter.continuation_indentation=2 
     71org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 
     72org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 
     73org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 
     74org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true 
     75org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true 
     76org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true 
     77org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true 
     78org.eclipse.jdt.core.formatter.indent_empty_lines=false 
     79org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true 
     80org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true 
     81org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true 
     82org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false 
     83org.eclipse.jdt.core.formatter.indentation.size=2 
     84org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert 
     85org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert 
     86org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 
     87org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 
     88org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert 
     89org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert 
     90org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert 
     91org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert 
     92org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert 
     93org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert 
     94org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert 
     95org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert 
     96org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert 
     97org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert 
     98org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert 
     99org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert 
     100org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert 
     101org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert 
     102org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert 
     103org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert 
     104org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert 
     105org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert 
     106org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert 
     107org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert 
     108org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert 
     109org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert 
     110org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert 
     111org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert 
     112org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert 
     113org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert 
     114org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert 
     115org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert 
     116org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert 
     117org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert 
     118org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert 
     119org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert 
     120org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert 
     121org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert 
     122org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert 
     123org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert 
     124org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert 
     125org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert 
     126org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert 
     127org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert 
     128org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert 
     129org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert 
     130org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert 
     131org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert 
     132org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert 
     133org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert 
     134org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert 
     135org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert 
     136org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert 
     137org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert 
     138org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert 
     139org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert 
     140org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert 
     141org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert 
     142org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert 
     143org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert 
     144org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert 
     145org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert 
     146org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert 
     147org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert 
     148org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert 
     149org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert 
     150org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert 
     151org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert 
     152org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert 
     153org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert 
     154org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert 
     155org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert 
     156org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert 
     157org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert 
     158org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert 
     159org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert 
     160org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert 
     161org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert 
     162org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert 
     163org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert 
     164org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert 
     165org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert 
     166org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert 
     167org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert 
     168org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert 
     169org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert 
     170org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert 
     171org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert 
     172org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert 
     173org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert 
     174org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert 
     175org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert 
     176org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert 
     177org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert 
     178org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert 
     179org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert 
     180org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert 
     181org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert 
     182org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert 
     183org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert 
     184org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert 
     185org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert 
     186org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert 
     187org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert 
     188org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert 
     189org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert 
     190org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert 
     191org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert 
     192org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert 
     193org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert 
     194org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert 
     195org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert 
     196org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert 
     197org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert 
     198org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert 
     199org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert 
     200org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert 
     201org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert 
     202org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert 
     203org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert 
     204org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert 
     205org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert 
     206org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert 
     207org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert 
     208org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert 
     209org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert 
     210org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert 
     211org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert 
     212org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert 
     213org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert 
     214org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert 
     215org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert 
     216org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert 
     217org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert 
     218org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert 
     219org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert 
     220org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert 
     221org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert 
     222org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert 
     223org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert 
     224org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert 
     225org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert 
     226org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert 
     227org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert 
     228org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert 
     229org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert 
     230org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert 
     231org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert 
     232org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert 
     233org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert 
     234org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert 
     235org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert 
     236org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert 
     237org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert 
     238org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert 
     239org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert 
     240org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert 
     241org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert 
     242org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert 
     243org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert 
     244org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert 
     245org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert 
     246org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert 
     247org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert 
     248org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert 
     249org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert 
     250org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert 
     251org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert 
     252org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert 
     253org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert 
     254org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert 
     255org.eclipse.jdt.core.formatter.join_lines_in_comments=true 
     256org.eclipse.jdt.core.formatter.join_wrapped_lines=true 
     257org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false 
     258org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false 
     259org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false 
     260org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false 
     261org.eclipse.jdt.core.formatter.lineSplit=80 
     262org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false 
     263org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false 
     264org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 
     265org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 
     266org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true 
     267org.eclipse.jdt.core.formatter.tabulation.char=space 
     268org.eclipse.jdt.core.formatter.tabulation.size=2 
     269org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false 
     270org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 
Note: See TracChangeset for help on using the changeset viewer.