public class FoldingActionGroup
extends org.eclipse.ui.actions.ActionGroup
| Constructor and Description |
|---|
FoldingActionGroup(org.eclipse.ui.texteditor.ITextEditor editor,
org.eclipse.jface.text.ITextViewer viewer)
Creates a new projection action group for
editor. |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.ui.texteditor.TextEditorAction |
createToggleFoldingAction(org.eclipse.ui.texteditor.ITextEditor editor) |
void |
dispose() |
void |
fillMenu(org.eclipse.jface.action.IMenuManager manager)
Fills the menu with all folding actions.
|
protected boolean |
isEnabled()
Returns
true if the group is enabled. |
protected void |
update()
Updates the actions.
|
void |
updateActionBars() |
public FoldingActionGroup(org.eclipse.ui.texteditor.ITextEditor editor,
org.eclipse.jface.text.ITextViewer viewer)
editor. If the supplied viewer is not an instance of
ProjectionViewer, the action group is disabled.editor - the text editor to operate onviewer - the viewer of the editorprotected org.eclipse.ui.texteditor.TextEditorAction createToggleFoldingAction(org.eclipse.ui.texteditor.ITextEditor editor)
protected boolean isEnabled()
true if the group is enabled.
Invariant: isEnabled() <=> fViewer and all actions are != null.
true if the group is enabledpublic void dispose()
dispose in class org.eclipse.ui.actions.ActionGroupprotected void update()
public void fillMenu(org.eclipse.jface.action.IMenuManager manager)
manager - the menu manager for the folding submenupublic void updateActionBars()
updateActionBars in class org.eclipse.ui.actions.ActionGroupCopyright © 2016. All Rights Reserved.