/** * setter for the tooltip * * @param string * text */ public void setToolTip( String text, Widget widget ) { switch ( widget ) { case LABEL: getLabel().setToolTipText( text ); break; case INPUT: getInput().setToolTipText( text ); break; default: break; } } }
public LabelText( Composite composite, int textStyle, String labelText, String toolTipText, int middle, int margin ) { super( composite, SWT.NONE ); props.setLook( this ); FormLayout formLayout = new FormLayout(); formLayout.marginWidth = 0; formLayout.marginHeight = 0; this.setLayout( formLayout ); wText = new Text( this, textStyle ); FormData fdText = new FormData(); fdText.left = new FormAttachment( middle, margin ); fdText.right = new FormAttachment( 100, 0 ); wText.setLayoutData( fdText ); wText.setToolTipText( toolTipText ); wLabel = new Label( this, SWT.RIGHT ); props.setLook( wLabel ); wLabel.setText( labelText ); FormData fdLabel = new FormData(); fdLabel.left = new FormAttachment( 0, 0 ); fdLabel.right = new FormAttachment( middle, 0 ); fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER ); wLabel.setLayoutData( fdLabel ); wLabel.setToolTipText( toolTipText ); }
private void minMaxExtraView() { // What is the state? // boolean maximized = sashForm.getMaximizedControl() != null; if ( maximized ) { // Minimize // sashForm.setMaximizedControl( null ); minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() ); minMaxButton.setToolTipText( BaseMessages .getString( PKG, "JobGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) ); } else { // Maximize // sashForm.setMaximizedControl( extraViewComposite ); minMaxButton.setImage( GUIResource.getInstance().getImageMinimizePanel() ); minMaxButton.setToolTipText( BaseMessages .getString( PKG, "JobGraph.ExecutionResultsPanel.MinButton.Tooltip" ) ); } }
private void minMaxExtraView() { // What is the state? // boolean maximized = sashForm.getMaximizedControl() != null; if ( maximized ) { // Minimize // sashForm.setMaximizedControl( null ); minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() ); minMaxButton .setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) ); } else { // Maximize // sashForm.setMaximizedControl( extraViewComposite ); minMaxButton.setImage( GUIResource.getInstance().getImageMinimizePanel() ); minMaxButton .setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MinButton.Tooltip" ) ); } }
fdLabel.top = new FormAttachment( wCombo, 0, SWT.CENTER ); wLabel.setLayoutData( fdLabel ); wLabel.setToolTipText( toolTipText );
fdLabel.top = new FormAttachment( wCombo, 0, SWT.CENTER ); wLabel.setLayoutData( fdLabel ); wLabel.setToolTipText( toolTipText );
fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER ); wLabel.setLayoutData( fdLabel ); wLabel.setToolTipText( toolTipText );
props.setLook( wlLogLevel ); wlLogLevel.setText( BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.LogLevel.Label" ) ); wlLogLevel.setToolTipText( BaseMessages.getString( PKG, "TransExecutionConfigurationDialog.LogLevel.Tooltip" ) ); FormData fdlLogLevel = new FormData(); fdlLogLevel.top = new FormAttachment( 0, 10 );
fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER ); wLabel.setLayoutData( fdLabel ); wLabel.setToolTipText( toolTipText );
wlStepPerfMaxSize.setToolTipText( BaseMessages.getString( PKG, "TransDialog.StepPerformanceMaxSize.Tooltip" ) ); props.setLook( wlStepPerfMaxSize ); FormData fdlStepPerfMaxSize = new FormData();
wlLogLevel.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.LogLevel.Tooltip" ) ); props.setLook( wlLogLevel ); FormData fdlLogLevel = new FormData(); lblStartJob.setToolTipText( BaseMessages.getString( PKG, "JobExecutionConfigurationDialog.StartCopy.Tooltip" ) ); props.setLook( lblStartJob ); FormData fd_lblStartJob = new FormData();
closeButton.setImage( GUIResource.getInstance().getImageClosePanel() ); closeButton .setToolTipText( BaseMessages.getString( PKG, "JobGraph.ExecutionResultsPanel.CloseButton.Tooltip" ) ); FormData fdClose = new FormData(); fdClose.right = new FormAttachment( 100, 0 ); minMaxButton.setImage( GUIResource.getInstance().getImageMaximizePanel() ); minMaxButton .setToolTipText( BaseMessages.getString( PKG, "JobGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) ); FormData fdMinMax = new FormData(); fdMinMax.right = new FormAttachment( closeButton, -Const.MARGIN );
closeButton.setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.CloseButton.Tooltip" ) ); FormData fdClose = new FormData(); fdClose.right = new FormAttachment( 100, 0 ); minMaxButton.setToolTipText( BaseMessages.getString( PKG, "TransGraph.ExecutionResultsPanel.MaxButton.Tooltip" ) ); FormData fdMinMax = new FormData(); fdMinMax.right = new FormAttachment( closeButton, -Const.MARGIN );
wlSharedObjectsFile.setLayoutData( fdlSharedObjectsFile ); wSharedObjectsFile = new TextVar( jobMeta, wSettingsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wlSharedObjectsFile.setToolTipText( BaseMessages.getString( PKG, "JobDialog.SharedObjectsFile.Tooltip" ) ); wSharedObjectsFile.setToolTipText( BaseMessages.getString( PKG, "JobDialog.SharedObjectsFile.Tooltip" ) ); props.setLook( wSharedObjectsFile );
wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "JobDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData();
wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "JobDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData();
wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData();
wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData();
wlLogTimeout.setToolTipText( BaseMessages.getString( PKG, "TransDialog.LogTimeout.Tooltip" ) ); props.setLook( wlLogTimeout ); FormData fdlLogTimeout = new FormData();
final Label wicon = new Label( this, SWT.RIGHT ); PropsUI.getInstance().setLook( wicon ); wicon.setToolTipText( BaseMessages.getString( PKG, "StyledTextComp.tooltip.InsertVariable" ) ); wicon.setImage( image ); wicon.setLayoutData( new FormDataBuilder().top().right( 100, 0 ).result() );