|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITreeContextualAction
Defines contextual actions used on a TreeViewer. $Id: ITreeContextualAction.java 2738 2007-03-28 13:12:27 +0000 (mer., 28 mars 2007) plegall $
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.action.IAction |
|---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
| Method Summary | |
|---|---|
java.lang.Class |
getClassForDoubleClick()
Defines the Class on wich this action is launch by double-click. |
int |
getLevel()
|
void |
init(org.eclipse.jface.viewers.TreeViewer viewer,
org.eclipse.jface.viewers.IStructuredSelection selection)
Initialise the action on a given tree with the actual selection. |
boolean |
isDoubleClickAction()
Specifies if this action can be launch by double-click. |
boolean |
isEditAction()
|
boolean |
isReadAction()
|
boolean |
isVisible()
|
void |
setEditAction(boolean editAction)
|
void |
setLevel(int level)
|
void |
setReadAction(boolean readAction)
|
| Methods inherited from interface org.eclipse.jface.action.IAction |
|---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Method Detail |
|---|
void init(org.eclipse.jface.viewers.TreeViewer viewer,
org.eclipse.jface.viewers.IStructuredSelection selection)
setEnabled method to anable/disable this action for the current selection.
viewer - - The tree.selection - - Actual selection in the tree.boolean isDoubleClickAction()
true if this action can be launch by double-click.java.lang.Class getClassForDoubleClick()
boolean isVisible()
int getLevel()
void setLevel(int level)
boolean isEditAction()
void setEditAction(boolean editAction)
boolean isReadAction()
void setReadAction(boolean readAction)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||