Package org.eclipse.ui.editors.text

Examples of org.eclipse.ui.editors.text.TextSourceViewerConfiguration


      composite.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
    }

    // Source viewer
    fViewer= new SourceViewer(composite, null, style);
    fViewer.configure(new TextSourceViewerConfiguration(EditorsPlugin.getDefault().getPreferenceStore()));
    fViewer.setEditable(false);

    fText= fViewer.getTextWidget();
    gd= new GridData(GridData.BEGINNING | GridData.FILL_BOTH);
    fText.setLayoutData(gd);
View Full Code Here


      quickFixActionHandler = createQuickFixActionHandler(sourceViewer);
    }

    Document document = new Document(initialText);

    configuration = new TextSourceViewerConfiguration(
        EditorsUI
        .getPreferenceStore()) {

      public int getHyperlinkStateMask(ISourceViewer targetViewer) {
        return SWT.NONE;
View Full Code Here

    commentAndDiffComposite.setBackground(commentViewer.getControl()
        .getBackground());


    TextSourceViewerConfiguration configuration = new TextSourceViewerConfiguration(
        EditorsUI.getPreferenceStore()) {

      public int getHyperlinkStateMask(ISourceViewer sourceViewer) {
        return SWT.NONE;
      }
View Full Code Here

  }

  private StyledText createStyledTextWidget(Composite parent) {
    try {
      final SourceViewer result = new SourceViewer(parent, null, null, true, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
      result.configure(new TextSourceViewerConfiguration(EditorsUI.getPreferenceStore()));
      result.setDocument(new Document());
      return result.getTextWidget();
    } catch (final Exception e) {
      ClientPlugin.getDefault().getLog().log(new Status(IStatus.WARNING, ClientPlugin.PLUGIN_ID, IStatus.WARNING, MessageLoader.getString("ChatComposite.NO_HYPERLINKING"), e)); //$NON-NLS-1$
      return new StyledText(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
View Full Code Here

    }

    private StyledText createStyledTextWidget(Composite parent) {
      try {
        SourceViewer result = new SourceViewer(parent, null, null, true, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
        result.configure(new TextSourceViewerConfiguration(EditorsUI.getPreferenceStore()));
        result.setDocument(new Document());
        return result.getTextWidget();
      } catch (Exception e) {
        Activator.getDefault().getLog().log(new Status(IStatus.WARNING, Activator.PLUGIN_ID, IStatus.WARNING, Messages.MessagesView_WARNING_HYPERLINKING_NOT_AVAILABLE, e));
        return new StyledText(parent, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.editors.text.TextSourceViewerConfiguration

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.