Package | Description |
---|---|
org.eclipse.jface.action |
Provides support for shared UI resources such as menus,
tool bars, and status lines.
|
org.eclipse.swt.widgets |
SWT widget public API classes.
|
Modifier and Type | Method and Description |
---|---|
protected String |
ActionContributionItem.shortenText(String textValue,
ToolItem item)
Shorten the given text
t so that its length doesn't exceed
the width of the given ToolItem.The default implementation replaces
characters in the center of the original string with an ellipsis ("..."). |
Modifier and Type | Method and Description |
---|---|
ToolItem |
ToolBar.getItem(int index)
Returns the item at the given, zero-relative index in the
receiver.
|
ToolItem |
ToolBar.getItem(Point point)
Returns the item at the given point in the receiver
or null if no such item exists.
|
ToolItem[] |
ToolBar.getItems()
Returns an array of
ToolItem s which are the items
in the receiver. |
Modifier and Type | Method and Description |
---|---|
int |
ToolBar.indexOf(ToolItem item)
Searches the receiver's list starting at the first item
(index 0) until an item is found that is equal to the
argument, and returns the index of that item.
|
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.