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