Class EclipseFormatterConfig
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.java.eclipse.EclipseFormatterConfig
Class used for parsing an Eclipse code formatter configuration.
- Author:
- bahlef
-
Method Summary
Modifier and TypeMethodDescriptionparseConfig
(String formatterFile, String formatterProfile, String sourceLevel) Parses the configuration parameters from the givenprofile
of the given formatter configuration file and returns it as aMap
containing the configuration as key value pairs.
-
Method Details
-
parseConfig
public static Map<String,String> parseConfig(String formatterFile, String formatterProfile, String sourceLevel) throws ProfileNotFoundException, ConfigReadException, CannotLoadConfigurationException Parses the configuration parameters from the givenprofile
of the given formatter configuration file and returns it as aMap
containing the configuration as key value pairs.- Parameters:
formatterFile
- the path to the formatter configuration fileformatterProfile
- the name of the formatter configuration profilesourceLevel
- the source level to use for formatting- Returns:
- a
Map
containing the configuration as key value pairs - Throws:
ConfigReadException
- if there is an issue parsing the formatter configurationProfileNotFoundException
- if the givenprofile
could not be foundCannotLoadConfigurationException
- if there is any issue accessing or reading the formatter configuration
-