Skip to main content
Jump to: navigation, search

Handly/Migration/1.2

< Handly
Revision as of 11:15, 23 May 2019 by Pisv.1c.ru (Talk | contribs) (Created page with "= Migration Guide for Eclipse Handly 1.2 = Changes that may need to be accommodated by current adopters as part of migrating to Eclipse Handly 1.2 from the previous release (...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Migration Guide for Eclipse Handly 1.2

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

org.eclipse.handly.ui.action

  • New API:
    • HistoryDropDownAction. Shows a history list in a drop-down

org.eclipse.handly.ui.callhierarchy

  • CallHierarchy
    • CallHierarchy(CallHierarchyKind, ICallHierarchyNode[], String)CallHierarchy(CallHierarchyKind, ICallHierarchyNode[])
    • getLabel() has been removed without replacement
  • CallHierarchyViewPart
    • createFocusOnSelectionAction() has been removed without replacement
    • createHierarchy() has been effectively replaced with createHierarchyRoots(Object[])
    • fillHierarchyViewerMenu(IMenuManager) has changed the default implementation
    • protected class FocusOnSelectionActionprivate class FocusOnSelectionAction
    • FocusOnSelectionAction getFocusOnSelectionAction()IAction getFocusOnSelectionAction()
    • getHierarchyComparator(ICallHierarchy)getHierarchyComparator()
    • getInputElements() may now not return null
    • refresh() is now final
    • setHierarchy(ICallHierarchy) has been effectively replaced with doRefresh(IContext)
    • New abstract methods:
      • protected abstract String computeContentDescription(). Computes the content description for this view
      • protected abstract ICallHierarchyNode[] createHierarchyRoots(Object[]). Creates and returns the root nodes for a call hierarchy based on the given input elements and the current hierarchy kind
      • protected abstract HistoryEntry createHistoryEntry(Object[]). Creates and returns a history entry for the given input elements
      • protected abstract CallHierarchyViewManager getViewManager(). Returns a CallHierarchyViewManager for this view
      • protected abstract boolean isPossibleInputElement(Object). Returns whether the given element is a possible input element for this view
    • New API methods:
      • protected void addHistoryDropDownAction(IAction). Contributes the 'show history list' action to this view
      • protected void addPinAction(IAction). Contributes the 'pin' action to this view
      • protected void addSetOrientationAction(IAction, int). Contributes a 'set orientation' action to this view
      • public final boolean arePossibleInputElements(Object[]). Returns whether the given elements are possible input elements for this view
      • protected HistoryDropDownAction<HistoryEntry> createHistoryDropDownAction(HistoryDropDownAction.History<HistoryEntry>). Creates and returns a 'show history list' action for this view
      • protected void doRefresh(IContext). Refreshes the content of this view according to options specified in the given context
      • protected ICallHierarchyNode[] getHierarchyRoots(). Returns the root nodes for the current call hierarchy
      • protected List<HistoryEntry> getHistory(). Returns the history used by this view; the history is represented by a "live" list of history entries
      • protected final IAction getRefreshElementAction(). Returns the 'refresh element' action used by this view
      • protected final IAction getRemoveFromViewAction(). Returns the 'remove from view' action used by this view
      • protected void handleCannotRevealCallLocation(IEditorPart, ICallLocation, IContext). Handles the case when a call location cannot be revealed in the editor
      • protected void historyUpdated(). A callback that is invoked when the history has been updated
      • public final boolean isPinned(). Returns whether this view is pinned
      • protected void notifyHistoryUpdated(). Notifies that the history has been updated by this view
      • protected final void refresh(IContext). Performs a refresh of the content of this view according to options specified in the given context
      • protected void revealCallLocation(IEditorPart, ICallLocation, IContext). Attempts to reveal the given call location in the given editor
      • public void setOrientation(int). Sets the orientation of this view
      • public void setPinned(boolean). Marks this view as pinned
      • protected void updateStatusLine(IStatusLineManager, IStructuredSelection). Updates the status line based on the given selection in this view
    • New API class:
      • protected abstract static class HistoryEntry. Represents an entry of the call hierarchy view history list
  • CallLocation
    • New API method:
      • public CallLocation(Object, Object, CallTextInfo), an additional constructor
  • ICallHierarchy
    • getLabel() has been removed without replacement
  • ICallHierarchyNode
    • New API method:
      • default void refresh(). Informs this node that it is about to be refreshed in a structured viewer
  • ICallLocation
    • New API method:
      • default CallTextInfo getCallTextInfo(). Returns the call text info for this call location
  • New API:
    • CallHierarchyViewManager, a manager for instances of CallHierarchyViewPart
    • CallHierarchyViewOpener, a helper class for opening a call hierarchy view
    • CallTextInfo. Holds information about the text of a call, including the text range

Back to the top