Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Handly/Migration/1.0"

(Created page with "= Migration Guide for Eclipse Handly 1.0 = Changes that need to be accommodated by current adopters as part of migrating to Eclipse Handly 1.0 from the previous major release...")
 
Line 24: Line 24:
  
 
=== org.eclipse.handly.util ===
 
=== org.eclipse.handly.util ===
 +
 +
* '''AdapterUtil''' has been removed ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=527476 527476]). The Eclipse Platform's class <tt>org.eclipse.core.runtime.Adapters</tt> is the direct replacement.
  
 
* '''LruCache''' has been re-written from scratch with new API and implementation ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=533045 533045]). Due to significant breaking changes, existing clients need to be careful in adopting the new API, especially if they have extended a class in the former <tt>LruCache</tt> hierarchy.
 
* '''LruCache''' has been re-written from scratch with new API and implementation ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=533045 533045]). Due to significant breaking changes, existing clients need to be careful in adopting the new API, especially if they have extended a class in the former <tt>LruCache</tt> hierarchy.

Revision as of 09:28, 15 June 2018

Migration Guide for Eclipse Handly 1.0

Changes that need to be accommodated by current adopters as part of migrating to Eclipse Handly 1.0 from the previous major release (0.8).

org.eclipse.handly.model

  • IElementChangeEvent (530818)
    • IElementDelta getDelta()IElementDelta[] getDeltas()

org.eclipse.handly.model.impl.support

  • ElementCache now extends new API class BoundedLruCache (533045)
    • ensureSpaceLimit(int, IElement)ensureMaxSize(int, IElement)
    • resetSpaceLimit(int, IElement)resetMaxSize(int, IElement)
  • ElementChangeEvent (530818)
    • ElementChangeEvent(int, IElementDelta)ElementChangeEvent(int, IElementDelta...)
  • ISourceFileImplSupport.ReconcileOperation (530827)
    • Added requirement that ReconcileOperation subclasses overriding the reconcile method must make sure to call the super implementation.
    • New API methods:
      • protected static boolean isInitialReconcile(IContext)
      • protected static boolean isReconcilingForced(IContext)

org.eclipse.handly.util

  • AdapterUtil has been removed (527476). The Eclipse Platform's class org.eclipse.core.runtime.Adapters is the direct replacement.
  • LruCache has been re-written from scratch with new API and implementation (533045). Due to significant breaking changes, existing clients need to be careful in adopting the new API, especially if they have extended a class in the former LruCache hierarchy.
  • OverflowingLruCache has been removed without direct replacement (533045). Clients can easily subclass new API class BoundedLruCache to implement an overflowing LRU cache.
  • New API:
    • BoundedLruCache (533045), a subclass of LruCache

Back to the top