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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Permission (java.security)
    Legacy security code; do not use.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • CodeWhisperer alternatives
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