public void showTooltip( String label, Image image, int screenX, int screenY ) { toolTip.setImage( image ); toolTip.setText( label ); toolTip.hide(); toolTip.show( new org.eclipse.swt.graphics.Point( screenX, screenY ) ); }
public void widgetSelected( SelectionEvent event ) { if ( list.getSelectionCount() <= 0 ) { return; } String name = list.getSelection()[0]; String value = variables.getVariable( name ); Rectangle shellBounds = shell.getBounds(); String message = BaseMessages.getString( PKG, "TextVar.VariableValue.Message", name, value ); if ( name.startsWith( Const.INTERNAL_VARIABLE_PREFIX ) ) { message += BaseMessages.getString( PKG, "TextVar.InternalVariable.Message" ); } toolTip.setText( message ); toolTip.hide(); toolTip.show( new Point( shellBounds.width, 0 ) ); } } );
toolTip.show( new org.eclipse.swt.graphics.Point( screenX, screenY ) );
toolTip.setImage( GUIResource.getInstance().getImageDisabledHop() ); toolTip.show( new org.eclipse.swt.graphics.Point( screenX, screenY ) ); } else { newTip = null;
toolTip.setBackgroundColor( GUIResource.getInstance().getColor( 255, 254, 225 ) ); toolTip.setForegroundColor( GUIResource.getInstance().getColor( 0, 0, 0 ) ); toolTip.show( new org.eclipse.swt.graphics.Point( move.x + 10, move.y + 10 ) ); toolTip.setBackgroundColor( GUIResource.getInstance().getColor( 255, 254, 225 ) ); toolTip.setForegroundColor( GUIResource.getInstance().getColor( 0, 0, 0 ) ); toolTip.show( new org.eclipse.swt.graphics.Point( move.x + 10, move.y + 10 ) );
toolTip.setImage( null ); toolTip.setText( "This step does not accept any input from other steps" ); toolTip.show( new org.eclipse.swt.graphics.Point( real.x, real.y ) ); toolTip .setText( "This step doesn't pass any output to other steps. (except perhaps for targetted output)" ); toolTip.show( new org.eclipse.swt.graphics.Point( real.x, real.y ) );
toolTip.setImage( null ); toolTip.setText( "The start entry can only be used at the start of a Job" ); toolTip.show( new org.eclipse.swt.graphics.Point( real.x, real.y ) );
@Override public void mouseHover( MouseEvent e ) { Point coord = new Point( e.x, e.y ); TableItem item = table.getItem( coord ); if ( item != null ) { if ( item.getBounds( columnIndex ).contains( coord ) ) { String contents = item.getText( columnIndex ); if ( !Utils.isEmpty( contents ) ) { toolTip.setText( contents ); toolTip.show( coord ); return; } } } toolTip.hide(); }
@Override public void mouseHover( MouseEvent e ) { Point coord = new Point( e.x, e.y ); TableItem item = table.getItem( coord ); if ( item != null ) { if ( item.getBounds( columnIndex ).contains( coord ) ) { String contents = item.getText( columnIndex ); if ( !Utils.isEmpty( contents ) ) { toolTip.setText( contents ); toolTip.show( coord ); return; } } } toolTip.hide(); }
@Override public void mouseHover( MouseEvent e ) { Point coord = new Point( e.x, e.y ); TableItem item = table.getItem( coord ); if ( item != null ) { if ( item.getBounds( columnIndex ).contains( coord ) ) { String contents = item.getText( columnIndex ); if ( !Utils.isEmpty( contents ) ) { toolTip.setText( contents ); toolTip.show( coord ); return; } } } toolTip.hide(); }
private static void showToolTipSWTJface(Control control, int style, String title, String message) { DefaultToolTip tooltip = new DefaultToolTip(control, org.eclipse.jface.window.ToolTip.NO_RECREATE, true); tooltip.setHideDelay(TOOLTIP_HIDE_DELAY); tooltip.setText("[" + title+ "]\n\n" + message); tooltip.setImage(control.getDisplay().getSystemImage(/*SWT.ICON_INFORMATION*/ style)); tooltip.show(control.toDisplay(control.getSize().x/2, 5)); }