Skip to content

Breadcrumb

Wim Jongman edited this page Oct 17, 2024 · 1 revision

Introduction

A simple breadcrumb toolbar.

Breadcrumb

Usage

This is very simple: you instantiate a Breadcrumb object and then 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