public int getToolTipTimeDisplayed(Object object) {
return 5000;
}
});
deckViewer.activateCustomTooltips();
CardDragSourceAdapter sourceListener = new CardDragSourceAdapter(deckViewer);
deckViewer.addDragSupport(DND.DROP_COPY | DND.DROP_MOVE,
new Transfer[] { sourceListener.getTransfer() }, sourceListener);
CardDropTargetAdapter dropListener = new CardDropTargetAdapter(deckViewer);
dropListener.setScrollExpandEnabled(true);
dropListener.setFeedbackEnabled(true);
deckViewer.addDropSupport(DND.DROP_COPY | DND.DROP_MOVE,
new Transfer[] { sourceListener.getTransfer(), CardTemplateTransfer.getInstance() }, dropListener);
deckViewer.setContentProvider(new DeckContentProvider());
getSite().setSelectionProvider(deckViewer);