Examples of IUndoManager


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

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

Examples of org.eclipse.jface.text.IUndoManager

                    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

Examples of org.eclipse.ltk.core.refactoring.IUndoManager

  {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    ResourceChangeListener rcl = new ResourceChangeListener();
    workspace.addResourceChangeListener(rcl);
    try{
      IUndoManager manager = RefactoringCore.getUndoManager();
      if(commandLine.hasOption(Options.PEEK_OPTION)){
        return manager.peekUndoName();
      }
      manager.performRedo(null, null);
      return rcl.getChangedFiles();
    }finally{
      workspace.removeResourceChangeListener(rcl);
    }
  }
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.IUndoManager

  {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    ResourceChangeListener rcl = new ResourceChangeListener();
    workspace.addResourceChangeListener(rcl);
    try{
      IUndoManager manager = RefactoringCore.getUndoManager();
      if(commandLine.hasOption(Options.PEEK_OPTION)){
        return manager.peekUndoName();
      }
      manager.performUndo(null, null);
      return rcl.getChangedFiles();
    }finally{
      workspace.removeResourceChangeListener(rcl);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.