Dialoge Box [message #453493] |
Tue, 01 August 2006 07: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 10:19 |
Srivatsan Messages: 55 Registered: July 2009 |
Member |
|
|
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 #453502 is a reply to message #453500] |
Tue, 01 August 2006 11:07 |
Eclipse User |
|
|
|
Originally posted by: vindhyalesh.huawei.com
hi,
thanx a lot,its working for me...looking for more help in thr future as
i am new to this field.......reply please
Regards,
Vindhyalesh
|
|
|
|
|
Re: Dialoge Box [message #453505 is a reply to message #453503] |
Tue, 01 August 2006 11:45 |
Eclipse User |
|
|
|
Originally posted by: vindhyalesh.huawei.com
hi Srivatsan,
inside a view i have to provide a popup check box on a right
click action so that when one performs an action,a pop up check box should
come inside the view so that he can select some or all of the
checkboxes.......
please suggest me a solution to achieve this......its urgent
thanks in advance.....
Best regards,
Vindhyalesh
|
|
|
|
Re: Dialoge Box [message #453512 is a reply to message #453508] |
Tue, 01 August 2006 13: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.05483 seconds