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
Eclipse UserFriend
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
Eclipse UserFriend
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
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Feb 08 17:43:04 GMT 2025

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

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

Back to the top