You may be able to just get around this extra code by executing the command (IWorkbenchCommandConstants.WINDOW_PREFERENCES) via the IHandlerService. Otherwise, you can also pop it up using the PreferencesUtil class's static methods.