Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Using sleak with an eclipse-RCP-application
Using sleak with an eclipse-RCP-application [message #244611] Thu, 03 January 2008 15:58 Go to next message
Rudi Missing name is currently offline Rudi Missing name
Messages: 17
Registered: July 2009
Junior Member
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 08:21 Go to previous messageGo to next message
Michael Kirchmann is currently offline Michael Kirchmann
Messages: 1
Registered: January 2014
Junior Member
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 16:03 Go to previous message
Gerald Meier is currently offline Gerald Meier
Messages: 1
Registered: January 2014
Junior Member
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 .
Previous Topic:New ADK installation - where is javadoc.exe?
Next Topic:PYTHON / ECLIPSE
Goto Forum:
  


Current Time: Sun Sep 21 14:24:44 GMT 2014

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

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