01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.texteditor;
11:
12: import org.eclipse.core.resources.IMarker;
13:
14: import org.eclipse.jface.action.IAction;
15:
16: import org.eclipse.jface.text.source.IVerticalRulerInfo;
17:
18: /**
19: * Adapter for the managing bookmark action.
20: *
21: * @since 2.0
22: */
23: public class BookmarkRulerAction extends AbstractRulerActionDelegate {
24:
25: /*
26: * @see AbstractRulerActionDelegate#createAction(ITextEditor, IVerticalRulerInfo)
27: */
28: protected IAction createAction(ITextEditor editor,
29: IVerticalRulerInfo rulerInfo) {
30: return new MarkerRulerAction(
31: TextEditorMessages.getBundleForConstructedKeys(),
32: "Editor.ManageBookmarks.", editor, rulerInfo, IMarker.BOOKMARK, true); //$NON-NLS-1$
33: }
34: }
|