Package org.eclipse.ui.internal.texteditor

Examples of org.eclipse.ui.internal.texteditor.EditPosition


  /*
   * @see IAction#run()
   */
  public void run() {
    EditPosition editPosition= TextEditorPlugin.getDefault().getLastEditPosition();
    if (editPosition == null)
      return;

    final Position pos= editPosition.getPosition();
    if (pos == null || pos.isDeleted)
      return;

    IWorkbenchWindow window= getWindow();
    if (window == null)
      return;

    IWorkbenchPage page= window.getActivePage();

    IEditorPart editor;
    try {
      editor= page.openEditor(editPosition.getEditorInput(), editPosition.getEditorId());
    } catch (PartInitException ex) {
      return;
    }

    // Optimization - could also use else branch
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.texteditor.EditPosition

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.