org.eclipse.jface.text.TextViewerUndoManager Java Examples

The following examples show how to use org.eclipse.jface.text.TextViewerUndoManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SegmentViewer.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 给TextViewer设置UndoManager
 * @param textViewer
 *            ;
 */
public void initUndoManager(int undoLevel) {
	// remembers edit commands
	final TextViewerUndoManager undoManager = new TextViewerUndoManager(undoLevel);
	// add listeners
	undoManager.connect(this);
	this.setUndoManager(undoManager);
}
 
Example #2
Source File: CellEditorTextViewer.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
private void initUndoManager(int undoLevel) {
	// remembers edit commands
	final TextViewerUndoManager undoManager = new TextViewerUndoManager(undoLevel);
	// add listeners
	undoManager.connect(this);
	this.setUndoManager(undoManager);
}
 
Example #3
Source File: SegmentViewer.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 给TextViewer设置UndoManager
 * @param textViewer
 *            ;
 */
public void initUndoManager(int undoLevel) {
	// remembers edit commands
	final TextViewerUndoManager undoManager = new TextViewerUndoManager(undoLevel);
	// add listeners
	undoManager.connect(this);
	this.setUndoManager(undoManager);
}