Two great tools to help your SWT application development

SWT teams has provided two great tools to help you develop your SWT applications. Just follow the installation procedure and you should be OK.

The standard Java Profiler like one from YourKit or JProfiler are not really usable in SWT environment, especially for part where GUI is involved. For just one example, the memory detection of those profilers show you a different number compared to the one you see from Windows Task Manager.

Sleak is a tool you can use to detect memory leak in SWT. For example, if you forgot to dispose some of your system resources, you can use this tool to help you find the culprit.

sleak

From the picture above, you can ‘Snap’ all the used system resources and get all new resources from the last time you clicked ‘Snap’ by clicking ‘Diff’. If the total number of resources is constantly increasing, you can suspect that there is a leak on your SWT application. By clicking each resource on the combo box, you will see the representation of this resource on the right panel. Once you found resources that should have already been disposed, go back to your code and do the necessary fix. Isn’t that great?

The second tool available is SWT Spy. This is a view plugin that allow you to get the information about a widget that is below your mouse cursor. If you ever wondered what widget is used in a view and how is the configuration to make it look like what you see, this plugin will help you a lot about it.

swt_spy

More about these tools:

  1. Use the SWT Development Tools

Related posts:

  1. SWT: Composite as filler
  2. Eclipse Tips: Debugging your multi-thread application
  3. Using Eclipse WTP for developing application under Websphere Application Server Community Edition (WAS CE)
  4. Eclipse RCP Tips: Drawing dash line
  5. Having memory problem with Firefox? Use Flock!

0 Responses to “Two great tools to help your SWT application development”


  • No Comments

Leave a Reply