Search in sources :

Example 1 with SelectionTrackerImpl

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;
    }
}
Also used : SelectionTracker(eu.esdihumboldt.hale.ui.util.selection.SelectionTracker) SelectionTrackerImpl(eu.esdihumboldt.hale.ui.util.selection.SelectionTrackerImpl)

Aggregations

SelectionTracker (eu.esdihumboldt.hale.ui.util.selection.SelectionTracker)1 SelectionTrackerImpl (eu.esdihumboldt.hale.ui.util.selection.SelectionTrackerImpl)1