Skip to main content


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 nameFriend
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 KirchmannFriend
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 messageGo to next message
Gerald Meier is currently offline Gerald MeierFriend
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 .
Re: Using sleak with an eclipse-RCP-application [message #1702528 is a reply to message #1237795] Wed, 22 July 2015 22:59 Go to previous message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
See if this FAQ helps.

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


Oxygen 3a
Windows 10

[Updated on: Wed, 22 July 2015 22:59]

Report message to a moderator

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


Current Time: Thu Apr 25 07:11:10 GMT 2024

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

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

Back to the top