Skip to main content



      Home
Home » Newcomers » Newcomers » Using sleak with an eclipse-RCP-application
Using sleak with an eclipse-RCP-application [message #244611] Thu, 03 January 2008 10:58 Go to next message
Eclipse UserFriend
Hello,

I have some doubt about resource allocation in my application based on
eclipse-rcp, so I found sleak for monitoring SWT graphics
resources(http://www.eclipse.org/articles/swt-design-2/sleak.htm).

The problem I have is, that I can't instantiate a Display-Object as
described in the sleak-documentation:

DeviceData data = new DeviceData();
data.tracking = true;
Display display = new Display(data);
Sleak sleak = new Sleak();
sleak.open();

The problem is, that the Display-Object is created like this in the
Application.java-Class of my RCP-Application:

Display display = PlatformUI.createDisplay();

It is not possible, to pass a DeviceData-Object to the
createDisplay()-method.

When I start slek, i just get the following warning: Device is not
tracking resource allocation

Could anyone please tell me, how I can configure sleak or my app, that I
can use sleak?

Thank you in advance,
Rudi
Re: Using sleak with an eclipse-RCP-application [message #1232097 is a reply to message #244611] Thu, 16 January 2014 03:21 Go to previous messageGo to next message
Eclipse UserFriend
Policy.DEBUG_SWT_GRAPHICS = true;
Policy.DEBUG_SWT_DEBUG = true;
Display display = PlatformUI.createDisplay();
Sleak sleak = new Sleak();
sleak.open();
Re: Using sleak with an eclipse-RCP-application [message #1237795 is a reply to message #1232097] Thu, 30 January 2014 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I have the same Problem
I use eclipse RCP 4.3 and my app. is e4 I can not find the class where the display is created...

There is a Vogella tutorial but it did not work for me.

so if anyone has an idea ... or better a solution for the Problem .
Re: Using sleak with an eclipse-RCP-application [message #1702528 is a reply to message #1237795] Wed, 22 July 2015 18:59 Go to previous message
Eclipse UserFriend
See if this FAQ helps.

https://wiki.eclipse.org/Eclipse4/RCP/FAQ#How_to_use_Sleak_in_e4AP

[Updated on: Wed, 22 July 2015 18:59] by Moderator

Previous Topic:Where did Sleak.open() go?
Next Topic:The Script dispersed on me
Goto Forum:
  


Current Time: Wed May 21 00:40:21 EDT 2025

Powered by FUDForum. Page generated in 0.08956 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top