html5-img
1 / 11

Eclipse Debug Views Update Policy

Eclipse Debug Views Update Policy. Agenda. Background Requirements How does it work now? How to make it more flexible?. Background. Debug Views Update is inflexible and is driven by a pre-defined set of events. Model cannot control when / how updates are to be commenced

scalkins
Télécharger la présentation

Eclipse Debug Views Update Policy

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Eclipse Debug Views Update Policy

  2. Agenda • Background • Requirements • How does it work now? • How to make it more flexible?

  3. Background • Debug Views Update is inflexible and is driven by a pre-defined set of events. • Model cannot control when / how updates are to be commenced • Difficult to define a strategy that is suitable for all debug adapters.

  4. Requirements • Make debug views update more flexible – give models better control. • Allow a view to have different update policies. • Allow models to specify different update policies for different views. • Example Policies: • Update what’s visible • Update nothing • Update all • Periodic update • Etc.

  5. How does it work now?

  6. How to make it more flexible? • Replace static event handler with pluggable updaters. • Updater are bound to a view using the view id and the model identifier of the input element. • Create updater when new input is set to the view. • Updater controls when view is to be populated.

  7. How to make it more flexible? • Specialized updaters • Selection Event Updater • Debug Event Updater • Delayed Debug Event Updater • Timer Updater • Preference Store Changed Updater • Etc. • Updaters are responsible for controlling when a view gets content from the model. • Extends IDebugView: IDebugViewExtension. • APIs to allow updaters to update views. • Debug Platform is to provide implementations to some generic updaters. • Clients can also implement their own updaters.

  8. Contributing Updaters – extension point • Clients can contribute an updater to a specific view. • Updaters are bound by model identifier and view id. • If no updater is specified, a debug view uses its current event handler as its updater.

  9. Handling Multi-Targets View • Views showing content from different targets simultaneously. • Example: Debug View, Expression View • View has static view input. • Retrieve updater as new models are added. • Updaters are responsible to update elements from its model, not the entire view. Multi-Targets View Static View Input Updater 1 Model A Updater 2 Update (elementA) Model B Updater 3 Update (elementB) Model C Updater 4 Update (elementC)

  10. Fitting into the new scheme… Generic Debug View • Separate out logic of view updates from view. • Updaters have no knowledge about its view. • View updates are performed via a generic interface. • Views are not tied to any updater. • View event notifications are also performed via a generic interface. • Generic View needs to handle view updater extension point and honor contributed updaters. • Easy to migrate. IDebugElement IDebugElement Generic Interface for View Events Notification Generic Interface for Update (Update an element and its children) View Updaters

More Related