Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Show Heap Status without preferences
Show Heap Status without preferences [message #331356] Wed, 03 September 2008 13:46 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

I want to show the Heap status of my RCP without offering the preferences
in my app. Normaly one would simply check Preferences - General - Show
Heap Status to get it. Since I do not offer the preferences and want to
show the status as default in the status line I wonder if it is posssible
to ad it via org.eclipse.menus?
Or some other trick?

Thank,
Jan Kohnert
Re: Show Heap Status without preferences [message #331363 is a reply to message #331356] Wed, 03 September 2008 16:29 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

On Wed, 3 Sep 2008 13:46:35 +0000 (UTC), jko@swisslab.de (Jan Kohnert)
wrote:

>Hello,
>
>I want to show the Heap status of my RCP without offering the preferences
>in my app. Normaly one would simply check Preferences - General - Show
>Heap Status to get it. Since I do not offer the preferences and want to
>show the status as default in the status line I wonder if it is posssible
>to ad it via org.eclipse.menus?
>Or some other trick?
>
>Thank,
>Jan Kohnert


You should be able to provide a default preference value. This default
values are stored somewhere in the configuration directory if memory
serves right.


Achim
--
Achim Lörke

Eclipse-Stammtisch in the Braunschweig, Germany area:
http://www.bredex.de/de/news/events.html


Achim Lörke

Re: Show Heap Status without preferences [message #331379 is a reply to message #331363] Thu, 04 September 2008 06:20 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Thank you Achim!

It can be done by writing into the plugin_customization.ini (if you
dont'nt have one just create it)
org.eclipse.ui/SHOW_MEMORY_MONITOR = true

Jan
Re: Show Heap Status without preferences [message #331385 is a reply to message #331363] Thu, 04 September 2008 08:36 Go to previous message
lembas  is currently offline lembas Friend
Messages: 13
Registered: July 2009
Junior Member
In ApplicationWorkbenchWindowAdvisor.java, add this method

public void preWindowOpen() {
PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenc eConstants.SHOW_MEMORY_MONITOR,
true);
}

"Achim L
Previous Topic:Update manager from command line
Next Topic:TableViewer contributing to TabbedPropertysheetPage
Goto Forum:
  


Current Time: Fri Aug 16 23:07:38 GMT 2024

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

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

Back to the top