Lines 1776-1791
Link Here
|
1776 |
String varName = propertyName.substring(variablePrefixLength); |
1776 |
String varName = propertyName.substring(variablePrefixLength); |
1777 |
String propertyValue = preferences.get(propertyName, null); |
1777 |
String propertyValue = preferences.get(propertyName, null); |
1778 |
if (propertyValue != null) { |
1778 |
if (propertyValue != null) { |
|
|
1779 |
// cleanup old preferences |
1780 |
preferences.remove(propertyName); |
1781 |
|
1782 |
// add variable to table |
1779 |
IPath varPath = new Path(propertyValue.trim()); |
1783 |
IPath varPath = new Path(propertyValue.trim()); |
1780 |
this.variables.put(varName, varPath); |
1784 |
this.variables.put(varName, varPath); |
1781 |
this.previousSessionVariables.put(varName, varPath); |
1785 |
this.previousSessionVariables.put(varName, varPath); |
1782 |
preferences.remove(propertyName); // cleanup old preferences |
|
|
1783 |
} |
1786 |
} |
1784 |
} else if (propertyName.startsWith(CP_CONTAINER_PREFERENCES_PREFIX)){ |
1787 |
} else if (propertyName.startsWith(CP_CONTAINER_PREFERENCES_PREFIX)){ |
1785 |
String propertyValue = preferences.get(propertyName, null); |
1788 |
String propertyValue = preferences.get(propertyName, null); |
1786 |
if (propertyValue != null) { |
1789 |
if (propertyValue != null) { |
|
|
1790 |
// cleanup old preferences |
1791 |
preferences.remove(propertyName); |
1792 |
|
1793 |
// recreate container |
1787 |
recreatePersistedContainer(propertyName, propertyValue, true/*add to container values*/); |
1794 |
recreatePersistedContainer(propertyName, propertyValue, true/*add to container values*/); |
1788 |
preferences.remove(propertyName); // cleanup old preferences |
|
|
1789 |
} |
1795 |
} |
1790 |
} |
1796 |
} |
1791 |
} |
1797 |
} |