Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.VerticalRuler


        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( parser, browserConnection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here


   * Subclasses may re-implement this method.
   *
   * @return the vertical ruler
   */
  protected IVerticalRuler createVerticalRuler() {
    return new VerticalRuler(VERTICAL_RULER_WIDTH);
  }
View Full Code Here

        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( this.sourceViewer, this.parser, this.connection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here

        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( this.parser, this.connection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here

        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( parser, browserConnection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here

   * Subclasses may re-implement this method.
   *
   * @return the vertical ruler
   */
  protected IVerticalRuler createVerticalRuler() {
    return new VerticalRuler(VERTICAL_RULER_WIDTH);
  }
View Full Code Here

        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( parser, browserConnection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here

    liveDisplay = new Composite(splitter, SWT.NONE);
    liveDisplay.setLayout(new FillLayout());
    GridData gridData2 = new GridData(SWT.FILL, SWT.FILL, true, true);
    liveDisplay.setLayoutData(gridData2);
   
    VerticalRuler ruler = new VerticalRuler(12);
    int styles =
        SWT.V_SCROLL |
        SWT.H_SCROLL |
        SWT.MULTI |
        SWT.BORDER |
View Full Code Here

        gd.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        gd.heightHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH );
        composite.setLayoutData( gd );

        // create and configure source viewer
        sourceViewer = new SourceViewer( composite, new VerticalRuler( 0 ), SWT.H_SCROLL | SWT.V_SCROLL );
        sourceViewer.getControl().setLayoutData( new GridData( GridData.FILL_BOTH ) );
        configuration = new FilterSourceViewerConfiguration( this.sourceViewer, this.parser, this.connection );
        sourceViewer.configure( configuration );

        // set document
View Full Code Here

          CTabItem fxmlContent = new CTabItem(folder, SWT.NONE);
          fxmlContent.setText("FXML-Source");
          fxmlContent.setImage(JFaceResources.getImage(IMAGE_FXML_CONTENT));

          final AnnotationModel model = new AnnotationModel();
          VerticalRuler verticalRuler = new VerticalRuler(VERTICAL_RULER_WIDTH, new AnnotationAccess());
          int styles = SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION;
          SourceViewer sourceViewer = new SourceViewer(folder, verticalRuler, styles);
          sourceViewer.configure(new XMLConfiguration(new ColorManager()));
          sourceViewer.setEditable(false);
          sourceViewer.getTextWidget().setFont(JFaceResources.getTextFont());

          IDocumentPartitioner partitioner = new FastPartitioner(new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT });
          partitioner.connect(document);
          document.setDocumentPartitioner(partitioner);
          sourceViewer.setDocument(document);
          verticalRuler.setModel(model);
          fxmlContent.setControl(sourceViewer.getControl());
        }

        folder.setSelection(0);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.VerticalRuler

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.