| java.lang.Object org.netbeans.modules.apisupport.project.ui.customizer.ModuleProperties
All known Subclasses: org.netbeans.modules.apisupport.project.ui.customizer.SingleModuleProperties, org.netbeans.modules.apisupport.project.ui.customizer.NbPropertyPanel, org.netbeans.modules.apisupport.project.ui.customizer.SuiteProperties,
ModuleProperties | abstract public class ModuleProperties (Code) | | Basic support for storing general module's properties.
author: Martin Krauskopf |
Inner Class :static interface LazyStorage | |
Constructor Summary | |
| ModuleProperties(AntProjectHelper helper, PropertyEvaluator evaluator) |
Method Summary | |
void | addLazyStorage(LazyStorage st) | public void | addPropertyChangeListener(PropertyChangeListener pchl) | static JavaPlatform | findJavaPlatformByID(String id) | public static JavaPlatform | findJavaPlatformByLocation(String home) | protected void | firePropertiesRefreshed() | protected void | firePropertyChange(String propName, Object oldValue, Object newValue) | final boolean | getBooleanProperty(String key) | abstract Map<String, String> | getDefaultValues() Returns map of keys form main module properties and their default values. | PropertyEvaluator | getEvaluator() | AntProjectHelper | getHelper() | static String | getPlatformID(JavaPlatform platform) | EditableProperties | getPrivateProperties() | final String | getProjectDirectory() | final File | getProjectDirectoryFile() | String | getProjectDisplayName() | EditableProperties | getProjectProperties() | final String | getProperty(String key) | protected void | reloadProperties() | final String | removePrivateProperty(String key) | final String | removeProperty(String key) | public void | removePropertyChangeListener(PropertyChangeListener pchl) | protected static void | reportLostPlatform(NbPlatform lostPlatform) | final void | setBooleanProperty(String key, boolean bProp) | final void | setPrivateProperty(String key, String value) The given property will be stored into the project's properties. | final void | setProperty(String key, String value) The given property will be stored into the project's properties. | void | setProperty(String key, String[] value) | static void | storeJavaPlatform(AntProjectHelper helper, PropertyEvaluator eval, JavaPlatform platform, boolean isNetBeansOrg) | static void | storePlatform(AntProjectHelper helper, NbPlatform platform) Helper method for storing platform into the appropriate place. | void | storeProperties() Stores cached properties. | void | triggerLazyStorages() |
PROPERTIES_REFRESHED | final public static String PROPERTIES_REFRESHED(Code) | | |
RP | final static RequestProcessor RP(Code) | | |
runFromTests | static boolean runFromTests(Code) | | |
ModuleProperties | ModuleProperties(AntProjectHelper helper, PropertyEvaluator evaluator)(Code) | | Creates a new instance of ModuleProperties
|
addLazyStorage | void addLazyStorage(LazyStorage st)(Code) | | |
findJavaPlatformByID | static JavaPlatform findJavaPlatformByID(String id)(Code) | | |
findJavaPlatformByLocation | public static JavaPlatform findJavaPlatformByLocation(String home)(Code) | | |
firePropertiesRefreshed | protected void firePropertiesRefreshed()(Code) | | |
getBooleanProperty | final boolean getBooleanProperty(String key)(Code) | | |
getDefaultValues | abstract Map<String, String> getDefaultValues()(Code) | | Returns map of keys form main module properties and their default values.
Must be overriden by a subclass.
|
getEvaluator | PropertyEvaluator getEvaluator()(Code) | | |
getHelper | AntProjectHelper getHelper()(Code) | | |
getPlatformID | static String getPlatformID(JavaPlatform platform)(Code) | | |
getPrivateProperties | EditableProperties getPrivateProperties()(Code) | | |
getProjectDirectoryFile | final File getProjectDirectoryFile()(Code) | | |
getProjectProperties | EditableProperties getProjectProperties()(Code) | | |
reloadProperties | protected void reloadProperties()(Code) | | |
reportLostPlatform | protected static void reportLostPlatform(NbPlatform lostPlatform)(Code) | | |
setBooleanProperty | final void setBooleanProperty(String key, boolean bProp)(Code) | | |
setPrivateProperty | final void setPrivateProperty(String key, String value)(Code) | | The given property will be stored into the project's properties. If the
given value is equals to the default value it will be removed from the
properties.
|
setProperty | final void setProperty(String key, String value)(Code) | | The given property will be stored into the project's properties. If the
given value is equals to the default value it will be removed from the
properties.
|
storeJavaPlatform | static void storeJavaPlatform(AntProjectHelper helper, PropertyEvaluator eval, JavaPlatform platform, boolean isNetBeansOrg) throws IOException(Code) | | |
storePlatform | static void storePlatform(AntProjectHelper helper, NbPlatform platform)(Code) | | Helper method for storing platform into the appropriate place.
|
storeProperties | void storeProperties() throws IOException(Code) | | Stores cached properties. This is called when the user press OK
button in the properties customizer. If Cancel button is
pressed properties will not be saved. Be sure this method is called
whitin
ProjectManager.mutex . However, you are well advised to
explicitly enclose a complete operation within write access to
prevent race conditions.
|
triggerLazyStorages | void triggerLazyStorages()(Code) | | |
|
|