Java 类org.eclipse.core.runtime.preferences.BundleDefaultsScope 实例源码

项目:Eclipse-Postfix-Code-Completion    文件:ComplianceConfigurationBlock.java   
/**
 * Tells whether the compliance option is the same as the original default.
 * 
 * @return <code>true</code> if the compliance is the same as the original default
 * @since 3.6
 */
private static final boolean isOriginalDefaultCompliance() {
    Hashtable<String, String> options= JavaCore.getDefaultOptions();
    Preferences bundleDefaults= BundleDefaultsScope.INSTANCE.getNode(JavaCore.PLUGIN_ID);

    return equals(JavaCore.COMPILER_COMPLIANCE, bundleDefaults, options)
            && equals(JavaCore.COMPILER_SOURCE, bundleDefaults, options)
            && equals(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, bundleDefaults, options)
            && equals(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER, bundleDefaults, options)
            && equals(JavaCore.COMPILER_PB_ENUM_IDENTIFIER, bundleDefaults, options);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ComplianceConfigurationBlock.java   
/**
 * Tells whether the compliance option is the same as the original default.
 * 
 * @return <code>true</code> if the compliance is the same as the original default
 * @since 3.6
 */
private static final boolean isOriginalDefaultCompliance() {
    Hashtable<String, String> options= JavaCore.getDefaultOptions();
    Preferences bundleDefaults= BundleDefaultsScope.INSTANCE.getNode(JavaCore.PLUGIN_ID);

    return equals(JavaCore.COMPILER_COMPLIANCE, bundleDefaults, options)
            && equals(JavaCore.COMPILER_SOURCE, bundleDefaults, options)
            && equals(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, bundleDefaults, options)
            && equals(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER, bundleDefaults, options)
            && equals(JavaCore.COMPILER_PB_ENUM_IDENTIFIER, bundleDefaults, options);
}