To debug the platform, make sure that at least one plug-in project is open and that it depends on the plug-ins that need to be debugged. This allows the editor to be opened for any of the classes for debugging.
Ensure that a plug-in that uses the Eclipse UI is open in the workspace, such as
com.packtpub.e4.hello.ui
orcom.packtpub.e4.clock.ui
. This will ensure that the platform classes are available.Use the Navigate | Open Type menu or press Ctrl + Shift + T (Cmd + Shift + T on macOS) to open the Open Type search dialog. Type in
Shell
and select the Shell from theorg.eclipse.swt.widgets
package. Double-click or click on OK to open the file.Tip
If the source code isn't shown, verify that the Eclipse Platform Plug-in Developer Resources plug-in has been installed and that there is an open plug-in project that depends on
org.eclipse.ui
ororg.eclipse.swt
. If the Open Type menu isn't shown, switch to the Java perspective or the Java Browsing perspective...