use of eu.esdihumboldt.hale.ui.util.selection.SelectionTrackerImpl in project hale by halestudio.
the class ApplicationWorkbenchWindowAdvisor method postWindowOpen.
/**
* @see WorkbenchWindowAdvisor#postWindowOpen()
*/
@Override
public void postWindowOpen() {
// register selection tracker if none is defined yet
SelectionTracker tracker = SelectionTrackerUtil.getTracker();
if (tracker == null) {
// create tracker listening on window selection service
tracker = new SelectionTrackerImpl(getWindowConfigurer().getWindow().getSelectionService());
SelectionTrackerUtil.registerTracker(tracker);
}
// XXX do the following somewhere else:
// start instance validation service
PlatformUI.getWorkbench().getService(InstanceValidationService.class);
if (action != null) {
action.onOpenWorkbenchWindow();
// only do this once
action = null;
}
}
Aggregations