Changeset 23 for trunk/de.ugoe.cs.swe.exercises
- Timestamp:
- 10/19/09 23:28:05 (15 years ago)
- Location:
- trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/SettingsComposite.java
r22 r23 71 71 { 72 72 Label label = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL); 73 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1)); 74 } 75 new Label(this, SWT.NONE); 73 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 3, 1)); 74 } 76 75 { 77 76 Label lblMysqlHost = new Label(this, SWT.NONE); … … 126 125 { 127 126 Label label = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL); 128 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1)); 129 } 130 new Label(this, SWT.NONE); 127 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 3, 1)); 128 } 131 129 { 132 130 Label lblPdfLatexPath = new Label(this, SWT.NONE); … … 144 142 { 145 143 Label label = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL); 146 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1)); 147 } 148 new Label(this, SWT.NONE); 144 label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 3, 1)); 145 } 149 146 { 150 147 Label lblResearchGroup = new Label(this, SWT.NONE); -
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/SettingsDialog.java
r20 r23 53 53 super(parentShell); 54 54 this.getFileContents(); 55 setTitle("Settings"); 55 56 } 56 57 -
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/SettingsDialog2.java
r21 r23 6 6 import org.eclipse.swt.graphics.Point; 7 7 import org.eclipse.swt.layout.GridData; 8 import org.eclipse.swt.layout.GridLayout;9 8 import org.eclipse.swt.widgets.Composite; 10 9 import org.eclipse.swt.widgets.Control; 11 10 import org.eclipse.swt.widgets.Shell; 11 import org.eclipse.swt.widgets.TabFolder; 12 import org.eclipse.swt.widgets.TabItem; 12 13 13 14 public class SettingsDialog2 extends TitleAreaDialog { … … 21 22 setTitle("Settings"); 22 23 Composite area = (Composite) super.createDialogArea(parent); 23 Composite container = new Composite(area, SWT.NONE);24 container.setLayout(new GridLayout(1, false));25 24 { 26 GridData gridData = new GridData(GridData.FILL_BOTH); 27 gridData.grabExcessVerticalSpace = false; 28 container.setLayoutData(gridData); 29 } 30 { 31 Composite composite = new SettingsComposite(container, SWT.NONE); 32 composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); 25 TabFolder tabFolder = new TabFolder(area, SWT.NONE); 26 tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); 27 { 28 TabItem tbtmSettings = new TabItem(tabFolder, SWT.NONE); 29 tbtmSettings.setText("Settings"); 30 { 31 Composite composite = new SettingsComposite(tabFolder, SWT.NONE); 32 tbtmSettings.setControl(composite); 33 } 34 } 35 { 36 TabItem tbtmProfiledSettings = new TabItem(tabFolder, SWT.NONE); 37 tbtmProfiledSettings.setText("Profiled Settings"); 38 { 39 Composite composite = new SettingsProfileComposite(tabFolder, SWT.NONE); 40 tbtmProfiledSettings.setControl(composite); 41 } 42 } 33 43 } 34 44 -
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/SettingsHandler.java
r20 r23 13 13 IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event); 14 14 SettingsDialog dialog = new SettingsDialog(window.getShell()); 15 dialog.setTitle("Settings");15 // SettingsDialog2 dialog = new SettingsDialog2(window.getShell()); 16 16 dialog.open(); 17 17 return null;
Note: See TracChangeset
for help on using the changeset viewer.