public abstract class QuickMenuCreator extends Object
Constructor and Description |
---|
QuickMenuCreator() |
Modifier and Type | Method and Description |
---|---|
protected Point |
computeMenuLocation(Control focus)
Determine the optimal point for this menu to appear.
|
protected Point |
computeMenuLocation(StyledText text)
Hook to compute the menu location if the focus widget is a styled text
widget.
|
protected Point |
computeMenuLocation(Table table)
Hook to compute the menu location if the focus widget is a table widget.
|
protected Point |
computeMenuLocation(Tree tree)
Hook to compute the menu location if the focus widget is a tree widget.
|
void |
createMenu()
Create and open the context menu.
|
void |
dispose()
Deprecated.
As of 3.5 this is not necessary as the SWT Menu created in
createMenu() will be disposed shortly after the
SWT.Hide event. |
protected abstract void |
fillMenu(IMenuManager menu)
Create the contents of the context menu.
|
public void createMenu()
protected abstract void fillMenu(IMenuManager menu)
menu
- the menu to fillprotected Point computeMenuLocation(Control focus)
focus
- the focus controlprotected Point computeMenuLocation(StyledText text)
text
- the styled text widget that has the focusnull
if now position inside the widget can be
computedprotected Point computeMenuLocation(Tree tree)
tree
- the tree widget that has the focusnull
if now position inside the widget can be
computedprotected Point computeMenuLocation(Table table)
table
- the table widget that has the focusnull
if now position inside the widget can be
computed@Deprecated public void dispose()
createMenu()
will be disposed shortly after the
SWT.Hide event.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.