Potential API problems in Eclipse 3.1 | |
Property change events (typing)
Summary: Property change events occur when a new property key/value pair is added to the preference store, when a value is changed, or when a key is removed. The old and new values for the key/value pair are included in the property change event objects that are broadcast to all registered listeners. The lowest Core level preference APIs specify the types of the value in the
event object to be either a String representation of the value or null. The
upper Core level APIs and the JFace APIs specify the types to be real types.
(e.g. There is also a problem with the upper Core and JFace preferences that has always existed but has surfaced recently with the move to the new implementation underneath. Since the preferences are store un-typed on the file system, there are certain cases where we don’t know the type of the preference value when replacing it or removing it from the store. One example occurs when you import new preference values. Solution: We discussed the problem with Jeem and came to the conclusion that the old specs should be updated to say that the values in the property change events will be typed if possible, but also may be String values. Proper clients should be able to react to both situations. Status: Done.
|
|
No notification during #putValue()
Summary: The JFace APIs have a new method called One of the client use cases for preference change listeners is to cache
the preference values locally and then update the cache when someone changes
the values via the regular API and a change event is received. The problem occurs
when another client calls the A concrete example of this occurs with the Solution: The spec for Status: To Be Done. Bug 76940 follows the status of this problem.
|
|
RCP plug-ins and no instance location
Summary: Plug-ins which are part of the RCP should be able to handle the case
where we are running with no instance location. This includes accessing their preferences via Currently the Solution: Code in the preference initializer which accessed the instance and default scopes should be changed only to access the default scope and set the default preference values on that node directly. Status: Done. Bug 76506 was entered to track the last of the issues. It has been verified that all the plug-ins that are part of the RCP use the new preference APIs and don't access the instance area before it has been set.
|