/** * {@inheritDoc} */ @Override public void createContent(IManagedForm managedForm, Composite parent) { FormToolkit toolkit = managedForm.getToolkit(); section = toolkit.createSection(parent, Section.TITLE_BAR | Section.EXPANDED); section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); section.setText(title); descriptionLabel = toolkit.createLabel(section, ""); descriptionLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); section.setDescriptionControl(descriptionLabel); Composite main = toolkit.createComposite(section); main.setLayout(new GridLayout(1, false)); section.setClient(main); super.createContent(new DirtyStateDelegatingManagedForm(managedForm, section), main); }
/** * {@inheritDoc} */ @Override public void createContent(IManagedForm managedForm, Composite parent) { Section section = getSection(); section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); section.setText(title); FormToolkit toolkit = managedForm.getToolkit(); main = toolkit.createComposite(getSection(), SWT.NONE); GridLayout layout = new GridLayout(AbstractRuleEditingElement.NUM_GRID_COLUMNS, false); layout.horizontalSpacing = 8; main.setLayout(layout); descriptionLabel = toolkit.createLabel(section, ""); descriptionLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); section.setDescriptionControl(descriptionLabel); section.setClient(main); createToolbar(); updateEnabledState(); listValidation = new ValidationControlDecoration<Label>(descriptionLabel, this, false) { @Override protected boolean validate(Label control) { return !ruleElements.isEmpty(); } }; listValidation.setDescriptionText("At least one rule expression must be defined!"); }
FormText text = toolkit.createFormText(section, true); text.setText(PDEUIMessages.SecondaryBundlesSection_desc, false, false); section.setDescriptionControl(text);
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public ProfileSelectionPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.cmrRepositoryDefinition = input.getCmrRepositoryDefinition(); this.environment = input.getEnvironment(); this.profiles = new ArrayList<>(input.getProfiles()); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createClient(getSection(), toolkit); // text and description on our own getSection().setText("Profiles"); Label label = toolkit.createLabel(getSection(), "Select profiles to use within environment"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); // profile change listener InspectIT.getDefault().getInspectITConfigurationInterfaceManager().addProfileChangeListener(this); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public EnvironmentSettingsPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createPart(getSection(), toolkit); // text and description on our own getSection().setText("Strategies and Options"); Label label = toolkit.createLabel(getSection(), "Define different options and strategies of the environment."); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public SensorOptionsPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createClient(getSection(), toolkit); // text and description on our own getSection().setText("Sensor Options"); Label label = toolkit.createLabel(getSection(), "Define options for specific sensors"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public JmxSensorOptionsPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createClient(getSection(), toolkit); // text and description on our own getSection().setText("JMX Sensor Options"); Label label = toolkit.createLabel(getSection(), "Define options for JMX sensor"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public PlatformSensorSelectionPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createClient(getSection(), toolkit); // text and description on our own getSection().setText("Platform Sensors"); Label label = toolkit.createLabel(getSection(), "Select platform sensor to be active within environment"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public EUMSettingsPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createPart(getSection(), toolkit); // text and description on our own getSection().setText("User Experience Monitoring"); Label label = toolkit.createLabel(getSection(), "Configuration of the User Experience Monitoring"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }
/** * Default constructor. * * @param formPage * {@link FormPage} section belongs to. * @param parent * Parent composite. * @param toolkit * {@link FormToolkit} * @param style * Style used for creating the section. */ public LoggingSensorOptionsPart(FormPage formPage, Composite parent, FormToolkit toolkit, int style) { super(parent, toolkit, style); EnvironmentEditorInput input = (EnvironmentEditorInput) formPage.getEditor().getEditorInput(); this.environment = input.getEnvironment(); this.formPage = formPage; this.formPage.getEditor().addPropertyListener(this); // client createClient(getSection(), toolkit); // text and description on our own getSection().setText("Logging Sensor Options"); Label label = toolkit.createLabel(getSection(), "Define options for logging sensors"); label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); getSection().setDescriptionControl(label); }