I would like to change the tooltip text of an event to show the number of hours instead of the number of days. I found the possibility to change the setting in ISetting.getDefaultAdvancedTooltipText(). The default here is:
buf.append("\\ce#sd# - #ed# (#days# day(s))\n");
The control doesnt know a parameter like #hours#, so I was wondering if I could hook in somewhere to implement this on my own.
you need to implement your own IToolTipContentReplacer. As you might have already done, you create your own AbstractSettings used for your Gantt and override getToolTipContentReplacer() to return an instance of your IToolTipContentReplacer. Use your implementation of AbstractSettings on creating your GanttChart instance.
Within your IToolTipContentReplacer you simply use String replace for supporting your own custom tooltip tags like this