1 11 12 package org.eclipse.jdt.apt.core.util; 13 14 import java.util.Collections ; 15 import java.util.HashMap ; 16 import java.util.Map ; 17 18 21 public class AptPreferenceConstants { 22 public static final String APT_STRING_BASE = "org.eclipse.jdt.apt"; public static final String APT_GENSRCDIR = APT_STRING_BASE + ".genSrcDir"; public static final String APT_PROCESSOROPTIONS = APT_STRING_BASE + ".processorOptions"; public static final String APT_RECONCILEENABLED = APT_STRING_BASE + ".reconcileEnabled"; public static final String APT_PROCESSANNOTATIONS = "org.eclipse.jdt.core.compiler.processAnnotations"; public static final String APT_ENABLED = APT_STRING_BASE + ".aptEnabled"; 30 public static final String ENABLED = "enabled"; public static final String DISABLED = "disabled"; 34 public static final String APT_NULLVALUE = APT_STRING_BASE + ".NULLVALUE"; 37 public static final String DEFAULT_GENERATED_SOURCE_FOLDER_NAME = ".apt_generated"; 39 43 public static final String RTTG_ENABLED_OPTION = "enableTypeGenerationInEditor"; 45 public static Map <String ,String > DEFAULT_OPTIONS_MAP; 46 47 static { 48 Map <String ,String > options = new HashMap <String ,String >(); 49 options.put(AptPreferenceConstants.APT_ENABLED, "false"); options.put(AptPreferenceConstants.APT_GENSRCDIR, DEFAULT_GENERATED_SOURCE_FOLDER_NAME); 51 options.put(AptPreferenceConstants.APT_PROCESSOROPTIONS, ""); options.put(AptPreferenceConstants.APT_RECONCILEENABLED, "true"); DEFAULT_OPTIONS_MAP = Collections.unmodifiableMap(options); 54 } 55 56 63 public static final String [] OPTION_NAMES = { 64 APT_ENABLED, 65 APT_GENSRCDIR, 66 APT_PROCESSOROPTIONS, 67 APT_RECONCILEENABLED, 68 }; 69 70 73 public static final int NSETTINGS = OPTION_NAMES.length; 74 } 75 76 77 | Popular Tags |