[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Adding more buttons to TitleAreaDialog?
|
- From: Anima Gupta <agupta@xxxxxxxxxxx>
- Date: Fri, 27 May 2005 09:31:13 -0700
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
thanks for that kick! I had not downloaded the source until now (plain
ignorance) - I just did, and it was so easy -
protected void createButtonsForButtonBar(Composite parent){
//System.out.println("Creating buttons...");
createButton(parent, IDialogConstants.OK_ID,"Update",true);
createButton(parent, IDialogConstants.CANCEL_ID,"Exit",true);
createButton(parent, 2,"Delete",true);
}
Anima.
Alex Fitzpatrick wrote:
Anima Gupta wrote:
Hi,
Besides the standard "OK" and "Cancel" buttons, I want to add more
buttons to my Dialog which extends from TitleAreaDialog, anyone knows
how to do this?
Look at the existing sublasses of Dialog.
Use the Source Luke!