public void setText( String text ) { styledText.setText( text ); }
@Override public void widgetSelected(SelectionEvent e) { text.setText(""); } });
public void clearLog() { if ( jobLogText != null && !jobLogText.isDisposed() ) { jobLogText.setText( "" ); } }
public void clearLog() { if ( transLogText != null && !transLogText.isDisposed() ) { transLogText.setText( "" ); } Map<StepMeta, String> stepLogMap = transGraph.getStepLogMap(); if ( stepLogMap != null ) { stepLogMap.clear(); transGraph.getDisplay().asyncExec( new Runnable() { public void run() { transGraph.redraw(); } } ); } }
private void redo() { if ( redoStack.size() > 0 ) { UndoRedoStack urs = redoStack.remove( 0 ); if ( undoStack.size() == MAX_STACK_SIZE ) { undoStack.remove( undoStack.size() - 1 ); } UndoRedoStack rro = new UndoRedoStack( urs.getCursorPosition(), urs.getReplacedText(), styledText.getText(), urs .getEventLength(), urs.getType() ); bFullSelection = false; styledText.setText( urs.getReplacedText() ); if ( urs.getType() == UndoRedoStack.INSERT ) { styledText.setCaretOffset( urs.getCursorPosition() ); } else if ( urs.getType() == UndoRedoStack.DELETE ) { styledText.setCaretOffset( urs.getCursorPosition() + urs.getEventLength() ); styledText.setSelection( urs.getCursorPosition(), urs.getCursorPosition() + urs.getEventLength() ); if ( styledText.getSelectionCount() == styledText.getCharCount() ) { bFullSelection = true; } } undoStack.add( 0, rro ); } }
private void undo() { if ( undoStack.size() > 0 ) { UndoRedoStack urs = undoStack.remove( 0 ); if ( redoStack.size() == MAX_STACK_SIZE ) { redoStack.remove( redoStack.size() - 1 ); } UndoRedoStack rro = new UndoRedoStack( urs.getCursorPosition(), urs.getReplacedText(), styledText.getText(), urs .getEventLength(), urs.getType() ); bFullSelection = false; styledText.setText( urs.getReplacedText() ); if ( urs.getType() == UndoRedoStack.INSERT ) { styledText.setCaretOffset( urs.getCursorPosition() ); } else if ( urs.getType() == UndoRedoStack.DELETE ) { styledText.setCaretOffset( urs.getCursorPosition() + urs.getEventLength() ); styledText.setSelection( urs.getCursorPosition(), urs.getCursorPosition() + urs.getEventLength() ); if ( styledText.getSelectionCount() == styledText.getCharCount() ) { bFullSelection = true; } } redoStack.add( 0, rro ); } }
wlDesc.setText( message ); props.setLook( wlDesc );
expressionEditor.setText( this.formula ); expressionEditor.addModifyListener( new ModifyListener() { public void modifyText( ModifyEvent event ) {
helpLabel.setText( "Help" ); helpLabel.setCaret( null ); helpLabel.setEditable( false );
@Override public void widgetSelected(SelectionEvent e) { consoleText.setText(""); } });
public void clear () { textFrag = null; textCont = null; edit.setText(""); codedText = null; modified = false; }
private void resetChatMessages() { log.setText( "" ); messages.clear(); previous_says = null; synchronized( participants ){ participant_last_message_map.clear(); } }
@Override public void runSupport() { if (consoleText != null && !consoleText.isDisposed()) { consoleText.setText(""); } } });
public void reset() { if( styled_text.isDisposed()){ return; } ofs = 0; styled_text.setText(""); links.clear(); }
public void widgetSelected(SelectionEvent e) { if (doNothingButton.getSelection()) nextSteps.getTextWidget().setText( UIText.RebaseResultDialog_NextStepsDoNothing); }
/** * @param text */ public void setText(String text) { if (text != null) getTextWidget().setText(text); }
@Override public void handleEvent(Event e) { core.getIpFilterManager().getIPFilter().clearBlockedIPs(); textBlocked.setText( "" ); } });
/** * Sets the about item. * @param item about item */ public void setItem(AboutItem item) { this.item = item; if (item != null) { styledText.setText(item.getText()); setLinkRanges(item.getLinkRanges()); } }
@Override public Control createControl(Composite parent) { fTextViewer = new TextViewer(parent, SWT.READ_ONLY); fTextViewer.setDocument(new Document()); StyledText styleText = fTextViewer.getTextWidget(); styleText.setText("\r\n\r\n" + DebugUIMessages.EmptyViewTab_Unable_to_create + "\n" + getRenderingName() + "\n\n" + DebugUIMessages.ErrorRendering_0 + fException.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return fTextViewer.getControl(); }
protected Control createDialogArea(Composite parent) { GridData gd = new GridData(GridData.FILL_BOTH); StyledText text = new StyledText(parent, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL); text.setLayoutData(gd); text.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND)); text.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); text.setText(resultString); return text; } }