Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.ant.internal.ui.editor.actions;
public class FoldingToggleRulerAction extends AbstractRulerActionDelegate {
	private IAction fUIAction;
	/* (non-Javadoc)
	 * @see org.eclipse.ui.texteditor.AbstractRulerActionDelegate#createAction(org.eclipse.ui.texteditor.ITextEditor, org.eclipse.jface.text.source.IVerticalRulerInfo)
	 */
	protected IAction createAction(ITextEditor editorIVerticalRulerInfo rulerInfo) {
		editor;
		new TextOperationAction(AntEditorActionMessages.getResourceBundle(), "Projection.Toggle."editor.true); //$NON-NLS-1$
		return ;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
	 */
	public void setActiveEditor(IAction callerActionIEditorPart targetEditor) {
		callerAction;
		super.setActiveEditor(callerActiontargetEditor);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.action.IMenuListener#menuAboutToShow(org.eclipse.jface.action.IMenuManager)
	 */
	public void menuAboutToShow(IMenuManager manager) {
		super.menuAboutToShow(manager);
	}
	private void update() {
		if ( instanceof AntEditor) {
			if (viewer instanceof ProjectionViewer) {
				boolean enabled= ((ProjectionViewerviewer).getProjectionAnnotationModel() != null;
			}
		}
	}
New to GrepCode? Check out our FAQ X