public static Window createDialog(Shell parentShell, Point origin, IConfigDialogContent content) {
boolean popup = Activator.getDefault().getPreferenceStore().getBoolean(IPreferenceConstants.P_CONFIG_POPUP);
if(popup) {
return new PopupConfigDialog(parentShell, origin, content);
} else {
return new TitleAreaConfigDialog(parentShell, content);
}
}