@Override public void createControl(Composite parent) { super.createControl(parent); Dialog.applyDialogFont(getControl()); // add selection? createDynamicGroup((Composite) getControl()); // switchTo(updateData(tree, right, showSup, CDTMainWizardPage.this, getWizard()), // getDescriptor(tree)); }
@Override public void createControl(Composite parent) { FieldDecoration infoDecor = FieldDecorationRegistry.getDefault() .getFieldDecoration(FieldDecorationRegistry.DEC_INFORMATION); // Create controls super.createControl(parent); Composite control = (Composite) getControl(); Group grpProjectSettings = new Group(control, SWT.NONE); grpProjectSettings.setText("Project Settings"); new Label(grpProjectSettings, SWT.NONE).setText("Version:"); txtVersion = new Text(grpProjectSettings, SWT.BORDER); new Label(grpProjectSettings, SWT.NONE).setText("Name:"); txtName = new Text(grpProjectSettings, SWT.BORDER); ControlDecoration txtNameDecor = new ControlDecoration(txtName, SWT.LEFT | SWT.CENTER); txtNameDecor.setImage(infoDecor.getImage()); txtNameDecor.setDescriptionText("Defines a human-readable name for the bundle"); new Label(grpProjectSettings, SWT.NONE).setText("Description:"); txtDescription = new Text(grpProjectSettings, SWT.BORDER); ControlDecoration txtDescDecor = new ControlDecoration(txtDescription, SWT.LEFT | SWT.CENTER); txtDescDecor.setImage(infoDecor.getImage()); txtDescDecor.setDescriptionText("Defines a short human-readable description for the bundle"); new Label(grpProjectSettings, SWT.NONE).setText("Provider:"); txtVendor = new Text(grpProjectSettings, SWT.BORDER); ControlDecoration txtVendorDecor = new ControlDecoration(txtVendor, SWT.LEFT | SWT.CENTER); txtVendorDecor.setImage(infoDecor.getImage()); txtVendorDecor.setDescriptionText( "The name of the company, organisation or individual providing the bundle"); // Set values txtDescription.setText(description); txtVersion.setText(version.toString()); txtVendor.setText(vendor); txtName.setText(name); // Add listeners ModifyListener txtModListener = new ModifyListener() { public void modifyText(ModifyEvent e) { description = txtDescription.getText(); vendor = txtVendor.getText(); name = txtName.getText(); validateSettings(); } }; txtDescription.addModifyListener(txtModListener); txtVersion.addModifyListener(txtModListener); txtVendor.addModifyListener(txtModListener); txtName.addModifyListener(txtModListener); // Layout control.setLayout(new GridLayout()); grpProjectSettings.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); grpProjectSettings.setLayout(new GridLayout(2, false)); txtDescription.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); txtVersion.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); txtVendor.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); txtName.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); }
@Override public void createControl(Composite parent) { super.createControl(parent); Composite control = (Composite) getControl(); createPluginDetailsGroup(control); }