Changeset 7600
- Timestamp:
- 05/23/08 14:49:50 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/jsnyder/ComponentProject/src/edu/vt/ossie/dialogs/AddPortDialog.java
r7577 r7600 31 31 * @param parentShell 32 32 */ 33 p rotectedAddPortDialog(Shell parentShell)33 public AddPortDialog(Shell parentShell) 34 34 { 35 35 super(parentShell); 36 36 37 37 } 38 38 39 39 // ---------------------------------------------------------- 40 40 @Override … … 43 43 Composite comp = (Composite)super.createDialogArea(parent); 44 44 comp.setLayout(new GridLayout(2, false)); 45 45 46 46 Composite interfaceComposite = new Composite(comp, SWT.NONE); 47 47 interfaceComposite.setLayout(new GridLayout()); 48 48 49 49 Label interfaceLabel = new Label(interfaceComposite, SWT.NONE); 50 50 interfaceLabel.setText("Interface"); 51 51 GridData data = new GridData(SWT.CENTER, SWT.CENTER, false, false); 52 52 interfaceLabel.setLayoutData(data); 53 53 54 54 Tree interfacesTree = new Tree(interfaceComposite, SWT.NONE); 55 55 data = new GridData(SWT.FILL, SWT.FILL, true, true); … … 57 57 data.minimumWidth = 200; 58 58 interfacesTree.setLayoutData(data); 59 59 60 60 Button importButton = new Button(interfaceComposite, SWT.PUSH); 61 61 importButton.setText("Import"); 62 62 63 63 Composite portComposite = new Composite(comp, SWT.NONE); 64 64 portComposite.setLayout(new GridLayout()); 65 65 66 66 Label portNameLabel = new Label(portComposite, SWT.NONE); 67 67 portNameLabel.setText("Port Name"); 68 68 69 69 Text portNameInputField = new Text(portComposite, SWT.NONE); 70 70 data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); 71 71 data.widthHint = 200; 72 72 portNameInputField.setLayoutData(data); 73 73 74 74 Label portTypeLabel = new Label(portComposite, SWT.NONE); 75 75 portTypeLabel.setText("Port Type"); 76 76 77 77 Combo portTypeCombo = new Combo(portComposite, SWT.NONE); 78 78 portTypeCombo.add("Uses"); 79 79 portTypeCombo.add("Provides"); 80 80 portTypeCombo.setText("Uses"); 81 82 83 84 85 81 82 83 84 85 86 86 87 87 return comp; 88 88 } 89 89 90 90 // ---------------------------------------------------------- 91 91 @Override … … 96 96 newShell.setText("Add Port"); 97 97 } 98 98 99 99 public static void main(String[] args) 100 100 { … … 103 103 AddPortDialog apd = new AddPortDialog(shell); 104 104 apd.open(); 105 105 106 106 while (!shell.isDisposed()) { 107 107 if (!display.readAndDispatch()) {