Buggy code:
public class PreferenceInitializer extends AbstractPreferenceInitializer { public static final String DEFAULT_LOGS_FILE_NAME = "logs_file.txt" ; public static final String DEFAULT_STATS_FILE_NAME = "stats_file.txt" ; public static final String DEFAULT_METER_FILE_NAME = "meter_file.txt" ; @ Override public void initializeDefaultPreferences ( ) { IPreferenceStore store = DesignerPlugin . getDefault ( ) . getPreferenceStore ( ) ; String logPath = Platform . getLogFileLocation ( ) . toOSString ( ) ; int lastIndex = logPath . lastIndexOf ( File . separatorChar ) ; logPath = TalendTextUtils . addQuotes ( logPath . substring ( 0 , lastIndex ) ) ; store . setDefault ( DEFAULT_LABEL , "__UNIQUE_NAME__" ) ; store . setDefault ( DEFAULT_HINT , "<b>__UNIQUE_NAME__<//b><br>__COMMENT__" ) ; store . setDefault ( DEFAULT_CONNECTION_FORMAT , "row" ) ; store . setDefault ( DEFAULT_HINT_USED , false ) ; store . setDefault ( DEFAULT_DISPLAY , false ) ; store . setDefault ( USE_REPOSITORY_NAME , true ) ; store . setDefault ( PALETTE_STATE , STATE_PINNED_OPEN ) ; store . setDefault ( COMP_DEFAULT_FILE_DIR , Platform . getLocation ( ) . toPortableString ( ) ) ; store . setDefault ( PRODUCT_ROOT_DIR , Platform . getLocation ( ) . removeLastSegments ( 1 ) . toPortableString ( ) ) ; if ( ( ProjectManager . getInstance ( ) . getCurrentProject ( ) ) != null ) { store . setDefault ( COMP_DEFAULT_PROJECT_DIR , ( ( ( Platform . getLocation ( ) . toPortableString ( ) ) + "//" ) + ( ProjectManager . getInstance ( ) . getCurrentProject ( ) . getTechnicalLabel ( ) ) ) ) ; } Bundle refBundle = Platform . getBundle ( "org.talend.dataquality.reporting" ) ; if ( refBundle != null ) { try { <START_BUG> String dirPath = FileLocator . getBundleFile ( refBundle ) . getPath ( ) ; <END_BUG> store . setDefault ( DQ_REPORTING_BUNDLE_DIR , dirPath ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } store . setDefault ( PROPERTY_CODE_CHECK , false ) ; store . setDefault ( LARGE_ICONS_SIZE , "24" ) ; store . setDefault ( SCHEMA_OPTIONS , "none" ) ; store . setDefault ( VIEW_OPTIONS , "default" ) ; store . setDefault ( DISPLAY_SUBJOBS , true ) ; store . setDefault ( COMPONENT_ASSIST , true ) ; store . setDefault ( GENERATE_CODE_WHEN_OPEN_JOB , false ) ; store . setDefault ( CHECK_ONLY_LAST_VERSION , true ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( PROPERTY_TYPE . getName ( ) ) ) , BUILTIN ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( CATCH_REALTIME_STATS . getName ( ) ) ) , false ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( CATCH_RUNTIME_ERRORS . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( CATCH_USER_ERRORS . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( CATCH_USER_WARNING . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( FILE_PATH . getName ( ) ) ) , logPath ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( FILENAME_LOGS . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_LOGS_FILE_NAME ) ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( FILENAME_STATS . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_STATS_FILE_NAME ) ) ; store . setDefault ( ( ( ( JAVA . toString ( ) ) + "_" ) + ( FILENAME_METTER . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_METER_FILE_NAME ) ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( PROPERTY_TYPE . getName ( ) ) ) , BUILTIN ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( CATCH_REALTIME_STATS . getName ( ) ) ) , false ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( CATCH_RUNTIME_ERRORS . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( CATCH_USER_ERRORS . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( CATCH_USER_WARNING . getName ( ) ) ) , true ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( FILE_PATH . getName ( ) ) ) , logPath ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( FILENAME_LOGS . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_LOGS_FILE_NAME ) ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( FILENAME_STATS . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_STATS_FILE_NAME ) ) ; store . setDefault ( ( ( ( PERL . toString ( ) ) + "_" ) + ( FILENAME_METTER . getName ( ) ) ) , TalendTextUtils . addQuotes ( PreferenceInitializer . DEFAULT_METER_FILE_NAME ) ) ; store . setDefault ( MANUALLY_REFRESH , false ) ; store . setDefault ( CREATING_REFRESH , true ) ; store . setDefault ( SAVING_REFRESH , true ) ; store . setDefault ( DELETING_REFRESH , true ) ; store . setDefault ( DB_CONNECTION_TIMEOUT_ACTIVED , true ) ;

Fix:
String dirPath = FileLocator . getBundleFile ( refBundle ) . getPath ( ) . replace ( File . separatorChar , '//' ) ;