Examples of selectAndReveal()


Examples of org.apache.uima.caseditor.editor.AnnotationEditor.selectAndReveal()

    try {
      IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IFile ifile = getIFile(absolutePath);
      AnnotationEditor editor = (AnnotationEditor) page.openEditor(new FileEditorInput(ifile),
              "org.apache.uima.caseditor.editor");
      editor.selectAndReveal(begin, end - begin);
      return editor;
    } catch (PartInitException e) {
      RutaAddonsPlugin.error(e);
    }
    return null;
View Full Code Here

Examples of org.apache.uima.caseditor.editor.AnnotationEditor.selectAndReveal()

    try {
      IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IFile ifile = getIFile(absolutePath);
      AnnotationEditor editor = (AnnotationEditor) page.openEditor(new FileEditorInput(ifile),
              "org.apache.uima.caseditor.editor");
      editor.selectAndReveal(begin, end - begin);
    } catch (PartInitException e) {
      RutaAddonsPlugin.error(e);
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.AnnotationEditor.selectAndReveal()

          FileEditorInput fei = (FileEditorInput) editorInput;
          IFile file = fei.getFile();
          if (data != null && file.getLocationURI().equals(data.getFile().toURI())) {
            int begin = data.getBegin();
            int end = data.getEnd();
            ae.selectAndReveal(begin, end - begin);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.AnnotationEditor.selectAndReveal()

    try {
      IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IFile ifile = getIFile(absolutePath);
      AnnotationEditor editor = (AnnotationEditor) page.openEditor(new FileEditorInput(ifile),
              "org.apache.uima.caseditor.editor");
      editor.selectAndReveal(begin, end - begin);
    } catch (PartInitException e) {
      RutaAddonsPlugin.error(e);
    }
  }
View Full Code Here

Examples of org.apache.uima.caseditor.editor.AnnotationEditor.selectAndReveal()

          FileEditorInput fei = (FileEditorInput) editorInput;
          IFile file = fei.getFile();
          if (file.getLocationURI().equals(data.getFile().toURI())) {
            int begin = data.getBegin();
            int end = data.getEnd();
            ae.selectAndReveal(begin, end - begin);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.ui.internal.editor.CloudFoundryApplicationsEditorPage.selectAndReveal()

        Method method = MultiPageEditorPart.class.getDeclaredMethod("setActivePage", int.class); //$NON-NLS-1$
        method.setAccessible(true);
        method.invoke(editor, 1);

        CloudFoundryApplicationsEditorPage editorPage = (CloudFoundryApplicationsEditorPage) editor.getSelectedPage();
        editorPage.selectAndReveal(modules[0]);
      }
      catch (CoreException e) {
        StatusManager.getManager().handle(e.getStatus(), StatusManager.LOG);
      }
      catch (SecurityException e) {
View Full Code Here

Examples of org.eclipse.imp.editor.UniversalEditor.selectAndReveal()

              final IDocument document= editor.
                  getDocumentProvider().
                  getDocument(editor.getEditorInput());
              if (document != null) {
                document.replace(where.x, where.y, "•");
                editor.selectAndReveal(where.x+1, 0);
              }
        }
          catch (BadLocationException e) {
          // TODO Auto-generated catch block
          // e.printStackTrace();
View Full Code Here

Examples of org.eclipse.imp.editor.UniversalEditor.selectAndReveal()

                  getDocument(editor.getEditorInput());
              if (document != null) {
                String w = document.get(where.x, where.y);
                document.replace(where.x, where.y, "´" + w + "´");
                if (w.length() == 0)
                  editor.selectAndReveal(where.x+1, 0);
              }
        }
          catch (BadLocationException e) {
          // TODO Auto-generated catch block
          // e.printStackTrace();
View Full Code Here

Examples of org.eclipse.imp.editor.UniversalEditor.selectAndReveal()

                  getDocument(editor.getEditorInput());
              if (document != null) {
                String w = document.get(where.x, where.y);
                document.replace(where.x, where.y, "`" + w + "`");
                if (w.length() == 0)
                  editor.selectAndReveal(where.x+1, 0);
              }
        }
          catch (BadLocationException e) {
          // TODO Auto-generated catch block
          // e.printStackTrace();
View Full Code Here

Examples of org.eclipse.ui.editors.text.TextEditor.selectAndReveal()

      TextEditor textEditor = (TextEditor) editorPart.getAdapter(TextEditor.class);
      if (textEditor != null) {
        try {
          IDocumentProvider dp = textEditor.getDocumentProvider();
          IDocument document = (dp != null) ? dp.getDocument(textEditor.getEditorInput()) : null;
          textEditor.selectAndReveal(document.getLineOffset(line - 1) + column - 1, 0);
        }
        catch (BadLocationException x) {
          // marker refers to invalid text position -> do nothing
        }
      }
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.