}
};
IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
ITheme currentTheme = themeManager.getCurrentTheme();
ColorRegistry colorRegistry = currentTheme.getColorRegistry();
myScope = new Oscilloscope(6, dsp, parent, SWT.NONE, colorRegistry.get("it.baeyens.scope.color.background"),
colorRegistry.get("it.baeyens.scope.color.foreground"), colorRegistry.get("it.baeyens.scope.color.grid"));
GridData theGriddata = new GridData(SWT.FILL, SWT.FILL, true, true);
theGriddata.horizontalSpan = 7;
myScope.setLayoutData(theGriddata);
for (int i = 0; i < myScope.getChannels(); i++) {
String colorID = "it.baeyens.scope.color." + (1 + i);
Color color = colorRegistry.get(colorID);
myScope.setForeground(i, color);
}
myScope.getDispatcher(0).dispatch();
Listener listener = new Listener() {