Dialoge Box [message #453493] |
Tue, 01 August 2006 03:24  |
Eclipse User |
|
|
|
Originally posted by: vindhyalesh.huawei.com
hi,
i have created rigt click delete action which should delete the item. i
am using the MessageDialog.openConfirmation() method to open the delete
dialogs. in this dialog on ok its working means deleting the item,but on
cancel too its deleting the item,please suggest me a solution,urgently
required.....
thanks in advance..
Regards,
Vindhyalesh
|
|
|
|
|
Re: Dialoge Box [message #453500 is a reply to message #453498] |
Tue, 01 August 2006 06:19   |
Eclipse User |
|
|
|
Hey,
For the same you can try this
MessageDialog deleteDialog = new MessageDialog(shell, "Delete", null,"Are
you sure you wanna delete?",MessageDialog.QUESTION,
new String[] { "Yes", "No" }, 0);
int id = deleteDialog.open();
switch (id) {
case 0:
// Your code for deleting
case 1: // Nothing is done here.
break;
}
I'm using the same logic to throw a confirmation dialog upon window exit.
Try this. It works fine for me. Do let me know if it works.
regards,
Srivatsan
|
|
|
|
|
|
|
|
Re: Dialoge Box [message #453512 is a reply to message #453508] |
Tue, 01 August 2006 09:05  |
Eclipse User |
|
|
|
Originally posted by: vindhyalesh.huawei.com
hi,
no,actually i need a popup check box inside a view which will open up
on some menu action or tool bar action etc. so that user can select some
or all the check boxes........please provide me the solution.
Regards.
Vindhyalesh
|
|
|
Powered by
FUDForum. Page generated in 0.05328 seconds