Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
f49f11b7
Commit
f49f11b7
authored
Sep 02, 2015
by
Aurelien Pupier
Browse files
BS-14251: Bigger warning icon to guide user when generating script based
on Business Data for Contract
parent
f560e3e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.contract/src/org/bonitasoft/studio/contract/ui/wizard/CreateContractInputFromBusinessObjectWizardPage.java
View file @
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"
));
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment