Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Nebula HeapManager"
m |
|||
Line 11: | Line 11: | ||
==Usage== | ==Usage== | ||
− | In order to add this widget in your GUI, you just have to instantiate the widget with the | + | In order to add this widget in your GUI, you just have to instantiate the widget with the relevant parent |
− | If you want to change the look of the widget, you can play with the following properties : | + | If you want to change the look of the widget, you can play with the following properties (by calling the associated setter) : |
* barBorderColor | * barBorderColor | ||
* barInnerColor | * barInnerColor | ||
Line 25: | Line 25: | ||
An example called HeapManagerSnippet.java is available in the plug-in org.eclipse.nebula.widgets.opal.heapmanager.snippets. | An example called HeapManagerSnippet.java is available in the plug-in org.eclipse.nebula.widgets.opal.heapmanager.snippets. | ||
− | This example is also available here : [https:// | + | This example is also available here : [https://github.com/eclipse/nebula/blob/master/widgets/opal/heapmanager/org.eclipse.nebula.widgets.opal.heapmanager.snippets/src/org/eclipse/nebula/widgets/opal/heapmanager/snippets/HeapManagerSnippet.java HeapManagerSnippet.java] |
Latest revision as of 06:28, 19 March 2020
Introduction
A widget that displays the available heap size, the current heap size and a button to perform a Garbage Collecting.
Contents
Usage
In order to add this widget in your GUI, you just have to instantiate the widget with the relevant parent
If you want to change the look of the widget, you can play with the following properties (by calling the associated setter) :
- barBorderColor
- barInnerColor
- barTextColor
- barGradientColorTopStart
- barGradientColorTopEnd
- barGradientColorMiddleStart
Example
An example called HeapManagerSnippet.java is available in the plug-in org.eclipse.nebula.widgets.opal.heapmanager.snippets.
This example is also available here : HeapManagerSnippet.java