Skip to main content
Jump to: navigation, search

Difference between revisions of "Nebula Breadcrumb"

Line 1: Line 1:
 +
[[Nebula|< Back to Nebula Main Page]]
 +
 
=Introduction=
 
=Introduction=
  
Line 25: Line 27:
  
 
This example is also available here :
 
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
+
[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 BreadcrumbSnippet.java]

Revision as of 08:55, 21 February 2018

< 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 :

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