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.
Difference between revisions of "Mylyn/Porting Guide"
< Mylyn
(→Tasks Framework) |
(→Tasks Framework) |
||
Line 5: | Line 5: | ||
== Tasks Framework == | == Tasks Framework == | ||
* <code>AbstractRepositoryConnectorUi</code> | * <code>AbstractRepositoryConnectorUi</code> | ||
− | ** <code>openRemoteTask(String repositoryUrl, String id)</code>: removed, this method no longer needs to be implemented by the connector. Instead classes can rely on the new <code>openRepositoryTask(..) method, and override it if necessary. | + | ** <code>openRemoteTask(String repositoryUrl, String id)</code>: removed, this method no longer needs to be implemented by the connector. Instead classes can rely on the new <code>openRepositoryTask(..)</code> method, and override it if necessary. |
* <code>ITaskListElement</code>: now extends <code>java.lang.Comparable</code>, so Collections support of sorting can be used, since task list elements have a natural ordering. Default implementations are provided for tasks and containers. ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=171590 bug 171590]) | * <code>ITaskListElement</code>: now extends <code>java.lang.Comparable</code>, so Collections support of sorting can be used, since task list elements have a natural ordering. Default implementations are provided for tasks and containers. ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=171590 bug 171590]) | ||
* <code>TasksUiUtil</code> | * <code>TasksUiUtil</code> | ||
Line 15: | Line 15: | ||
** When returning <code>CoreException</code> pass in a <code>MylarStatus</code> with appropriate code (see <code>IMylarStatusConstants</code>). | ** When returning <code>CoreException</code> pass in a <code>MylarStatus</code> with appropriate code (see <code>IMylarStatusConstants</code>). | ||
** If <code>IMylarStatusConstants.INTERNAL_ERROR</code> is sent to <code>MylarStatusHandler.displayStatus</code> an error dialog will appear and the error will be logged. | ** If <code>IMylarStatusConstants.INTERNAL_ERROR</code> is sent to <code>MylarStatusHandler.displayStatus</code> an error dialog will appear and the error will be logged. | ||
− | + | * <code>ITaskDataHandler</code> | |
− | * ITaskDataHandler | + | ** <code>getChangedSinceLastSync()</code> method moved to <code>AbstractRepositoryConnector</code> |
+ | * <code>TaskEditor</code> | ||
+ | ** <code>protected void pageChange(intNewPageIndex)</code> method removed (only called super) | ||
== Context Framework == | == Context Framework == | ||
* <code>AbstractContextStore</code> | * <code>AbstractContextStore</code> | ||
** <code>notifyContextStoreMoved()</code>: change to <code>contextStoreMoved()</code> | ** <code>notifyContextStoreMoved()</code>: change to <code>contextStoreMoved()</code> |
Revision as of 14:53, 2 February 2007
This document will have Mylar 2.0 specific API changes added to it as we make them. If interested in keeping up with these changes we suggest setting a watch for this page.
Porting from Mylar 1.0 to 2.0
Tasks Framework
-
AbstractRepositoryConnectorUi
-
openRemoteTask(String repositoryUrl, String id)
: removed, this method no longer needs to be implemented by the connector. Instead classes can rely on the newopenRepositoryTask(..)
method, and override it if necessary.
-
-
ITaskListElement
: now extendsjava.lang.Comparable
, so Collections support of sorting can be used, since task list elements have a natural ordering. Default implementations are provided for tasks and containers. (bug 171590) -
TasksUiUtil
-
openUrl(String url)
: moved toopenBrowser(String url)
-
-
Task
-
getTooltipText()
: deleted, not used
-
-
MylarStatus
(place holder, will improve as we solidify this)-
MylarStatusHandler.displayStatus(dialog title, IStatus status)
- call to display error and information dialogs - When returning
CoreException
pass in aMylarStatus
with appropriate code (seeIMylarStatusConstants
). - If
IMylarStatusConstants.INTERNAL_ERROR
is sent toMylarStatusHandler.displayStatus
an error dialog will appear and the error will be logged.
-
-
ITaskDataHandler
-
getChangedSinceLastSync()
method moved toAbstractRepositoryConnector
-
-
TaskEditor
-
protected void pageChange(intNewPageIndex)
method removed (only called super)
-
Context Framework
-
AbstractContextStore
-
notifyContextStoreMoved()
: change tocontextStoreMoved()
-