Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Nebula Breadcrumb"
(Created page with "=Introduction= File:Breadcrumb.png A simple breadcrumb toolbar. =Usage= This is very simple : you instantiate a Breadcrumb object and then you create BreadcrumbItems :...") |
|||
Line 4: | Line 4: | ||
A simple breadcrumb toolbar. | A simple breadcrumb toolbar. | ||
+ | |||
+ | __TOC__ | ||
=Usage= | =Usage= |
Revision as of 09:14, 18 February 2018
Introduction
A simple breadcrumb toolbar.
Contents
Usage
This is very simple : you instantiate a Breadcrumb object and then you create BreadcrumbItems :
final Breadcrumb bc = new Breadcrumb(shell, breadCrumbArgument); final BreadcrumbItem item = new BreadcrumbItem(bc, SWT.PUSH); item.setText("Text");
And voilà!
The BreadcrumbItem can be labels (style SWT.NONE), buttons (style SWT.PUSH) or toggle buttons (style SWT.TOGGLE).
Examples
An example called BreadcrumbSnippet.java is located in the plugin org.eclipse.nebula.widgets.opal.breadcrumb.snippets.
This example is also available here : https://git.eclipse.org/c/nebula/org.eclipse.nebula.git/tree/widgets/opal/breadcrumb/org.eclipse.nebula.widgets.opal.breadcrumb.snippets/src/org/eclipse/nebula/widgets/opal/breadcrumb/snippets/BreadcrumbSnippet.java