Tabnine Logo
TextViewer.doOperation
Code IndexAdd Tabnine to your IDE (free)

How to use
doOperation
method
in
org.eclipse.jface.text.TextViewer

Best Java code snippets using org.eclipse.jface.text.TextViewer.doOperation (Showing top 7 results out of 315)

origin: org.eclipse/org.eclipse.jdt.ui

  /**
   * Selects all in the viewer.
   */
  public void run() {
    fTextViewer.doOperation(ITextOperationTarget.SELECT_ALL);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  /**
   * Selects all in the viewer.
   */
  @Override
  public void run() {
    fTextViewer.doOperation(ITextOperationTarget.SELECT_ALL);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  /**
   * Selects all in the viewer.
   */
  @Override
  public void run() {
    fTextViewer.doOperation(ITextOperationTarget.SELECT_ALL);
  }
}
origin: org.eclipse.mylyn.commons/workbench

private static boolean doGlobalAction(String actionId, TextViewer textViewer) {
  if (actionId.equals(ActionFactory.CUT.getId())) {
    textViewer.doOperation(ITextOperationTarget.CUT);
    return true;
  } else if (actionId.equals(ActionFactory.COPY.getId())) {
    textViewer.doOperation(ITextOperationTarget.COPY);
    return true;
  } else if (actionId.equals(ActionFactory.PASTE.getId())) {
    textViewer.doOperation(ITextOperationTarget.PASTE);
    return true;
  } else if (actionId.equals(ActionFactory.DELETE.getId())) {
    textViewer.doOperation(ITextOperationTarget.DELETE);
    return true;
  } else if (actionId.equals(ActionFactory.UNDO.getId())) {
    textViewer.doOperation(ITextOperationTarget.UNDO);
    return true;
  } else if (actionId.equals(ActionFactory.REDO.getId())) {
    textViewer.doOperation(ITextOperationTarget.REDO);
    return true;
  } else if (actionId.equals(ActionFactory.SELECT_ALL.getId())) {
    textViewer.doOperation(ITextOperationTarget.SELECT_ALL);
    return true;
  }
  return false;
}
origin: org.eclipse/org.eclipse.jst.pagedesigner

public void format(TextViewer viewer, Node node) {
  if (node == null) {
    return;
  }
  Node tmp;
  int start, offset;
  if (node.getPreviousSibling() != null) {
    tmp = node.getPreviousSibling();
    start = ((IndexedRegion) tmp).getEndOffset();
  } else {
    tmp = node;
    start = ((IndexedRegion) tmp).getStartOffset();
  }
  if (node.getNextSibling() != null) {
    tmp = node.getNextSibling();
    offset = ((IndexedRegion) tmp).getStartOffset() - start;
  } else {
    tmp = node;
    offset = ((IndexedRegion) tmp).getEndOffset() - start;
  }
  viewer.setSelectedRange(start, offset);
  viewer.doOperation(ISourceViewer.FORMAT);
}
origin: org.eclipse.platform/org.eclipse.jface.text

super.doOperation(operation);
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

super.doOperation(operation);
org.eclipse.jface.textTextViewerdoOperation

Popular methods of TextViewer

  • getTextWidget
  • getControl
  • setDocument
  • modelRange2WidgetRange
    Same as #modelRange2WidgetRange(IRegion) just for a org.eclipse.jface.text.Position.
  • getRewriteTarget
  • getSelection
  • modelLine2WidgetLine
    Implements the contract of ITextViewerExtension5#modelLine2WidgetLine(int).
  • getDocument
  • setSelectedRange
  • setSelection
  • <init>
    Create a new text viewer with the given SWT style bits. The viewer is ready to use but does not have
  • canDoOperation
  • <init>,
  • canDoOperation,
  • getVisibleRegion,
  • handleDispose,
  • invalidateTextPresentation,
  • setTopIndex,
  • _getVisibleRegionOffset,
  • activatePlugins,
  • addPresentation

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now