Mercurial > projects > dwt-addons
comparison dwtx/jface/dialogs/TitleAreaDialog.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | 8ec40848221b |
children | c3583c6ec027 |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
129 } | 129 } |
130 | 130 |
131 /* | 131 /* |
132 * @see Dialog.createContents(Composite) | 132 * @see Dialog.createContents(Composite) |
133 */ | 133 */ |
134 protected Control createContents(Composite parent) { | 134 protected override Control createContents(Composite parent) { |
135 // create the overall composite | 135 // create the overall composite |
136 Composite contents = new Composite(parent, DWT.NONE); | 136 Composite contents = new Composite(parent, DWT.NONE); |
137 contents.setLayoutData(new GridData(GridData.FILL_BOTH)); | 137 contents.setLayoutData(new GridData(GridData.FILL_BOTH)); |
138 // initialize the dialog units | 138 // initialize the dialog units |
139 initializeDialogUnits(contents); | 139 initializeDialogUnits(contents); |
168 * | 168 * |
169 * @param parent | 169 * @param parent |
170 * The parent composite to contain the dialog area | 170 * The parent composite to contain the dialog area |
171 * @return the dialog area control | 171 * @return the dialog area control |
172 */ | 172 */ |
173 protected Control createDialogArea(Composite parent) { | 173 protected override Control createDialogArea(Composite parent) { |
174 // create the top level composite for the dialog area | 174 // create the top level composite for the dialog area |
175 Composite composite = new Composite(parent, DWT.NONE); | 175 Composite composite = new Composite(parent, DWT.NONE); |
176 GridLayout layout = new GridLayout(); | 176 GridLayout layout = new GridLayout(); |
177 layout.marginHeight = 0; | 177 layout.marginHeight = 0; |
178 layout.marginWidth = 0; | 178 layout.marginWidth = 0; |
327 * <code>Window</code> methods returns an initial size which is at least | 327 * <code>Window</code> methods returns an initial size which is at least |
328 * some reasonable minimum. | 328 * some reasonable minimum. |
329 * | 329 * |
330 * @return the initial size of the dialog | 330 * @return the initial size of the dialog |
331 */ | 331 */ |
332 protected Point getInitialSize() { | 332 protected override Point getInitialSize() { |
333 Point shellSize = super.getInitialSize(); | 333 Point shellSize = super.getInitialSize(); |
334 return new Point(Math.max( | 334 return new Point(Math.max( |
335 convertHorizontalDLUsToPixels(MIN_DIALOG_WIDTH), shellSize.x), | 335 convertHorizontalDLUsToPixels(MIN_DIALOG_WIDTH), shellSize.x), |
336 Math.max(convertVerticalDLUsToPixels(MIN_DIALOG_HEIGHT), | 336 Math.max(convertVerticalDLUsToPixels(MIN_DIALOG_HEIGHT), |
337 shellSize.y)); | 337 shellSize.y)); |