Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Team FAQ"
(→I have an IHistoryPage implementation. How do I hook it up into the History View?) |
(→How do I add drag-and-drop for my IHistoryPage?) |
||
Line 19: | Line 19: | ||
==== How do I add drag-and-drop for my IHistoryPage? ==== | ==== How do I add drag-and-drop for my IHistoryPage? ==== | ||
+ | |||
+ | * The ''Generic History View'' supplies a '''GenericHistoryDropAdapter''' which will handle DND for all IResources. | ||
+ | * If you wish to add handling of custom objects, you need to provide an implementation of '''IDropActionDelegate''' and extend the | ||
+ | ''org.eclipse.ui.dropActions'' extension point. |
Revision as of 15:19, 19 June 2006
- Team Wiki page
- TeamMain page
Contents
Team API Questions
History API
I have an IHistoryPage implementation. How do I hook it up into the History View?
You have a number of options here:
- Provide your own action that will show your object in the History View. You can get a handle to the History View by calling TeamUI.getHistoryView().You then call IHistoryView.showHistoryFor(Object) and pass the object that your action is triggered from.
- Supply your own drag and drop adapter (see below)
What is the lifecyle of an IHistoryPage?
How do I add drag-and-drop for my IHistoryPage?
- The Generic History View supplies a GenericHistoryDropAdapter which will handle DND for all IResources.
- If you wish to add handling of custom objects, you need to provide an implementation of IDropActionDelegate and extend the
org.eclipse.ui.dropActions extension point.