Skip to main content

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.

Jump to: navigation, search

Nebula Breadcrumb

Revision as of 06:07, 19 March 2020 by Laurent.caron.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Back to Nebula Main Page

Introduction

Breadcrumb.png

A simple breadcrumb toolbar.

Usage

This is very simple : you instantiate a Breadcrumb object and then you create BreadcrumbItems (it works like the SWT Toolbar):

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 : BreadcrumbSnippet.java

Back to the top