Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Confirmation Pop up
Confirmation Pop up [message #117489] Thu, 05 April 2007 11:08 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Standalone version of GMF diagram editor and output
Next Topic:Unique Id and Validation
Goto Forum:
  


Current Time: Sun Jun 22 05:16:04 EDT 2025

Powered by FUDForum. Page generated in 0.04785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top