Tabnine Logo
TextViewer.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jface.text.TextViewer
constructor

Best Java code snippets using org.eclipse.jface.text.TextViewer.<init> (Showing top 6 results out of 315)

origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public Control createControl(Composite parent) {
  fTextViewer = new TextViewer(parent, SWT.READ_ONLY);
  fTextViewer.setDocument(new Document());
  StyledText styleText = fTextViewer.getTextWidget();
  styleText.setText("\r\n\r\n" + DebugUIMessages.EmptyViewTab_Unable_to_create + "\n" + getRenderingName() + "\n\n" + DebugUIMessages.ErrorRendering_0 + fException.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
  return fTextViewer.getControl();
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Create the error page of this rendering
 *
 * @param parent the parent to add the page to
 */
private void createMessagePage(Composite parent) {
  if (fTextViewer == null) {
    fTextViewer = new TextViewer(parent, SWT.WRAP);
    fTextViewer.setDocument(new Document());
    StyledText styleText = fTextViewer.getTextWidget();
    styleText.setEditable(false);
    styleText.setEnabled(false);
  }
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Create the error page for this rendering.
 * The error page is used to report any error resulted from
 * getting memory from a memory block.
 * @param parent the parent composite
 */
private void createErrorPage(Composite parent)
{
  if (fTextViewer == null)
  {
    fTextViewer = new TextViewer(parent, SWT.WRAP);
    fTextViewer.setDocument(new Document());
    StyledText styleText = fTextViewer.getTextWidget();
    styleText.setEditable(false);
    styleText.setEnabled(false);
  }
}
origin: org.eclipse/org.eclipse.jdt.debug.ui

fTextViewer= new TextViewer(parent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
fTextViewer.setDocument(new Document());
GridData gridData = new GridData(GridData.FILL_BOTH);
origin: org.eclipse.egit/ui

commitMessageLabel
    .setText(UIText.RebaseResultDialog_CommitMessageLabel);
TextViewer commitMessage = new TextViewer(commitGroup, SWT.H_SCROLL
    | SWT.V_SCROLL | SWT.MULTI | SWT.BORDER | SWT.READ_ONLY);
GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 60)
nextStepsGroup.setText(UIText.RebaseResultDialog_NextSteps);
nextStepsGroup.setLayout(new GridLayout(1, false));
final TextViewer nextSteps = new TextViewer(nextStepsGroup, SWT.MULTI
    | SWT.BORDER | SWT.READ_ONLY);
GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 60)
origin: org.eclipse.egit/ui

  throw new IllegalArgumentException();
final TextViewer titleViewer = new TextViewer(titleRegion, SWT.READ_ONLY);
titleViewer.setDocument(new Document(text));
org.eclipse.jface.textTextViewer<init>

Javadoc

Internal use only

Popular methods of TextViewer

  • getTextWidget
  • getControl
  • doOperation
  • 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
  • canDoOperation
  • setSelection,
  • canDoOperation,
  • getVisibleRegion,
  • handleDispose,
  • invalidateTextPresentation,
  • setTopIndex,
  • _getVisibleRegionOffset,
  • activatePlugins,
  • addPresentation

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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