import javax.security.auth.login.LoginContext;
-import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
/** Provides interaction with the CMS system. */
}
- static CmsView getCmsView(Composite parent) {
+ static CmsView getCmsView(Control parent) {
// find parent shell
Shell topShell = parent.getShell();
while (topShell.getParent() != null)
if (style == null)
return widget;// does nothing
EclipseUiSpecificUtils.setStyleData(widget, style);
- if (widget instanceof Control)
- CmsView.getCmsView(((Control) widget).getParent()).applyStyles(widget);
+ if (widget instanceof Control) {
+ CmsView.getCmsView((Control) widget).applyStyles(widget);
+ }
return widget;
}