wlDesc = new StyledText( shell, SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL | SWT.H_SCROLL ); shell.setSize( 550, 350 ); fdlDesc.bottom = new FormAttachment( 100, -50 ); fdlDesc.right = new FormAttachment( 100, 0 ); } else { wlDesc = new StyledText( shell, SWT.MULTI | SWT.READ_ONLY ); fdlDesc.right = new FormAttachment( 100, 0 );
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() composite_5.setLayout(new GridLayout(1, false)); cmdResult = new StyledText(composite_5, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI); cmdResult.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); cmdResult.setEditable(false);
expressionEditor = new StyledText( rightSash, SWT.NONE ); expressionEditor.setText( this.formula ); expressionEditor.addModifyListener( new ModifyListener() {
helpButton.setLayoutData( helpButtonFormData ); StyledText helpLabel = new StyledText( dialog, SWT.NONE ); helpLabel.setText( "Help" ); helpLabel.setCaret( null );
undoStack = new LinkedList<UndoRedoStack>(); redoStack = new LinkedList<UndoRedoStack>(); styledText = new StyledText( this, args ); styledTextPopupmenu = new Menu( parent.getShell(), SWT.POP_UP ); xParent = parent;
jobLogText = new StyledText( jobLogComposite, SWT.READ_ONLY | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL ); spoon.props.setLook( jobLogText ); FormData fdText = new FormData();
transLogText = new StyledText( transLogComposite, SWT.READ_ONLY | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL ); spoon.props.setLook( transLogText ); FormData fdText = new FormData();
public Control createControl(Composite parent) { fStyledText= new StyledText(parent, SWT.FLAT | SWT.BORDER | SWT.READ_ONLY); final GridData data= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fStyledText.setLayoutData(data); configureStyledText(fText, fEnabled); return fStyledText; }
/** * Factory method to create the text widget to be used as the viewer's text widget. * * @param parent the parent of the styled text * @param styles the styles for the styled text * @return the text widget to be used */ protected StyledText createTextWidget(Composite parent, int styles) { StyledText styledText= new StyledText(parent, styles); styledText.setLeftMargin(Math.max(styledText.getLeftMargin(), 2)); return styledText; }
/** * Factory method to create the text widget to be used as the viewer's text widget. * * @param parent the parent of the styled text * @param styles the styles for the styled text * @return the text widget to be used */ protected StyledText createTextWidget(Composite parent, int styles) { StyledText styledText= new StyledText(parent, styles); styledText.setLeftMargin(Math.max(styledText.getLeftMargin(), 2)); return styledText; }
private StyledText createCodeView(Composite parent) { int styles= SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.FULL_SELECTION; StyledText styledText= new StyledText(parent, styles); styledText.setBackground(fBackgroundColor); styledText.setForeground(fForegroundColor); styledText.setEditable(false); return styledText; }
private StyledText createCodeView(Composite parent) { int styles= SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.FULL_SELECTION; StyledText styledText= new StyledText(parent, styles); styledText.setBackground(fBackgroundColor); styledText.setForeground(fForegroundColor); styledText.setEditable(false); return styledText; }
/** * Creates page 2 of the multi-page editor, which shows the sorted text. */ void createPage2() { Composite composite = new Composite(getContainer(), SWT.NONE); FillLayout layout = new FillLayout(); composite.setLayout(layout); text = new StyledText(composite, SWT.H_SCROLL | SWT.V_SCROLL); text.setEditable(false); int index = addPage(composite); setPageText(index, "Preview"); }
/** * Creates page 2 of the multi-page editor, which shows the sorted text. */ void createPage2() { Composite composite = new Composite(getContainer(), SWT.NONE); FillLayout layout = new FillLayout(); composite.setLayout(layout); text = new StyledText(composite, SWT.H_SCROLL | SWT.V_SCROLL); text.setEditable(false); int index = addPage(composite); setPageText(index, "Preview"); }
private StyledText createCodeView(Composite parent) { int styles= SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI | SWT.FULL_SELECTION; StyledText styledText= new StyledText(parent, styles); styledText.setBackground(fBackgroundColor); styledText.setForeground(fForegroundColor); styledText.setEditable(false); return styledText; }
SummaryPanel(Composite parent) { summary = new StyledText(parent, SWT.WRAP | SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL); summary.setCaret(null); summary.setEditable(false); GridData gd = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL | GridData.GRAB_HORIZONTAL); gd.horizontalSpan = 2; // gd.heightHint = 100; summary.setLayoutData(gd); BookNotifier.getInstance().addListener(this); }
private StyledText createText(Composite parent, String text) { StyledText widget = new StyledText(parent, SWT.READ_ONLY | SWT.MULTI); GridData data= new GridData(GridData.FILL_HORIZONTAL); widget.setLayoutData(data); if (text != null) widget.setText(text); widget.setBackground(fBackgroundColor); widget.setForeground(fForegroundColor); widget.setCaret(null); return widget; }
private StyledText createText(Composite parent, String text) { StyledText widget = new StyledText(parent, SWT.READ_ONLY | SWT.MULTI); GridData data= new GridData(GridData.FILL_HORIZONTAL); widget.setLayoutData(data); if (text != null) widget.setText(text); widget.setBackground(fBackgroundColor); widget.setForeground(fForegroundColor); widget.setCaret(null); return widget; }
private Control createControl(Composite parent) { fStyledText= new StyledText(parent, SWT.FLAT | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); fStyledText.setEditable(false); Cursor arrowCursor= fStyledText.getDisplay().getSystemCursor(SWT.CURSOR_ARROW); fStyledText.setCursor(arrowCursor); // Don't set caret to 'null' as this causes https://bugs.eclipse.org/293263 // fStyledText.setCaret(null); final GridData data= new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL); fStyledText.setLayoutData(data); configureStyledText(fText, fEnabled); return fStyledText; }
public MinimapWidget(Composite parent, ITextViewer viewer) { fEditorViewer = viewer; // Create minimap styled text fMinimapTextWidget = new StyledText(parent, SWT.MULTI | SWT.READ_ONLY); fMinimapTextWidget.setEditable(false); fMinimapTextWidget.setCursor(fMinimapTextWidget.getDisplay().getSystemCursor(SWT.CURSOR_ARROW)); // Initialize trackers fEditorTracker = new EditorTracker(); fMinimapTracker = new MinimapTracker(); }