public void setCurrentInfo(String currentInfo) { currentInfo = currentInfo.replaceAll( "\n", "\n\t" ); this.currentInfo.setText("\t" + currentInfo); this.currentInfo.getParent().layout(); }
private void updateDescription(String text) { if (text == null) text = ""; //$NON-NLS-1$ descriptionLabel.setText(text); descriptionLabel.getParent().layout(); } };
/** * Updates the count of bundles that will be imported */ private void updateCount() { counterLabel.setText(NLS.bind(UIText.GitScmUrlImportWizardPage_counter, Integer.valueOf(descriptions.length))); counterLabel.getParent().layout(); }
@Override public void modifyText(ModifyEvent e) { if (okButton.isEnabled()) { return; } errorMessageLabel.setText(IInternalDebugCoreConstants.EMPTY_STRING); errorMessageLabel.getParent().update(); okButton.setEnabled(true); } }
private void updateCount() { fCounterLabel.setText(NLS.bind(PDEUIMessages.ImportWizard_expressPage_total, Integer.toString(fImportListViewer.getTable().getItemCount()))); fCounterLabel.getParent().layout(); }
private void showHideDelayAmountWidgets() { final boolean visible = (action == GroupElementPostLaunchAction.DELAY || action == GroupElementPostLaunchAction.OUTPUT_REGEXP); fActionParamLabel.setVisible(visible); fActionParamWidget.setVisible(visible); if (action == GroupElementPostLaunchAction.DELAY) { fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_9); } else if (action == GroupElementPostLaunchAction.OUTPUT_REGEXP) { fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_regexp); } fActionParamLabel.getParent().layout(); }
private void updateCount() { if (fCountTotal <= 0) { // Since we filter the list of available plug-ins the total may differ from the model count fCountTotal = fAvailableListViewer.getTable().getItemCount(); } fCountLabel.setText(NLS.bind(PDEUIMessages.ImportWizard_DetailedPage_count, (new String[] {Integer.toString(fImportListViewer.getTable().getItemCount()), Integer.toString(fCountTotal)}))); fCountLabel.getParent().layout(); }
/** * Sets the error message. * * @param msg the new error message */ protected void setErrorMessage(String msg) { errorMessageUI.setText(msg); Composite shell = errorMessageUI.getParent(); while (!(shell instanceof Shell)) shell = shell.getParent(); shell.setSize(shell.computeSize(-1, -1)); }
private void updateCount() { fCountLabel.setText(NLS.bind(PDEUIMessages.ImportWizard_DetailedPage_count, Integer.toString(fSelectedViewer.getTable().getItemCount()), Integer.toString( fAvailableViewer.getTable().getItemCount() + fSelectedViewer.getTable().getItemCount()))); fCountLabel.getParent().layout(); }
void setSkipped() { isSkipped = true; checkDoneLabel.setImage(getSkipImage()); if(initialized) { checkDoneLabel.getParent().layout(); } } /*package*/
private void updateCount() { fCountLabel.setText(NLS.bind(PDEUIMessages.ImportWizard_DetailedPage_count, Integer.toString(fSelectedListViewer.getTable().getItemCount()), Integer.toString(fAvailableListViewer.getTable().getItemCount() + fSelectedListViewer.getTable().getItemCount()) )); fCountLabel.getParent().layout(); }
public void setComplete() { completed = true; checkDoneLabel.setImage(getCompleteImage()); if(initialized) { checkDoneLabel.getParent().layout(); } }
@Override public void handleEvent(Event event) { if (event.type == SWT.MouseDown) { down = true; } else if (event.type == SWT.MouseUp && down) { Widget widget = (event.widget instanceof Label) ? ((Label) event.widget).getParent() : event.widget; selectedDeviceTemplate = (DeviceTemplate) widget.getData("obj"); if (selectedDeviceTemplate == null) { Debug.out("selectedDeviceTemplate is null!"); } skinnedDialog.close(); down = false; } } };
/** * Sets the tool tip to the given text. * * @param text the tool tip */ public void setToolTip(String text) { if (isTextVisible()) { fElementText.getParent().setToolTipText(text); fElementText.setToolTipText(text); fElementImage.setToolTipText(text); } else { fElementText.getParent().setToolTipText(null); fElementText.setToolTipText(null); fElementImage.setToolTipText(text); } }
/** * Sets the tool tip to the given text. * * @param text the tool tip */ public void setToolTip(String text) { if (isTextVisible()) { fElementText.getParent().setToolTipText(text); fElementText.setToolTipText(text); fElementImage.setToolTipText(text); } else { fElementText.getParent().setToolTipText(null); fElementText.setToolTipText(null); fElementImage.setToolTipText(text); } }
/** * Sets the tool tip to the given text. * * @param text the tool tip */ public void setToolTip(String text) { if (isTextVisible()) { fElementText.getParent().setToolTipText(text); fElementText.setToolTipText(text); fElementImage.setToolTipText(text); } else { fElementText.getParent().setToolTipText(null); fElementText.setToolTipText(null); fElementImage.setToolTipText(text); } }
private void updatePreview() { if( lblPreview != null ) { Display display = getDisplay(); Font font = new Font( display, fontData ); lblPreview.setFont( font ); Color color = new Color( display, rgb ); lblPreview.setForeground( color ); lblColor.setBackground( color ); lblPreview.getParent().layout( true ); } }
@Override void renderInitialization( Label label ) throws IOException { RemoteObject remoteObject = createRemoteObject( label, TYPE ); remoteObject.setHandler( new LabelOperationHandler( label ) ); remoteObject.set( "parent", getId( label.getParent() ) ); remoteObject.set( "style", createJsonArray( getStyles( label, ALLOWED_STYLES ) ) ); }
@Override void renderInitialization( Label label ) throws IOException { RemoteObject remoteObject = RemoteObjectFactory.createRemoteObject( label, TYPE ); remoteObject.setHandler( new LabelOperationHandler( label ) ); remoteObject.set( "parent", getId( label.getParent() ) ); remoteObject.set( "style", createJsonArray( getStyles( label, ALLOWED_STYLES ) ) ); renderProperty( label, PROP_MARKUP_ENABLED, isMarkupEnabledFor( label ), false ); }