1 11 package org.eclipse.ant.internal.ui.editor.actions; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.text.source.IVerticalRulerInfo; 15 import org.eclipse.jface.text.source.projection.ProjectionViewer; 16 import org.eclipse.ui.editors.text.IFoldingCommandIds; 17 import org.eclipse.ui.texteditor.AbstractRulerActionDelegate; 18 import org.eclipse.ui.texteditor.ITextEditor; 19 import org.eclipse.ui.texteditor.TextOperationAction; 20 21 public class FoldingExpandAllRulerAction extends AbstractRulerActionDelegate { 22 23 26 protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) { 27 TextOperationAction action= new TextOperationAction(AntEditorActionMessages.getResourceBundle(), "Projection.ExpandAll.", editor, ProjectionViewer.EXPAND_ALL, true); action.setActionDefinitionId(IFoldingCommandIds.FOLDING_EXPAND_ALL); 29 return action; 30 } 31 } 32 | Popular Tags |