use of org.diirt.datasource.CompositeDataSource in project yamcs-studio by yamcs.
the class YamcsStudioWorkbenchWindowAdvisor method preWindowOpen.
@Override
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(1920, 1200));
configurer.setShowMenuBar(true);
configurer.setShowCoolBar(true);
configurer.setShowProgressIndicator(true);
configurer.setShowPerspectiveBar(false);
configurer.setShowStatusLine(true);
updateTitle();
configurer.getWindow().addPerspectiveListener(new IPerspectiveListener() {
@Override
public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) {
updateTitle();
}
@Override
public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
updateTitle();
}
});
// Workaround for text editor DND bug.
// See http://www.eclipse.org/forums/index.php/m/333816/
configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(configurer.getWindow()));
// Bootstrap DIIRT
CompositeDataSource defaultDs = (CompositeDataSource) PVManager.getDefaultDataSource();
defaultDs.putDataSource(new ParameterDataSourceProvider());
defaultDs.setConfiguration(new CompositeDataSourceConfiguration().defaultDataSource("para").delimiter("://"));
PVManager.setDefaultDataSource(defaultDs);
}
Aggregations