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 19: | Line 19: | ||
* <code>TaskEditor</code> | * <code>TaskEditor</code> | ||
** <code>protected void pageChange(intNewPageIndex)</code> method removed (only called super) | ** <code>protected void pageChange(intNewPageIndex)</code> method removed (only called super) | ||
+ | * <code>ITaskEditorFactory</code> | ||
+ | ** <code>getId()</code> method must be implemented (see Javadoc, note that this might move to extension points, bug 172695) | ||
== 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 15:01, 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)
-
-
ITaskEditorFactory
-
getId()
method must be implemented (see Javadoc, note that this might move to extension points, bug 172695)
-
Context Framework
-
AbstractContextStore
-
notifyContextStoreMoved()
: change tocontextStoreMoved()
-