@Override public void widgetSelected(SelectionEvent e) { if (!currentText) { imageType.setEnabled(false); textType.setEnabled(true); if (label != null && !label.isDisposed()) { label.setVisible(false); label.dispose(); } text = new Text(grpValue, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI); text.setEditable(false); text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); text.setText(value); tranformText(textType, text); currentText = true; } } });
private FieldDecorationData getDecorationData(FieldDecoration dec) { for (int i = 0; i < DECORATION_SLOTS; i++) { if (decDatas[i] != null && dec == decDatas[i].decoration && decDatas[i].label != null && !decDatas[i].label.isDisposed()) { return decDatas[i]; } } return null; }
public boolean isDisposed() { return( label.isDisposed()); }
private FieldDecorationData getDecorationData(FieldDecoration dec) { for (int i = 0; i < DECORATION_SLOTS; i++) { if (decDatas[i] != null && dec == decDatas[i].decoration && decDatas[i].label != null && !decDatas[i].label.isDisposed()) { return decDatas[i]; } } return null; }
@Override public void runSupport() { if(status != null && !status.isDisposed()) status.setText(text); } });
/** * Set the message in the message label. */ private void setMessage(String messageString) { //must not set null text in a label message = messageString == null ? "" : messageString; //$NON-NLS-1$ if (messageLabel == null || messageLabel.isDisposed()) return; messageLabel.setText(message); }
@Override public void processReinit( Object aControlInitValue ) { if ( ( label != null ) && ( ! label.isDisposed() ) ) { label.setText( (aControlInitValue != null ) ? (String) aControlInitValue : "" ); } } }
public void setStatusMessage(String message) { if (statusLabel != null && !statusLabel.isDisposed()) { if (message == null) { statusLabel.setText(""); //$NON-NLS-1$ } else { statusLabel.setText(message); } } } }
public void setStatusMessage(String message) { if (statusLabel != null && !statusLabel.isDisposed()) { if (message == null) { statusLabel.setText(""); //$NON-NLS-1$ } else { statusLabel.setText(message); } } } });
private void updateDescription() { if((fShowAllDescription != null) && !fShowAllDescription.isDisposed()) { if(fShowAllSelected) { fShowAllDescription.setText(StringSubstitutionMessages.StringVariableSelectionDialog_11); } else { fShowAllDescription.setText(StringSubstitutionMessages.StringVariableSelectionDialog_10); } } }
@Override public void setStatusMessage(String message) { if (statusLabel != null && !statusLabel.isDisposed()) { if (message == null) { statusLabel.setText(""); //$NON-NLS-1$ } else { statusLabel.setText(message); } } } }
@Override public void setStatusMessage(String message) { if (statusLabel != null && !statusLabel.isDisposed()) { if (message == null) { statusLabel.setText(""); //$NON-NLS-1$ } else { statusLabel.setText(message); } } } });
/** * Sets the message for the repetition affordance text at the bottom of the proposal. Only has * an effect if {@link ContentAssistant#isRepeatedInvocationMode()} returns <code>true</code>. * * @param message the new caption * @since 3.2 */ void setMessage(String message) { Assert.isNotNull(message); if (isActive() && fMessageText != null && !fMessageText.isDisposed()) fMessageText.setText(message + " "); //$NON-NLS-1$ }
private void fillFileInfoSection() { if (topLabel == null || topLabel.isDisposed()) { return; } topLabel.setText( "" ); refreshInfoCanvas(); }
/** * Update the message label. Required if the monitor is forked. */ private void update() { if (messageLabel == null || messageLabel.isDisposed()) { return; } messageLabel.update(); }
public void setLabel(final String text){ if(text == null || label == null || label.isDisposed()){ return; } label.getDisplay().asyncExec(new Runnable(){ public void run(){ label.setText(text); } }); }
/** * Updates the label in the bottom right with the current count of implicit plug-ins */ private void updateCount() { if (fCount != null && !fCount.isDisposed()) fCount.setText(NLS.bind(PDEUIMessages.TableSection_itemCount, Integer.toString(fViewer.getTable().getItemCount()))); }
protected void updateLabel() { if (fCount != null && !fCount.isDisposed()) fCount.setText(NLS.bind(PDEUIMessages.TableSection_itemCount, Integer.toString(getTableViewer().getTable().getItemCount()))); } }
@Override public void run() { animatedImage.stop(); animatedImage.dispose(); loadingProgress.dispose(); if ( !loadingText.isDisposed()){ loadingText.setText(MessageText.getString("subscriptions.listwindow.failed")); } } });
/** * This method is called when the elements of the backing list are changed * to refresh the standard dialog widgets. * * @since 3.8 */ protected void handleElementsChanged() { boolean enabled = !fFilteredList.isEmpty(); if (fMessage != null && !fMessage.isDisposed()) fMessage.setEnabled(enabled); fFilteredList.setEnabled(enabled); updateOkState(); }