|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.actions.ActionGroup org.eclipse.xtext.ui.editor.folding.FoldingActionGroup
public class FoldingActionGroup
Groups the Xtext folding actions. Initially copied from org.eclipse.jdt.internal.ui.actions.FoldingActionGroup
Constructor Summary | |
---|---|
FoldingActionGroup(org.eclipse.ui.texteditor.ITextEditor editor,
org.eclipse.jface.text.ITextViewer viewer)
Creates a new projection action group for editor . |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.eclipse.ui.actions.ActionGroup |
---|
fillActionBars, fillContextMenu, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 editorMethod Detail |
---|
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.ActionGroup
protected 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.ActionGroup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |