Community
Participate
Working Groups
The class org.eclipse.jdt.internal.debug.ui.IJDIPreferencesConstants is marked as internal. MTJ uses this class to automatically configure the default JDI request timeout value using the JDIDebugModel.PREF_REQUEST_TIMEOUT constant. Could IJDIPreferencesConstants be considered for inclusion in the JDT UI API?
>Could IJDIPreferencesConstants be considered for inclusion in the JDT UI API? This is in JDT Debug.
I don't understand the request. JDIDebugModel.PREF_REQUEST_TIMEOUT is API - how/why do you need to use the internal constants?
Sorry, I've put the wrong constant in the bug report. We are actually using JDIPreferencesConstants.PREF_SUSPEND_ON_UNCAUGHT_EXCEPTIONS and JDIPreferencesConstants.PREF_SUSPEND_ON_COMPILATION_ERRORS to configure the debugger settings to correctly work with mobile sdks. Is there a way to programaticaly configure this preferences without using this constants?
Currently, there is no API for these settings. Looking at the implementation, it should probably be improved if an API is required. The debug target itself should have options to control whether to suspend on compilation errors/exceptions. Currently, this is acheived via preferences and the UI plug-in which creates associated breakpoints. As the API freeze is upon us, this won't be done until a later release.