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 "Mylyn/Porting Guide"

(Removed Tasks API)
(60 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
[[Category:Mylyn]]  
 
[[Category:Mylyn]]  
  
'''NOTE:''' Mylyn 3.0 changes are currently in progress, and we recommend building against the [http://wiki.eclipse.org/index.php/Mylyn_Contributor_Reference#Checkout Mylyn 2.x stream].  See {{bug|227660}} for the plan and for details.  If interested in API progress, we recommend adding a watch for this page and a CC for that bug.
+
= General =
  
= Porting from 1.0 to 2.0 =
+
Mylyn follows the Eclipse conventions for [[Version_Numbering|version numbering]] and guarantees [[Evolving_Java-based_APIs|binary backwards compatibility]] for minor releases. Internals are binary backwards compatible between service releases.
  
See the <b>[[Mylyn Porting Guide 2.0]]</b>
+
API enhancements can be tracked by searching the source code for the corresponding @since JavaDoc tags or by querying for bugs that have [api] in their summary.
  
= Porting from 2.0 to 3.0 =
+
= Changes in 3.12 =
  
There is currently no need to port Mylyn from the 2.0 APIs since current Mylyn releases are backwards compatible.  Throughout the 2.x release cycle we will be using this wiki to gather changes and suggestions for improving the APIs for 3.0.
+
* The SOAP transport was removed ({{bug|421379}}).
  
 +
= Changes in 3.11 =
  
== Pending Changes for Mylyn 3.0 ==
+
* The SOAP transport was deprecated ({{bug|423964}}).
Also see all tags of "API-3.0"
+
* Refactor <code>TaskActivationHistory</code> into a <code>TaskActivityManager</code> that encapsulates both activity monitoring and activation history
+
* Merge ITaskActivityListener and ITaskActivityListner2
+
* Refactor ITaskActivityListener into ITaskActivationListener
+
* Move timing related methods to ITaskTimingListener
+
* <code>AbstractTaskListPresentation</code>: make API, remove coupling to <code>TaskListView</code>
+
* <code>TaskGroup</code> and <code>TaskCategory</code>: consider for API, refactor or combine
+
* consider merging <code>TaskList.removeFromCategory()</code> and <code>TaskList.removeFromQuery()</code>
+
* Move <code>TasksUiPlugin.getIncomingNotification(..)</code> and related private classes
+
* <s><code>AbstractTask.setCompleted()</code> needs changing, it has the problematic side effect of setting the completion date to the current time.  {{bug|203875}}</s>
+
* Remove <code>AbstractInterestManipulationAction.isRemove()</code>: deprecated
+
* Make <code>IMonitoredWindow</code> API and put alongside <code>IContextAwareEditor</code>
+
* Make API: <code>InteractionContextScaling</code>
+
* Rename <code>AbstractTask.RepositoryTaskSyncState</code> to <code>AbstractTask.SyncState</code> ("sync" is used commonly enough that we should be able to standardize on it in the API, replacing "synchronization/synchronize" where applicable).
+
* Add <code>InteractionContextScaling</code> parameter to <code>IInteractionContextReader.readContext(..)</code>
+
* Make a subset of <code>InteractionContextManager</code> API.
+
* Make <code>TaskRepository.getUserName()</code>, <code>getHttpUser</code> and <code>getProxyUsername</code> consistent
+
* Move highlighters stuff out of <code>ContextUiPlugin</code>
+
* Move to using the new public URLTransfer {{bug|100095}}
+
* Merge <code>IInteractionContextListener</code> and <code>IInteractionContextListener2</code>
+
* Move <code>NewTaskFromErrorAction</code> to be available to more EPP distros
+
* Delete <code>UiUtil</code>
+
* Move <code>JavaStackTraceHyperlinkDetector</code> out of java.ui See {{bug|217656}}
+
  
== Plug-in Refactorings ==
+
= Changes in 3.10 =
  
* <code>org.eclipse.mylyn.web.core</code> is now <code>org.eclipse.mylyn.commons.net</code>
+
None.
* Core classes from <code>org.eclipse.mylyn.monitor.core</code> was split in order to make API not coupled to the Monitor component be reusable independently, now in the new <code>org.eclipse.mylyn.commons.core</code> plug-in.
+
* <code>org.eclipse.mylyn.commons.ui</code> is a new API for common UI components that are not coupled to the rest of Mylyn.
+
  
== Changed Team API ==
+
= Porting from 3.8 to 3.9 =
  
* <code>org.eclipse.mylyn.tasks.core.ILinkedTaskInfo</code> is now <code>org.eclipse.mylyn.team.ui.AbstractTaskReference</code>.  <code>getComment()</code> has been renamed to <code>getText()</code>
+
== Mylyn Reviews ==
  
== New Tasks API ==
+
The Reviews framework has had a major update which resulted in changes to the core model and API. In consequence, the version was updated to 2.0.
  
* <code>AbstractRenderingEngine</code> has been added for converting Wiki syntax to HTML
+
= Porting from 3.7 to 3.8 =
  
* <code>AbstractRepositoryQueryPage</code>
+
No API changes that affect integrators.
** <code>setControlsEnabled(...)</code>: added - override to perform finer grain enablements if necessary
+
  
* <code>AbstractRepositoryTaskEditor</code> has been extended to provide HTML preview capabilities for repositories that support Wiki syntax in ticket descriptions and comments
+
= Porting from 3.6 to 3.7 =
  
== Removed Tasks API ==
+
== Mylyn Commons ==
  
* <code>AbstractAttachmentHandler</code> has been deprecated, use <code>AbstractTaskAttachmentHandler</code> instead
+
* {{bug|305782}} Restructuring of Mylyn Commons features
** <code>MESSAGE_ATTACHMENTS_NOT_SUPPORTED</code> has been removed
+
** <code>MYLAR_CONTEXT_DESCRIPTION</code> has been removed
+
** <code>MYLAR_CONTEXT_DESCRIPTION_LEGACY</code> has been removed
+
** <code>MYLAR_CONTEXT_FILENAME</code> has been removed
+
** <code>attachContextAttachments()</code> has been moved to the internal class <code>AttachmentUtil</code>
+
** <code>getContextAttachments()</code> has been moved to the internal class <code>AttachmentUtil</code>
+
** <code>hasRepositoryContext()</code> has been moved to the internal class <code>AttachmentUtil</code>
+
** <code>retrieveContext()</code> has been moved to the internal class <code>AttachmentUtil</code>
+
  
* <code>AbstractAttributeFactory</code> has been deprecated, use <code>TaskAttributeMapper</code> instead
+
The Mylyn Commons components were restructured and provisional packages were promoted to API. Several bundle IDs, package names and extension IDs were changed in the process. Classes in provisional packages were kept but marked as deprecated and will be removed in a future release. None of the changes break API backwards compatibility but integrations that consumed internal packages or extensions points may need to be adapted.
  
* <code>AbstractDuplicateDetector</code> has been moved to tasks.core
+
The following bundles were renamed:
  
* <code>AbstractRepositoryConnector</code>
+
org.eclipse.mylyn.commons.identity      -> org.eclipse.mylyn.commons.identity.core
** All methods that used deprecated types have been moved to the internal class <code>AbstractLegacyRepositoryConnector</code>. Connectors that have not been ported to the new task data architecture may extend this class to continue using old APIs. Support for the old architecture may be '''removed at any time'''.
+
org.eclipse.mylyn.commons.notifications -> org.eclipse.mylyn.commons.notifications.ui
 +
org.eclipse.mylyn.commons.repositories  -> org.eclipse.mylyn.commons.repositories.core
 +
org.eclipse.mylyn.commons.team          -> org.eclipse.mylyn.commons.repositories.ui
  
* <code>AbstractRepositoryConnectorUi</code>
+
A complete list of renamed and added bundles can be found on bug 305782 on [https://bugs.eclipse.org/bugs/show_bug.cgi?id=305782#c13 comment 13].
** <code>getNewTaskWizard(TaskRepository)</code> has been removed
+
** <code>getTaskKindLabel(RepositoryTaskData)</code> has been removed, use <code>getTaskKindLabel(AbstractTask)</code> instead
+
  
* <code>AbstractRepositoryQuery</code>
+
The following packages were renamed:
** <code>getRepositoryKind()</code> has been renamed to <code>getConnectorKind()</code>
+
  
* <code>AbstractRepositoryQueryPage</code> has been moved to <code>org.eclipse.mylyn.tasks.ui.wizards</code>
+
org.eclipse.mylyn.commons.identity    -> org.eclipse.mylyn.commons.identity.core
 +
org.eclipse.mylyn.commons.repositories -> org.eclipse.mylyn.commons.repositories.core
 +
org.eclipse.mylyn.commons.ui.team      -> org.eclipse.mylyn.commons.repositories.ui
  
* <code>AbstractTask</code>
+
The following provisional packages were promoted to API (see {{bug|360301}}):
** <code>setCompleted()</code> has been removed, a non-null completion date indicates a task is complete
+
  
* <code>AttributeContainer</code> has been deprecated, use <code>TaskAttribute</code> instead
+
org.eclipse.mylyn.internal.provisional.commons.core        -> org.eclipse.mylyn.commons.core
 +
org.eclipse.mylyn.internal.provisional.commons.ui          -> org.eclipse.mylyn.commons.ui
 +
                                                            -> org.eclipse.mylyn.commons.workbench
 +
                                                            -> org.eclipse.mylyn.commons.workbench.browser
 +
                                                            -> org.eclipse.mylyn.commons.workbench.editors
 +
                                                            -> org.eclipse.mylyn.commons.workbench.forms
 +
                                                            -> org.eclipse.mylyn.commons.workbench.search
 +
org.eclipse.mylyn.internal.provisional.commons.ui.actions  -> org.eclipse.mylyn.commons.ui
 +
org.eclipse.mylyn.internal.provisional.commons.ui.commands -> org.eclipse.mylyn.commons.workbench.texteditor
 +
org.eclipse.mylyn.internal.provisional.commons.ui.dialogs  -> org.eclipse.mylyn.commons.ui.dialogs
 +
org.eclipse.mylyn.internal.provisional.commons.ui.editor  -> org.eclipse.mylyn.commons.workbench
  
* <code>FileAttachment</code> has been deprecated, use <code>AbstractTaskAttachmentSource</code> instead
+
In some cases provisional packages do not map directly to API packages but classes were distributed among several packages.
  
* <code>GzipGetMethod</code> has been moved to an internal package
+
The following extension points have moved:
  
* <code>GzipPostMethod</code> has been moved to an internal package
+
org.eclipse.mylyn.commons.team.newWizards -> org.eclipse.mylyn.commons.repositories.ui.newWizards
  
* <code>ITaskCollector</code> has been deprecated, use <code>TaskDataCollector</code> instead
+
The following extension IDs have changed:
  
* <code>ITaskFactory</code> has been deprecated
+
org.eclipse.mylyn.commons.team.navigator.Repositories -> org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories
 +
org.eclipse.mylyn.commons.team.category              -> org.eclipse.mylyn.commons.repositories.ui.category.Team
  
* <code>QueryHitCollector</code> has been deprecated, use <code>TaskDataCollector</code> instead
+
= Porting from 3.0 to 3.6 =
  
* <code>RepositoryAttachment</code> has been deprecated, use <code>TaskAttachmentMapper</code> instead
+
See the <b>[[Mylyn/Porting Guide/3.x]]</b>
  
* <code>RepositoryOperation</code> has been deprecated, use <code>TaskOperationMapper</code> instead
+
= Porting from 2.0 to 3.0 =
  
* <code>RepositorySearchResult</code> has been moved to an internal package
+
See the <b>[[Mylyn/Porting Guide/3.0]]</b>
  
* <code>RepositoryTaskData</code> has been deprecated, use <code>TaskData</code> instead
 
  
* <code>SearchHitCollector</code> has been moved to an internal package
+
= Porting from 1.0 to 2.0 =
  
* <code>SslProtocolSocketFactory</code> has been moved to an internal package
+
See the <b>[[Mylyn Porting Guide 2.0]]</b>
 
+
* <code>TaskActivityManager</code>
+
** <code>getInstance()</code> has been removed, use <code>TasksUiPlugin.getTaskActivityManager()</code> instead
+
** <code>init()</code> has been replaced by a public constructor
+
 
+
* <code>TaskFormPage</code>
+
** <code>actionContributor</code> has been removed
+
 
+
* <code>TaskSelection</code> has been deprecated
+
 
+
* <code>TrustAllTrustManager</code> has been moved to an internal package
+
 
+
* <code>TaskListManager</code> has been moved to an internal package and replaced by <code>ITaskListManager</code>
+
** task activity related methods have been removed (see <code>TaskActivityManager</code>)
+
 
+
* <code>TaskRepositoryManager</code> has been moved to an internal package and replaced by <code>ITaskRepositoryManager</code>
+
 
+
* <code>TaskEditor</code>
+
** <code>getContributor()</code> has been removed
+
 
+
* <code>TaskList</code> has been moved to an internal package and replaced by <code>ITaskList</code>
+
 
+
* <code>TasksUiProxyChangeListener</code> has been removed
+
 
+
* <code>TasksUiUtil</code>
+
** <code>isAnimationsEnabled()</code> has been moved to the internal class <code>TasksUiInternal</code>
+
** <code>openEditor(TaskCategory)</code> has been moved to the internal class <code>TasksUiInternal</code>
+
 
+
* <code>WebCorePlugin</code> has been moved to an internal package
+
 
+
* <code>DatePicker</code> and <code>DateSelectionDialog</code> are now in <code>org.eclipse.mylyn.commons.ui</code>, constructors have changed.
+
 
+
== New Context API ==
+
 
+
* <code>AbstractFocusViewAction.updateEnablementWithContextActivation()</code>: override to return false for focus actions that are not related to context activations (e.g. the Task List).
+
 
+
* <code>AbstractFocusViewAction.setLinkingActionEnabled(boolean)</code>: should be overridden if view provides linking
+
 
+
== Removed Context API ==
+
 
+
* <code>BrowseFilteredAction</code> has been moved to an internal package
+
* <code>ContextCorePlugin</code> has been moved to an internal package and replaced by <code>ContextCore</code>
+
* <code>ContextUiPlugin</code> has been moved to an internal package and replaced by <code>ContextUi</code>
+
* <code>InteractionContextReader</code> has been moved to an internal package
+
* <code>InteractionContextWriter</code> has been moved to an internal package
+
* <code>MonitorUiPlugin</code> has been moved to an internal package and replaced by <code>MonitorUi</code>
+
* <code>ResourcesUiPlugin</code> has been moved to an internal package and replaced by <code>ResourcesUi</code>
+
 
+
== New Monitor API ==
+
 
+
* <code>MonitorUiPlugin.getMonitoredWindows()</code>: use insteand of <code>PlatformUI.getWorkbench().getWorkbenchWindows()</code>
+
* <code>MonitorUiPlugin.getLaunchingWorkbenchWindow()</code>: use to get the first active window when the monitor started.
+
 
+
== Removed Monitor API ==
+
 
+
* <code>IMylarMonitorLifecycleListener</code> has been renamed to <code>IMonitorLifecycleListener</code>
+
* <code>ReportGenerator</code> has been moved to an internal package
+

Revision as of 20:19, 27 June 2014


General

Mylyn follows the Eclipse conventions for version numbering and guarantees binary backwards compatibility for minor releases. Internals are binary backwards compatible between service releases.

API enhancements can be tracked by searching the source code for the corresponding @since JavaDoc tags or by querying for bugs that have [api] in their summary.

Changes in 3.12

Changes in 3.11

Changes in 3.10

None.

Porting from 3.8 to 3.9

Mylyn Reviews

The Reviews framework has had a major update which resulted in changes to the core model and API. In consequence, the version was updated to 2.0.

Porting from 3.7 to 3.8

No API changes that affect integrators.

Porting from 3.6 to 3.7

Mylyn Commons

  • bug 305782 Restructuring of Mylyn Commons features

The Mylyn Commons components were restructured and provisional packages were promoted to API. Several bundle IDs, package names and extension IDs were changed in the process. Classes in provisional packages were kept but marked as deprecated and will be removed in a future release. None of the changes break API backwards compatibility but integrations that consumed internal packages or extensions points may need to be adapted.

The following bundles were renamed:

org.eclipse.mylyn.commons.identity      -> org.eclipse.mylyn.commons.identity.core
org.eclipse.mylyn.commons.notifications -> org.eclipse.mylyn.commons.notifications.ui
org.eclipse.mylyn.commons.repositories  -> org.eclipse.mylyn.commons.repositories.core
org.eclipse.mylyn.commons.team          -> org.eclipse.mylyn.commons.repositories.ui

A complete list of renamed and added bundles can be found on bug 305782 on comment 13.

The following packages were renamed:

org.eclipse.mylyn.commons.identity     -> org.eclipse.mylyn.commons.identity.core
org.eclipse.mylyn.commons.repositories -> org.eclipse.mylyn.commons.repositories.core
org.eclipse.mylyn.commons.ui.team      -> org.eclipse.mylyn.commons.repositories.ui

The following provisional packages were promoted to API (see bug 360301):

org.eclipse.mylyn.internal.provisional.commons.core        -> org.eclipse.mylyn.commons.core
org.eclipse.mylyn.internal.provisional.commons.ui          -> org.eclipse.mylyn.commons.ui
                                                           -> org.eclipse.mylyn.commons.workbench
                                                           -> org.eclipse.mylyn.commons.workbench.browser
                                                           -> org.eclipse.mylyn.commons.workbench.editors
                                                           -> org.eclipse.mylyn.commons.workbench.forms
                                                           -> org.eclipse.mylyn.commons.workbench.search
org.eclipse.mylyn.internal.provisional.commons.ui.actions  -> org.eclipse.mylyn.commons.ui
org.eclipse.mylyn.internal.provisional.commons.ui.commands -> org.eclipse.mylyn.commons.workbench.texteditor
org.eclipse.mylyn.internal.provisional.commons.ui.dialogs  -> org.eclipse.mylyn.commons.ui.dialogs
org.eclipse.mylyn.internal.provisional.commons.ui.editor   -> org.eclipse.mylyn.commons.workbench

In some cases provisional packages do not map directly to API packages but classes were distributed among several packages.

The following extension points have moved:

org.eclipse.mylyn.commons.team.newWizards -> org.eclipse.mylyn.commons.repositories.ui.newWizards

The following extension IDs have changed:

org.eclipse.mylyn.commons.team.navigator.Repositories -> org.eclipse.mylyn.commons.repositories.ui.navigator.Repositories
org.eclipse.mylyn.commons.team.category               -> org.eclipse.mylyn.commons.repositories.ui.category.Team

Porting from 3.0 to 3.6

See the Mylyn/Porting Guide/3.x

Porting from 2.0 to 3.0

See the Mylyn/Porting Guide/3.0


Porting from 1.0 to 2.0

See the Mylyn Porting Guide 2.0

Back to the top