Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IUndoManager


   * @return the undo context or <code>null</code> if not available
   * @since 3.1
   */
  private IUndoContext getUndoContext() {
    if (fSourceViewer instanceof ITextViewerExtension6) {
      IUndoManager undoManager= ((ITextViewerExtension6)fSourceViewer).getUndoManager();
      if (undoManager instanceof IUndoManagerExtension)
        return ((IUndoManagerExtension)undoManager).getUndoContext();
    }
    return null;
  }
View Full Code Here


   * @return the undo context or <code>null</code> if not available
   * @since 3.1
   */
  private IUndoContext getUndoContext() {
    if (fSourceViewer instanceof ITextViewerExtension6) {
      IUndoManager undoManager= ((ITextViewerExtension6)fSourceViewer).getUndoManager();
      if (undoManager instanceof IUndoManagerExtension)
        return ((IUndoManagerExtension)undoManager).getUndoContext();
    }
    return null;
  }
View Full Code Here

                    return getCompletionProcessor();
            }
        });*/
        fViewer.setEditable(true);
        fViewer.setDocument(document);
        final IUndoManager undoManager = new TextViewerUndoManager(100);
        fViewer.setUndoManager(undoManager);
        undoManager.connect(fViewer);

        fViewer.getTextWidget().setFont(JFaceResources.getTextFont());

        Control control = fViewer.getControl();
        GridData gd = new GridData(GridData.FILL_BOTH);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IUndoManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.