Class EclipseFormatterConfig
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.javascript.eclipse.EclipseFormatterConfig
Class used for parsing an Eclipse code formatter configuration.
- Author:
- bahlef
-
Method Summary
-
Method Details
-
parseConfig
public static Map<String,String> parseConfig(String formatterFile, String formatterProfile) 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 profile- 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
-