blob: 439cf5264ea86b39dd43520cde35d71d7ebd8e72 [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001/*******************************************************************************
amywuecebb042007-04-10 20:07:35 +00002 * Copyright (c) 2001, 2005 IBM Corporation and others.
david_williamscfdb2cd2004-11-11 08:37:49 +00003 * 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
amywuecebb042007-04-10 20:07:35 +00007 *
david_williamscfdb2cd2004-11-11 08:37:49 +00008 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Jens Lukowski/Innoopract - initial renaming/restructuring
11 *
12 *******************************************************************************/
david_williams4ad020f2005-04-18 08:00:30 +000013package org.eclipse.wst.sse.core.internal.undo;
david_williamscfdb2cd2004-11-11 08:37:49 +000014
15
16
17public interface CommandCursorPosition {
18
19 /**
20 * Returns the cursor position to be set to after this command is redone.
21 *
22 * @return int
23 */
24 int getRedoCursorPosition();
25
26 /**
27 * Returns the length of text to be selected after this command is redone.
28 *
29 * @return int
30 */
31 int getRedoSelectionLength();
32
33 /**
34 * Returns the cursor position to be set to after this command is undone.
35 *
36 * @return int
37 */
38 int getUndoCursorPosition();
39
40 /**
41 * Returns the length of text to be selected after this command is undone.
42 *
43 * @return int
44 */
45 int getUndoSelectionLength();
46
47 /**
48 * Sets the cursor position to be used after this command is redone.
49 */
50 void setRedoCursorPosition(int cursorPosition);
51
52 /**
53 * Sets the length of text to be selected after this command is redone.
54 */
55 void setRedoSelectionLength(int selectionLength);
56
57 /**
58 * Sets the cursor position to be used after this command is undone.
59 */
60 void setUndoCursorPosition(int cursorPosition);
61
62 /**
63 * Sets the length of text to be selected after this command is undone.
64 */
65 void setUndoSelectionLength(int selectionLength);
66}