Commit eebb6f75 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

Merge pull request #260 from bonitasoft/feat/BS-14251-provideBiggerWarningIcon

BS-14251: Bigger warning icon to guide user when generating script based
parents 08096e2e f49f11b7
......@@ -68,8 +68,10 @@ import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.ISharedImages;
......@@ -137,7 +139,9 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
private void createReminderText(final EMFDataBindingContext dbc, final Composite composite) {
final CLabel reminder = new CLabel(composite, SWT.NONE);
reminder.setImage(sharedImagesService.getImage(ISharedImages.IMG_OBJS_WARN_TSK));
final Display d = Display.getCurrent();
final Image img = d.getSystemImage(SWT.ICON_WARNING);
reminder.setImage(img);
reminder.setLayoutData(GridDataFactory.fillDefaults().hint(600, SWT.DEFAULT).create());
final Button autoGeneratedOperationButton = new Button(composite, SWT.RADIO);
final Button manuallyDefinedOperationButton = new Button(composite, SWT.RADIO);
......@@ -150,15 +154,12 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
autoGeneratedOperationButton.setText(Messages.autoGeneratedOperationStepButton);
manuallyDefinedOperationButton.setText(Messages.manuallyDefinedOperationStepButton);
dbc.bindValue(actionObservable, PojoObservables.observeValue(this, "isAutogeneratedOperation"));
} else {
reminder.setText(Messages.reminderForProcessMessage);
autoGeneratedOperationButton.setText(Messages.autoGeneratedOperationProcessButton);
manuallyDefinedOperationButton.setText(Messages.manuallyDefinedOperationProcessButton);
dbc.bindValue(actionObservable, PojoObservables.observeValue(this, "isAutogeneratedScript"));
}
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment