fdlDesc.right = new FormAttachment( 100, 0 ); wlDesc.setCaret( null );
helpLabel.setCaret( null ); helpLabel.setEditable( false );
final StyledText text = new StyledText(parent, SWT.WRAP); final int padding = 5; text.setLeftMargin(padding); text.setRightMargin(padding); text.setTopMargin(padding); text.setBottomMargin(padding); text.setWordWrap(true); text.setCaret(null);
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; }
final StyledText text = new StyledText(parent, SWT.WRAP); final int padding = 5; text.setLeftMargin(padding); text.setRightMargin(padding); text.setTopMargin(padding); text.setBottomMargin(padding); text.setWordWrap(true); text.setCaret(null);
private void updateCaret() { if (fSourceViewer == null) return; StyledText styledText= fSourceViewer.getTextWidget(); InsertMode mode= getInsertMode(); styledText.setCaret(null); disposeNonDefaultCaret(); if (getPreferenceStore() == null || !getPreferenceStore().getBoolean(PREFERENCE_USE_CUSTOM_CARETS)) Assert.isTrue(fNonDefaultCaret == null); else if (fIsOverwriting) fNonDefaultCaret= createOverwriteCaret(styledText); else if (SMART_INSERT == mode) fNonDefaultCaret= createInsertCaret(styledText); else if (INSERT == mode) fNonDefaultCaret= createRawInsertModeCaret(styledText); if (fNonDefaultCaret != null) { styledText.setCaret(fNonDefaultCaret); fNonDefaultCaretImage= fNonDefaultCaret.getImage(); } else if (fInitialCaret != styledText.getCaret()) styledText.setCaret(fInitialCaret); }
private void updateCaret() { if (fSourceViewer == null) return; StyledText styledText= fSourceViewer.getTextWidget(); InsertMode mode= getInsertMode(); styledText.setCaret(null); disposeNonDefaultCaret(); if (getPreferenceStore() == null || !getPreferenceStore().getBoolean(PREFERENCE_USE_CUSTOM_CARETS)) Assert.isTrue(fNonDefaultCaret == null); else if (fIsOverwriting) fNonDefaultCaret= createOverwriteCaret(styledText); else if (SMART_INSERT == mode) fNonDefaultCaret= createInsertCaret(styledText); else if (INSERT == mode) fNonDefaultCaret= createRawInsertModeCaret(styledText); if (fNonDefaultCaret != null) { styledText.setCaret(fNonDefaultCaret); fNonDefaultCaretImage= fNonDefaultCaret.getImage(); } else if (fInitialCaret != styledText.getCaret()) styledText.setCaret(fInitialCaret); }
private void updateCaret() { if (fSourceViewer == null || fSourceViewer.getTextWidget() == null) { return; } StyledText styledText= fSourceViewer.getTextWidget(); InsertMode mode= getInsertMode(); styledText.setCaret(null); disposeNonDefaultCaret(); if (getPreferenceStore() == null || !getPreferenceStore().getBoolean(PREFERENCE_USE_CUSTOM_CARETS)) Assert.isTrue(fNonDefaultCaret == null); else if (fIsOverwriting) fNonDefaultCaret= createOverwriteCaret(styledText); else if (SMART_INSERT == mode) fNonDefaultCaret= createInsertCaret(styledText); else if (INSERT == mode) fNonDefaultCaret= createRawInsertModeCaret(styledText); if (fNonDefaultCaret != null) { styledText.setCaret(fNonDefaultCaret); fNonDefaultCaretImage= fNonDefaultCaret.getImage(); } else if (fInitialCaret != styledText.getCaret()) styledText.setCaret(fInitialCaret); }
private void createVariableLabel(Composite parent, String varText, String labelText) { StyledText styledTextWidget = new StyledText(parent, SWT.NONE); styledTextWidget.setText(varText); styledTextWidget.setBackground(parent.getBackground()); styledTextWidget.setEditable(false); styledTextWidget.setCaret(null); //Set caret null this will hide caret styledTextWidget.addMouseListener(new MouseListener() { @Override public void mouseUp(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseDown(MouseEvent e) { // TODO Auto-generated method stub } @Override public void mouseDoubleClick(MouseEvent e) { StyledText text = (StyledText)(e.getSource()); Control control = text; text.selectAll(); String title = Activator.getResourceString("easyshell.message.copytoclipboard"); String message = text.getText(); Utils.copyToClipboard(message); Utils.showToolTipInfo(control, title, message); text.setSelection(0, 0); } }); Label label = new Label(parent, 0); label.setText(labelText); }
BidiUtil.addLanguageListener(this, runnable); setCaret(defaultCaret); calculateScrollBars(); createKeyBindings();
BidiUtil.addLanguageListener(this, runnable); setCaret(defaultCaret); calculateScrollBars(); createKeyBindings();
BidiUtil.addLanguageListener(this, runnable); setCaret(defaultCaret); calculateScrollBars(); createKeyBindings();
BidiUtil.addLanguageListener(this, runnable); setCaret(defaultCaret); calculateScrollBars(); createKeyBindings();
BidiUtil.addLanguageListener(this, runnable); setCaret(defaultCaret); calculateScrollBars(); createKeyBindings();