Mylyn/Porting Guide
From Eclipsepedia
< Mylyn
NOTE: Mylyn 3.0 changes are currently in progress, and we recommend building against the 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.
Contents |
Porting from 1.0 to 2.0
See the Mylyn Porting Guide 2.0
Porting from 2.0 to 3.0
Migrating Data
- Migration of LastReadTimeStamp
- Migration of date formats when using attribute mappers
- Migration of TaskData
Plug-in Refactorings
-
org.eclipse.mylyn.web.coreis noworg.eclipse.mylyn.commons.net - Core classes from
org.eclipse.mylyn.monitor.corewas split in order to make API not coupled to the Monitor component be reusable independently, now in the neworg.eclipse.mylyn.commons.coreplug-in. -
org.eclipse.mylyn.commons.uiis a new API for common UI components that are not coupled to the rest of Mylyn.
Changed Extension Points
-
org.eclipse.mylyn.tasks.ui.editors-
hyperLinkDetectorhas been removed, useorg.eclipse.ui.workbench.texteditor.hyperlinkDetectorsinstead and settargetIdtoorg.eclipse.mylyn.tasks.ui.TaskEditor -
editorFactoryhas been removed, usepageFactoryinstead
-
-
repositories-
taskListFactoryhas been removed, usetaskListMirgratorinstead -
connectorCore-
userManagedhas been removed, overrideisUserManaged()inAbstractRepositoryConnectorinstead
-
-
connectorUi-
customNotificationshas been removed, overrideisCustomNotification()inAbstractRepositoryConnectorUiinstead
-
-
Changed Team API
-
org.eclipse.mylyn.tasks.core.ILinkedTaskInfois noworg.eclipse.mylyn.team.ui.AbstractTaskReference-
getComment()has been renamed togetText()
-
New Tasks API
-
AbstractRenderingEnginehas been added for converting Wiki syntax to HTML
-
AbstractRepositoryQueryPage-
setControlsEnabled(...): added - override to perform finer grain enablements if necessary
-
-
AbstractRepositoryTaskEditorhas been extended to provide HTML preview capabilities for repositories that support Wiki syntax in ticket descriptions and comments
Removed Tasks API
-
AbstractAttachmentHandlerhas been removed, useAbstractTaskAttachmentHandlerinstead-
MESSAGE_ATTACHMENTS_NOT_SUPPORTEDhas been removed -
MYLAR_CONTEXT_DESCRIPTIONhas been removed -
MYLAR_CONTEXT_DESCRIPTION_LEGACYhas been removed -
MYLAR_CONTEXT_FILENAMEhas been removed -
attachContextAttachments()has been moved to the internal classAttachmentUtil -
getContextAttachments()has been moved to the internal classAttachmentUtil -
hasRepositoryContext()has been moved to the internal classAttachmentUtil -
retrieveContext()has been moved to the internal classAttachmentUtil
-
-
AbstractAttributeFactoryhas been removed, useTaskAttributeMapperinstead
-
AbstractDuplicateDetectorhas been moved to tasks.core
-
AbstractEditQueryWizardhas been renamed toAbstractRepositoryQueryWizard
-
AbstractNewRepositoryTaskEditorhas been removed, useAbstractTaskEditorPageinstead
-
AbstractRepositoryConnector- All methods that used removed types have been moved to the internal class
AbstractLegacyRepositoryConnector. 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.
- All methods that used removed types have been moved to the internal class
-
AbstractRepositoryConnectorUi-
forceSubtaskHierarchy()has been removed, overridehasStrictSubtaskHierarchy()instead -
getLegendItems()has been renamed togetLegendElements() -
getNewTaskWizard(TaskRepository)has been removed, usegetNewTaskWizard(TaskRepository, ITaskMapping)instead -
getTaskKindLabel(RepositoryTaskData)has been removed -
getTaskListElementIcon()has been removed, overridegetImageDescriptor()instead -
isCustomNotificationHandling()has been removed, overridehasCustomNotificationHandling()instead -
openEditQueryDialog(AbstractRepositoryQuery)has been moved to the internal classTasksUiInternal -
openRepositoryTask()has been moved to the internal classTasksUiInternal -
setCustomNotificationHandling()has been removed, overridehasCustomNotificationHandling()instead -
supportsDueDates(AbstractTask)has been removed, overrideAbstractRepositoryConnector.hasRepositoryDueDate()instead
-
-
AbstractRepositoryQueryhas been removed, useIRepositoryQueryinstead-
getRepositoryKind()has been renamed togetConnectorKind()
-
-
AbstractRepositoryQueryPagehas been moved toorg.eclipse.mylyn.tasks.ui.wizards
-
AbstractRepositoryTaskEditorhas been removed, useAbstractTaskEditorPageinstead
-
AbstractRepositoryQueryWizardhas been removed, useRepositoryQueryWizardinstead
-
AbstractTaskhas been removed, useITaskinstead-
hasValidUrl()has been moved toTasksUiInternal.isValidUrl() -
setCompleted()has been removed, a non-null completion date indicates a task is complete
-
-
AttributeContainerhas been removed, useTaskAttributeinstead
-
AuthenticatedProxyhas been moved to an internal package
-
DatePickerhas been moved toorg.eclipse.mylyn.commons.ui
-
DateSelectionDialoghas been moved toorg.eclipse.mylyn.commons.ui
-
FileAttachmenthas been removed, useAbstractTaskAttachmentSourceinstead
-
GzipGetMethodhas been moved to an internal package
-
GzipPostMethodhas been moved to an internal package
-
IStatusHandlerhas been removed, useAbstractErrorReporterinstead
-
ITaskCollectorhas been removed, useTaskDataCollectorinstead
-
ITaskFactoryhas been removed
-
ITaskRepositoryListenerhas been renamed toIRepositoryListener
-
ITaskListChangeListenerhas been moved to an internal package
-
NewTaskEditorInputhas been removed, useTaskEditorInputinstead
-
QueryHitCollectorhas been removed, useTaskDataCollectorinstead
-
RepositoryAttachmenthas been removed, useTaskAttachmentMapperinstead
-
RepositoryOperationhas been removed, useTaskOperationMapperinstead
-
RepositorySearchResulthas been moved to an internal package
-
RepositoryTaskDatahas been removed, useTaskDatainstead
-
RepositoryTaskEditorInputhas been removed, useTaskEditorInputinstead
-
SearchHitCollectorhas been moved to an internal package
-
SslProtocolSocketFactoryhas been moved to an internal package
-
StatusHandler-
addDefaultStatusHandler(IStatusHandler)has been removed -
addStatusHandler(IStatusHandler)has been removed -
fail(Throwable,String,boolean)has been removed -
fail(Throwable,String,boolean,int)has been removed -
getDefaultStatusHandler()has been removed -
getStatusHandler()has been removed -
log(String,Object)has been removed -
log(Throwable,String)has been removed -
setDefaultStatusHandler(IStatusHandler)has been removed -
removeStatusHandler(IStatusHandler)has been removed
-
-
TaskActivityManager-
getInstance()has been removed, useTasksUiPlugin.getTaskActivityManager()instead -
init()has been replaced by a public constructor
-
-
TaskFormPage-
actionContributorhas been removed
-
-
TaskFactoryhas been removed
-
TaskListManagerhas been moved to an internal package and replaced byITaskListManager- task activity related methods have been removed (see
TaskActivityManager)
- task activity related methods have been removed (see
-
TaskRepositoryManagerhas been moved to an internal package and replaced byITaskRepositoryManager
-
TaskEditor-
configureContextMenuManager(MenuManager,TextViewer)has been removed -
getAdapterDelegate()has been removed -
getContributor()has been removed -
refreshEditorContents()has been renamed torefreshPages()
-
-
TaskListhas been moved to an internal package and replaced byITaskList
-
TaskSelectionhas been removed, useITaskMappinginstead
-
TasksUiProxyChangeListenerhas been removed
-
TasksUiUtil-
closeEditorInActivePage(ITask,boolean)has been moved to the internal classTasksUiInternal -
getActiveRepositoryTaskEditor()has been moved to the internal classTasksUiInternal -
isAnimationsEnabled()has been moved to the internal classTasksUiInternal -
openEditor(TaskCategory)has been moved to the internal classTasksUiInternal -
openEditor(AbstractTask, boolean)has been replaced byopenTask(ITask) -
openEditor(AbstractTask, boolean, boolean)has been replaced byopenTask(ITask) -
openEditor(AbstractTask, String)has been replaced byopenTask(ITask) -
openUrl(String, boolean)has been replaced byopenTask(String)andopenUrl(String) -
refreshAndOpenTaskListElement()has been moved to the internal classTasksUiInternal -
showPreferencesPage(String, IPreferencePAge)has been removed
-
-
TrustAllTrustManagerhas been moved to an internal package
-
WebClientLoghas been removed
-
WebClientUtilhas been removed, useWebUtilinstead
-
WebCorePluginhas been moved to an internal package
-
WebHyperlinkhas been moved to an internal package
New Context API
-
AbstractFocusViewAction.updateEnablementWithContextActivation(): override to return false for focus actions that are not related to context activations (e.g. the Task List).
-
AbstractFocusViewAction.setLinkingActionEnabled(boolean): should be overridden if view provides linking
Removed Context API
-
ActivityTimerThreadhas been removed -
BrowseFilteredActionhas been moved to an internal package -
ContextCorePluginhas been moved to an internal package and replaced byContextCore -
ContextUiPluginhas been moved to an internal package and replaced byContextUi -
IActivityTimerListenerhas been removed -
IInteractionContextListenerhas been renamed toAbstractContextListener -
InteractionContextReaderhas been moved to an internal package -
InteractionContextWriterhas been moved to an internal package -
MonitorUiPluginhas been moved to an internal package and replaced byMonitorUi -
ResourcesUiPluginhas been moved to an internal package and replaced byResourcesUi - The active/auto folding preference has been removed, you can reuse the one from JavaUiBridgePlugin or use your own preference
New Monitor API
-
MonitorUiPlugin.getMonitoredWindows(): use insteand ofPlatformUI.getWorkbench().getWorkbenchWindows() -
MonitorUiPlugin.getLaunchingWorkbenchWindow(): use to get the first active window when the monitor started.
Removed Monitor API
-
IMylarMonitorLifecycleListenerhas been renamed toIMonitorLifecycleListener -
ReportGeneratorhas been moved to an internal package
Pending Changes
This list is stale. Also see all source code tags titled "API-3.0"
- Refactor
TaskActivationHistoryinto aTaskActivityManagerthat encapsulates both activity monitoring and activation history - Merge ITaskActivityListener and ITaskActivityListner2
- Refactor ITaskActivityListener into ITaskActivationListener
- Move timing related methods to ITaskTimingListener
- Make
IMonitoredWindowAPI and put alongsideIContextAwareEditor - Make API:
InteractionContextScaling - Add
InteractionContextScalingparameter toIInteractionContextReader.readContext(..) - Make a subset of
InteractionContextManagerAPI.

