Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.LineStyleListener


    SashForm sashForm3 = new SashForm(composite_3, SWT.VERTICAL);
    sashForm3.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
   
    inputCmd = new StyledText(sashForm3, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);
    inputCmd.addLineStyleListener(new LineStyleListener()
    {
        public void lineGetStyle(LineStyleEvent e)
        {
            StyleRange style = new StyleRange();
            style.metrics = new GlyphMetrics(0, 0, Integer.toString(100000).length()*5);
 
View Full Code Here


    mateText = mt;
   
    control = mateText.getControl();
   
    this.control.addPaintListener(new MarginPaintListener(mateText));
    this.control.addLineStyleListener(new LineStyleListener() {
      public void lineGetStyle(LineStyleEvent event) {
        colourLine(event);
      }
    });
    // this.control.addLineBackgroundListener(new LineBackgroundListener() {
View Full Code Here

  }

  private void createMsgBoard(SashForm form) {
    msgBoardTxt = new StyledText(form, SWT.MULTI | SWT.WRAP | SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY);
//    text.setEditable(false);
    msgBoardTxt.addLineStyleListener(new LineStyleListener() {
      @Override
      public void lineGetStyle(LineStyleEvent event) {
       
       
//        Util.showDebugMsg("entering LineStyleListener");
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.LineStyleListener

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.