Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogTray.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2005 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.jface.dialogs.DialogTray; | |
14 | |
15 import java.lang.all; | |
16 | |
17 import org.eclipse.swt.widgets.Composite; | |
18 import org.eclipse.swt.widgets.Control; | |
19 | |
20 /** | |
21 * <p> | |
22 * This class is the abstract superclass of all dialog trays. A tray can be opened | |
23 * in any <code>TrayDialog</code>. | |
24 * </p> | |
25 * | |
26 * @see org.eclipse.jface.dialogs.TrayDialog | |
27 * @since 3.2 | |
28 */ | |
29 public abstract class DialogTray { | |
30 | |
31 /** | |
32 * Creates the contents (widgets) that will be contained in the tray. | |
33 * <p> | |
34 * Tray implementions must not set a layout on the parent composite, or assume | |
35 * a particular layout on the parent. The tray dialog will allocate space | |
36 * according to the natural size of the tray, and will fill the tray area with the | |
37 * tray's contents. | |
38 * </p> | |
39 * | |
40 * @param parent the composite that will contain the tray | |
41 * @return the contents of the tray, as a <code>Control</code> | |
42 */ | |
43 protected abstract Control createContents(Composite parent); | |
44 package Control createContents_package(Composite parent){ | |
45 return createContents(parent); | |
46 } | |
47 } |