Confirmation Pop up [message #117489] |
Thu, 05 April 2007 11:08  |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Hi,
I'd like to pop up a Yes, No dialog when setting an attribute from the
diagram.
If Yes then pass the value to the model as usual.
If No then cancel the set operation.
Any pointers ?
Stu
|
|
|
Re: Confirmation Pop up [message #120081 is a reply to message #117489] |
Wed, 18 April 2007 03:49  |
Eclipse User |
|
|
|
Originally posted by: angelo.marguglio.eng.it
Hi Stu, AFAIU you can use this code, but I don't konw where to put this to
suite your aims
public static boolean openConfirm(String title, String message, Image img) {
MessageDialog dialog = new MessageDialog(new Shell(), title,
img, message, MessageDialog.WARNING, new String[] {
IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0);
return (dialog.open()==MessageDialog.OK);
}
"Stu" <evaandoli@dodo.com.au> ha scritto nel messaggio
news:ev33d5$mcd$1@build.eclipse.org...
> Hi,
> I'd like to pop up a Yes, No dialog when setting an attribute from the
> diagram.
> If Yes then pass the value to the model as usual.
> If No then cancel the set operation.
>
> Any pointers ?
> Stu
>
|
|
|
Powered by
FUDForum. Page generated in 0.06475 seconds