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.1"

 
Line 39: Line 39:
  
 
* '''FilteringOutlinePopup.IMatcher''' has been removed. Clients should now use <tt>java.util.function.Predicate</tt> instead ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=539382 539382]).
 
* '''FilteringOutlinePopup.IMatcher''' has been removed. Clients should now use <tt>java.util.function.Predicate</tt> instead ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=539382 539382]).
 +
 +
=== org.eclipse.handly.ui.viewer ===
 +
 +
* New API:
 +
** <tt>'''ColumnDescription'''</tt>. Combines a <tt>ColumnLayoutDatya</tt> with a header for a table column
 +
** <tt>'''DeferredTreeContentProvider'''</tt>, an abstract base class for a tree content provider that supports asynchronous fetching of children
 +
** <tt>'''DelegatingSelectionProvider'''</tt>, an implementation of <tt>IPostSelectionProvider</tt> that delegates to another selection provider, which can be replaced dynamically
 +
** <tt>'''ViewerFocusTracker'''</tt>. Tracks focus of the given viewers
  
 
=== org.eclipse.handly.ui.workingset ===
 
=== org.eclipse.handly.ui.workingset ===
Line 49: Line 57:
 
** <tt>'''public''' WorkingSetDelta(IWorkingSet)</tt> &rarr; <tt>'''/*package-private*/''' WorkingSetDelta(IWorkingSet)</tt>
 
** <tt>'''public''' WorkingSetDelta(IWorkingSet)</tt> &rarr; <tt>'''/*package-private*/''' WorkingSetDelta(IWorkingSet)</tt>
 
** <tt>'''public''' void process()</tt> &rarr; <tt>'''/*package-private*/''' void apply()</tt>
 
** <tt>'''public''' void process()</tt> &rarr; <tt>'''/*package-private*/''' void apply()</tt>
 +
 +
=== org.eclipse.handly.util ===
 +
 +
* New API:
 +
** <tt>'''IStatusAcceptor'''</tt>. Accepts <tt>IStatus</tt> objects
 +
** <tt>'''SerialPerObjectRule'''</tt>, a scheduling rule that serializes on a given lock object
  
 
=== org.eclipse.handly.xtext.ui.editor ===
 
=== org.eclipse.handly.xtext.ui.editor ===

Latest revision as of 11:01, 11 December 2018

Migration Guide for Eclipse Handly 1.1

Changes that may need to be accommodated by current adopters as part of migrating to Eclipse Handly 1.1 from the previous release (1.0). Note that these changes do not break the Core API. Only the provisional UI API (which is now at the 0.10 version) is affected. It is expected that these changes will not affect the majority of existing clients.

org.eclipse.handly.model.impl.support

  • ISourceFileImplSupport.NotifyingReconcileOperation
    • New API method:
      • protected boolean shouldNotifyChange(IContext) (541209)

org.eclipse.handly.ui

  • EditorUtility (540535)
    • public static final EditorUtility DEFAULTpublic static final EditorUtility DefaultEditorUtility.INSTANCE (new API)
    • public EditorUtility()protected EditorUtility()
    • New API method:
      • public void revealTextRange(IEditorPart, int, int, ISnapshot). Reveals the given text range in the given editor on a best effort basis
  • New API:
    • DefaultEditorUtility (540535), a subclass of EditorUtility
    • EditorOpener, a helper class for opening a model element in an editor. Uses a given EditorUtility

org.eclipse.handly.ui.navigator

  • OpenAction has been moved to org.eclipse.handly.ui.action (new package) (540885)
    • Protected fields page : IWorkbenchPage and editorUtility : EditorUtility have been removed without replacement.
    • New API methods:
      • public OpenAction(EditorOpener), an additional constructor
      • protected IStatusAcceptor newStatusAcceptor(). If an error occurs while opening the editor, it is reported to the status acceptor returned by this method
  • OpenActionProvider
    • Protected method getEditorUtility() : EditorUtility has been removed. Clients that have overridden this method should now override createOpenAction
    • New API method:
      • protected BaseSelectionListenerAction createOpenAction()

org.eclipse.handly.ui.outline

  • CommonOutlinePage no longer provides a default implementation for the getLinkWithEditorPreference() and getLexicalSortPreference() methods (539381).
  • FilteringOutlinePopup.IMatcher has been removed. Clients should now use java.util.function.Predicate instead (539382).

org.eclipse.handly.ui.viewer

  • New API:
    • ColumnDescription. Combines a ColumnLayoutDatya with a header for a table column
    • DeferredTreeContentProvider, an abstract base class for a tree content provider that supports asynchronous fetching of children
    • DelegatingSelectionProvider, an implementation of IPostSelectionProvider that delegates to another selection provider, which can be replaced dynamically
    • ViewerFocusTracker. Tracks focus of the given viewers

org.eclipse.handly.ui.workingset

  • AbstractContainmentAdapter (539383)
    • protected boolean check(IElement, IElement)protected boolean isAncestorOf(IElement, IElement)
    • protected boolean check(IResource, IResource)protected boolean isAncestorOf(IResource, IResource)
  • AbstractWorkingSetUpdater.WorkingSetDelta (539386)
    • public WorkingSetDelta(IWorkingSet)/*package-private*/ WorkingSetDelta(IWorkingSet)
    • public void process()/*package-private*/ void apply()

org.eclipse.handly.util

  • New API:
    • IStatusAcceptor. Accepts IStatus objects
    • SerialPerObjectRule, a scheduling rule that serializes on a given lock object

org.eclipse.handly.xtext.ui.editor

  • HandlyXtextDocument
    • public boolean reconcile(Processor)/*package-private*/ boolean reconcile(Processor) (539387)

Back to the top