KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > IMarkRegionTarget


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jface.text;
13
14 /**
15  * A mark region target to support marked regions as found in emacs.
16  *
17  * @since 2.0
18  */

19 public interface IMarkRegionTarget {
20
21     /**
22      * Sets or clears a mark at the current cursor position.
23      *
24      * @param set sets the mark if <code>true</code>, clears otherwise.
25      */

26     void setMarkAtCursor(boolean set);
27
28     /**
29      * Swaps the mark and cursor position if the mark is in the visible region.
30      */

31     void swapMarkAndCursor();
32 }
33
Popular Tags