Once the location of interest has been found, it is necessary to modify the code to attempt a fix. For example, if the developer wanted to ensure that the window's title was all in upper case, it would be necessary to inject a title.toUpperCase()
call. However, since the .class
file is read-only, it is necessary to import the plug-in's source into the workspace to change the implementation.
Using the Window | Show View | Other… menu or the Quick Access box, open the Plug-ins view from the Plug-in Development category. This will show a list of all plug-ins installed into the system.
Type
org.eclipse.swt
to scroll down the list, and select both theorg.eclipse.swt
bundle and theorg.eclipse.swt.*
fragment that corresponds to the platform. For example, on macOS this will start withorg.eclipse.swt.cocoa
, while on Windows it will start withorg.eclipse.swt.win32
; and on Linux,org.eclipse.swt.gtk
:Right-click on the selected items and choose Import As |...