|
|||||||||
| Home >> All >> com >> maddyhome >> idea >> vim >> [ helper overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.maddyhome.idea.vim.helper
Class EditorData

java.lang.Objectcom.maddyhome.idea.vim.helper.EditorData
- public class EditorData
- extends java.lang.Object
This class is used to manipulate editor specific data. Each editor has a user defined map associated with it. These methods provide convenient methods for working with that Vim Plugin specific data.
| Field Summary | |
private static java.lang.String |
FILE
|
private static java.lang.String |
LAST_COLUMN
|
private static java.lang.String |
PROJECT
|
private static java.lang.String |
VISUAL
|
private static java.lang.String |
VISUAL_OP
|
| Constructor Summary | |
private |
EditorData()
This is a static helper - no instances needed |
| Method Summary | |
static int |
getLastColumn(Editor editor)
This gets the last column the cursor was in for the editor. |
static com.maddyhome.idea.vim.command.VisualChange |
getLastVisualOperatorRange(Editor editor)
Gets the previous visual operator range for the editor. |
static com.maddyhome.idea.vim.command.VisualRange |
getLastVisualRange(Editor editor)
Gets the previous visual range for the editor. |
static Project |
getProject(Editor editor)
Gets the project associated with the editor. |
static VirtualFile |
getVirtualFile(Editor editor)
Gets the virtual file associated with this editor |
static void |
initializeEditor(Editor editor)
This is used to initialize each new editor that gets created. |
static void |
setLastColumn(Editor editor,
int col)
Sets the last column for this editor |
static void |
setLastVisualOperatorRange(Editor editor,
com.maddyhome.idea.vim.command.VisualChange range)
Sets the previous visual operator range for the editor. |
static void |
setLastVisualRange(Editor editor,
com.maddyhome.idea.vim.command.VisualRange range)
Sets the previous visual range for the editor. |
static void |
uninitializeEditor(Editor editor)
This is used to clean up editors whenever they are closed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
LAST_COLUMN
private static final java.lang.String LAST_COLUMN
- See Also:
- Constant Field Values
PROJECT
private static final java.lang.String PROJECT
- See Also:
- Constant Field Values
FILE
private static final java.lang.String FILE
- See Also:
- Constant Field Values
VISUAL
private static final java.lang.String VISUAL
- See Also:
- Constant Field Values
VISUAL_OP
private static final java.lang.String VISUAL_OP
- See Also:
- Constant Field Values
| Constructor Detail |
EditorData
private EditorData()
- This is a static helper - no instances needed
| Method Detail |
initializeEditor
public static void initializeEditor(Editor editor)
- This is used to initialize each new editor that gets created.
uninitializeEditor
public static void uninitializeEditor(Editor editor)
- This is used to clean up editors whenever they are closed.
getLastColumn
public static int getLastColumn(Editor editor)
- This gets the last column the cursor was in for the editor.
setLastColumn
public static void setLastColumn(Editor editor,
int col)
- Sets the last column for this editor
getLastVisualRange
public static com.maddyhome.idea.vim.command.VisualRange getLastVisualRange(Editor editor)
- Gets the previous visual range for the editor.
setLastVisualRange
public static void setLastVisualRange(Editor editor,
com.maddyhome.idea.vim.command.VisualRange range)
- Sets the previous visual range for the editor.
getLastVisualOperatorRange
public static com.maddyhome.idea.vim.command.VisualChange getLastVisualOperatorRange(Editor editor)
- Gets the previous visual operator range for the editor.
setLastVisualOperatorRange
public static void setLastVisualOperatorRange(Editor editor,
com.maddyhome.idea.vim.command.VisualChange range)
- Sets the previous visual operator range for the editor.
getProject
public static Project getProject(Editor editor)
- Gets the project associated with the editor.
getVirtualFile
public static VirtualFile getVirtualFile(Editor editor)
- Gets the virtual file associated with this editor
|
|||||||||
| Home >> All >> com >> maddyhome >> idea >> vim >> [ helper overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.maddyhome.idea.vim.helper.EditorData