/** * build icon cell */ protected void buildIconCell() { Image icon = Display.getCurrent().getSystemImage( SWT.ICON_INFORMATION ); this.iconLabel = new Label( this.dialog, SWT.NONE ); this.iconLabel.setImage( icon ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.iconLabel.setLayoutData( grdData ); }
/** * build icon cell */ protected void buildIconCell() { Image icon = Display.getCurrent().getSystemImage( SWT.ICON_INFORMATION ); this.iconLabel = new Label( this.dialog, SWT.NONE ); this.iconLabel.setImage( icon ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.iconLabel.setLayoutData( grdData ); }
/** * build icon cell */ protected void buildIconCell() { Image icon = Display.getCurrent().getSystemImage( SWT.ICON_INFORMATION ); this.iconLabel = new Label( this.dialog, SWT.NONE ); this.iconLabel.setImage( icon ); GridData grdData = new GridData(); grdData.horizontalIndent = DEFAULT_INDENT; grdData.verticalIndent = DEFAULT_INDENT; this.iconLabel.setLayoutData( grdData ); }
public CheckBoxToolTip( Control control ) { super( control, ToolTip.RECREATE, true ); image = control.getDisplay().getSystemImage( SWT.ICON_INFORMATION ); listeners = new ArrayList<CheckBoxToolTipListener>(); visible = false; display = control.getDisplay(); super.setRespectMonitorBounds( true ); super.setRespectDisplayBounds( true ); super.setHideDelay( 50000 ); super.setPopupDelay( 0 ); super.setHideOnMouseDown( false ); }
private void setWarningIcon( Display display ) { warningIcon = new Label( shell, SWT.NONE ); Image image = display.getSystemImage( SWT.ICON_WARNING ); warningIcon.setImage( image ); props.setLook( warningIcon ); FormData fdIcon = new FormData(); fdIcon.left = new FormAttachment( 0, 0 ); fdIcon.top = new FormAttachment( 0, 0 ); fdIcon.right = new FormAttachment( 0, image.getBounds().width ); fdIcon.bottom = new FormAttachment( 0, image.getBounds().height ); //icon should be at the top left corner warningIcon.setLayoutData( fdIcon ); }
image = display.getSystemImage( SWT.ICON_WARNING ); image = display.getSystemImage( SWT.ICON_INFORMATION ); image = display.getSystemImage( SWT.ICON_QUESTION ); image = display.getSystemImage( SWT.ICON_ERROR ); image = display.getSystemImage( SWT.ICON_WORKING );
shell.setImage( getImage() ); Image image = display.getSystemImage( SWT.ICON_WARNING );
Image icon = display.getSystemImage( SWT.ICON_QUESTION ); image.setImage( icon ); FormData imageData = new FormData();
Image icon = display.getSystemImage( SWT.ICON_QUESTION ); image.setImage( icon ); FormData imageData = new FormData();
wiInfo.setImage( display.getSystemImage( SWT.ICON_INFORMATION ) );
public void run() { image[0] = display.getSystemImage(imageID); } });
/** * Return the specified icon. * @param style the style to use * @return the image fit to the given style */ private Image createIcon() { if ((style & SWT.ICON_ERROR) != 0) { return shell.getDisplay().getSystemImage(SWT.ICON_ERROR); } if ((style & SWT.ICON_INFORMATION) != 0) { return shell.getDisplay().getSystemImage(SWT.ICON_INFORMATION); } if ((style & SWT.ICON_QUESTION) != 0) { return shell.getDisplay().getSystemImage(SWT.ICON_QUESTION); } if ((style & SWT.ICON_WARNING) != 0) { return shell.getDisplay().getSystemImage(SWT.ICON_WARNING); } if ((style & SWT.ICON_WORKING) != 0) { return shell.getDisplay().getSystemImage(SWT.ICON_INFORMATION);} return null; }
/** * Get an <code>Image</code> from the provide SWT image constant. * * @param imageID * the SWT image constant * @return image the image */ public Image getSWTImage(final int imageID) { return Display.getCurrent().getSystemImage(imageID); }
private void createImageSection(Composite composite) { Image image = composite.getDisplay().getSystemImage(dialogImageType); if (image != null) { Label label = new Label(composite, SWT.NONE); label.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false)); label.setImage(image); } }
@Override public void runSupport() { setLeftImage(Display.getDefault().getSystemImage(icon)); iconImage = Display.getDefault().getSystemImage(icon); } });
protected Image getDialogImage() { // create image return PlatformUI.getWorkbench().getDisplay().getSystemImage(SWT.ICON_ERROR); }
protected Image getDialogImage() { // create image return PlatformUI.getWorkbench().getDisplay().getSystemImage(SWT.ICON_WARNING); }
protected Image getDialogImage() { // create image return PlatformUI.getWorkbench().getDisplay().getSystemImage(SWT.ICON_INFORMATION); }
protected Image getDialogImage() { // create image return PlatformUI.getWorkbench().getDisplay().getSystemImage(SWT.ICON_INFORMATION); }
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)); }