| /******************************************************************************* |
| * Copyright (c) 2000, 2003 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.jface.text; |
| |
| /** |
| * A mark region target to support marked regions as found in emacs. |
| * |
| * @since 2.0 |
| */ |
| public interface IMarkRegionTarget { |
| |
| /** |
| * Sets or clears a mark at the current cursor position. |
| * |
| * @param set sets the mark if <code>true</code>, clears otherwise. |
| */ |
| void setMarkAtCursor(boolean set); |
| |
| /** |
| * Swaps the mark and cursor position if the mark is in the visible region. |
| */ |
| void swapMarkAndCursor(); |
| } |