Package org.eclipse.ui.internal.forms.widgets

Examples of org.eclipse.ui.internal.forms.widgets.Paragraph


          break;
        }
      }
    };
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      ParagraphSegment[] segments = p.getSegments();
      for (int j = 0; j < segments.length; j++) {
        if (segments[j] instanceof ControlSegment) {
          ControlSegment cs = (ControlSegment) segments[j];
          Control c = cs.getControl(resourceTable);
          if (c != null) {
View Full Code Here


    Paragraph[] paragraphs = model.getParagraphs();
    IHyperlinkSegment selectedLink = getSelectedLink();
    if (getDisplay().getFocusControl() != this)
      selectedLink = null;
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      if (i > 0)
        selData.markNewLine();
      p.computeSelection(gc, resourceTable, selectedLink, selData);
    }
    gc.dispose();
  }
View Full Code Here

    Paragraph[] paragraphs = model.getParagraphs();
    IHyperlinkSegment selectedLink = getSelectedLink();
    if (getDisplay().getFocusControl() != this)
      selectedLink = null;
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      p
          .paint(textGC, repaintRegion, resourceTable, selectedLink,
              selData);
    }
    textGC.dispose();
    gc.drawImage(textBuffer, x, y);
View Full Code Here

      int width = wHint != SWT.DEFAULT ? wHint : 0;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();
      boolean selectableInTheLastRow = false;
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && getParagraphsSeparated()
            && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.rowHeight = 0;
        loc.indent = p.getIndent();
        loc.x = p.getIndent();
        ParagraphSegment[] segments = p.getSegments();
        if (segments.length > 0) {
          selectableInTheLastRow = false;
          int pwidth = 0;
          for (int j = 0; j < segments.length; j++) {
            ParagraphSegment segment = segments[j];
View Full Code Here

      int lineHeight = fm.getHeight();

      Paragraph[] paragraphs = model.getParagraphs();
      IHyperlinkSegment selectedLink = getSelectedLink();
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && paragraphsSeparated && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.indent = p.getIndent();
        loc.resetCaret();
        loc.rowHeight = 0;
        p.layout(gc, carea.width, loc, lineHeight, resourceTable,
            selectedLink);
      }
      gc.dispose();
      if (DEBUG_TEXT) {
        long stop = System.currentTimeMillis();
View Full Code Here

          break;
        }
      }
    };
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      ParagraphSegment[] segments = p.getSegments();
      for (int j = 0; j < segments.length; j++) {
        if (segments[j] instanceof ControlSegment) {
          ControlSegment cs = (ControlSegment) segments[j];
          Control c = cs.getControl(resourceTable);
          if (c != null) {
View Full Code Here

    Paragraph[] paragraphs = model.getParagraphs();
    IHyperlinkSegment selectedLink = getSelectedLink();
    if (getDisplay().getFocusControl() != this)
      selectedLink = null;
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      if (i > 0)
        selData.markNewLine();
      p.computeSelection(gc, resourceTable, selectedLink, selData);
    }
    gc.dispose();
  }
View Full Code Here

    Paragraph[] paragraphs = model.getParagraphs();
    IHyperlinkSegment selectedLink = getSelectedLink();
    if (getDisplay().getFocusControl() != this)
      selectedLink = null;
    for (int i = 0; i < paragraphs.length; i++) {
      Paragraph p = paragraphs[i];
      p
          .paint(textGC, repaintRegion, resourceTable, selectedLink,
              selData);
    }
    if (hasFocus && !model.hasFocusSegments())
      textGC.drawFocus(x, y, width, height);
View Full Code Here

      int width = wHint != SWT.DEFAULT ? wHint : 0;
      FontMetrics fm = gc.getFontMetrics();
      int lineHeight = fm.getHeight();
      boolean selectableInTheLastRow = false;
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && getParagraphsSeparated()
            && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.rowHeight = 0;
        loc.indent = p.getIndent();
        loc.x = p.getIndent();
        ParagraphSegment[] segments = p.getSegments();
        if (segments.length > 0) {
          selectableInTheLastRow = false;
          int pwidth = 0;
          for (int j = 0; j < segments.length; j++) {
            ParagraphSegment segment = segments[j];
View Full Code Here

      int lineHeight = fm.getHeight();

      Paragraph[] paragraphs = model.getParagraphs();
      IHyperlinkSegment selectedLink = getSelectedLink();
      for (int i = 0; i < paragraphs.length; i++) {
        Paragraph p = paragraphs[i];
        if (i > 0 && paragraphsSeparated && p.getAddVerticalSpace())
          loc.y += getParagraphSpacing(lineHeight);
        loc.indent = p.getIndent();
        loc.resetCaret();
        loc.rowHeight = 0;
        p.layout(gc, carea.width, loc, lineHeight, resourceTable,
            selectedLink);
      }
      gc.dispose();
      if (DEBUG_TEXT) {
        long stop = System.currentTimeMillis();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.forms.widgets.Paragraph

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.