I'm developing an GEF-based editor.
It displays a diagram with a timeline and I would like to have it "scrolled" to a position corresponding to today's date when the editor opens.
I've implemented an action that scrolls the diagram but can someone help me figure out where this can be done when the editor is opened?
The "go to today" action basically does:
int todayOffset = getOffsetFromStart();
FigureCanvas canvas = (FigureCanvas) ppEditor.getGraphicalViewer().getControl();