| Summary: | String substitution variables are lost during import | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sergey Prigogin <eclipse.sprigogin> | ||||
| Component: | Debug | Assignee: | Kevin Barnes <cocoakevin> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | dj.houghton | ||||
| Version: | 3.1 | ||||||
| Target Milestone: | 3.1 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Sergey Prigogin
Created attachment 21245 [details]
Preferences file
Verified that export/import of String Substitution Variables does not work in
M7.
* created several variables on "Preferences > Run/Debug > String Substitution"
* exported prefs (looked in file to see they were there)
* deleted the new variables from pref page
* imported preference file
> variables did not appear.
Moving to runtime for comment.
Need to investigate for RC2, as this might hide something bigger. I have verified that the exported values are applied to the workspace when they are imported but for some reason they aren't appearing in the preference dialog. Will investigate property change notification. The StringVariableManager class initializes the values on startup but it doesn't
react to changes in the preferences after that.
Something like this:
IPropertyChangeListener listener = new IPropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
if (!PREF_VALUE_VARIABLES.equals(event.getProperty()))
return;
// todo reload the preference values
}
};
VariablesPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(listener);
Thanks DJ. Fixed in StringVariableManager. Also added synchronization to variable access methods to avoid concurrent access while initializing variable tables. Please verify, Kevin. verified |