com.pvx.ooadide.eventmanager
Class EditorManager
java.lang.Object
com.pvx.ooadide.eventmanager.EditorManager
public class EditorManager
- extends java.lang.Object
- Author:
- jaretts
Method Summary |
void |
closeEditor()
|
void |
closeEditor(boolean save)
|
void |
insertText(java.lang.String text,
int position)
Inserts text at the specified position with in the open pvx |
void |
openFile(java.lang.String absolutePath)
|
void |
openFile(java.lang.String absolutePath,
int lineNo,
int length)
Scroll editor to a line and select text in the pvx editor
if the file is not open the open a file first |
void |
replaceText(org.eclipse.jface.text.ITextSelection selection,
java.lang.String newText)
Inserts text at the current cursor position in the open pvx
editor. |
EditorState |
takeSnapShot()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorManager
public EditorManager()
takeSnapShot
public EditorState takeSnapShot()
replaceText
public void replaceText(org.eclipse.jface.text.ITextSelection selection,
java.lang.String newText)
- Inserts text at the current cursor position in the open pvx
editor. If there's text selected in the pvx editor then
replace currently selected text with the specified text
- Parameters:
text
- -The text to insert/paste into document
insertText
public void insertText(java.lang.String text,
int position)
- Inserts text at the specified position with in the open pvx
- Parameters:
text
- -The text to insert/paste into documentposition
- -The position to insert/paste into document
openFile
public void openFile(java.lang.String absolutePath,
int lineNo,
int length)
- Scroll editor to a line and select text in the pvx editor
if the file is not open the open a file first
- Parameters:
absolutePath
- file to openlineNumber
- line number to displaylength
- number of chars to select
openFile
public void openFile(java.lang.String absolutePath)
- Parameters:
absolutePath
- to file to open
closeEditor
public void closeEditor()
closeEditor
public void closeEditor(boolean save)