use of org.jboss.tools.openshift.internal.ui.wizard.common.ResourceNameControl in project jbosstools-openshift by jbosstools.
the class BuildConfigPage method doCreateControls.
@Override
protected void doCreateControls(Composite parent, DataBindingContext dbc) {
GridLayoutFactory.fillDefaults().margins(10, 2).applyTo(parent);
Composite nameParent = new Composite(parent, SWT.NONE);
GridLayoutFactory.fillDefaults().numColumns(3).applyTo(nameParent);
GridDataFactory.fillDefaults().grab(true, false).applyTo(nameParent);
// basename for resources
new ResourceNameControl("Name: ") {
@Override
protected void layoutLabel(Label resourceNameLabel) {
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(false, false).applyTo(resourceNameLabel);
}
@Override
protected void layoutText(Text resourceNameText) {
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(2, 1).applyTo(resourceNameText);
}
}.doCreateControl(nameParent, dbc, model);
createSeparator(parent);
// git info
createSourceControls(parent, dbc);
createSeparator(parent);
// build triggers
createTriggers(parent, dbc);
createSeparator(parent);
// Env Variables Block
createEnvVariableControl(parent, dbc, "Build environment variables (Build and Runtime):", "Environment variables are used to configure and pass information to running containers. These environment variables will be available during your build and at runtime.");
}
use of org.jboss.tools.openshift.internal.ui.wizard.common.ResourceNameControl in project jbosstools-openshift by jbosstools.
the class DeployImagePage method doCreateControls.
@Override
protected void doCreateControls(Composite parent, DataBindingContext dbc) {
GridLayoutFactory.fillDefaults().numColumns(NUM_COLUMS).margins(10, 10).applyTo(parent);
createOpenShiftConnectionControl(parent, dbc);
createProjectControl(parent, dbc);
createSeparator(parent);
if (!model.originatedFromDockerExplorer()) {
createDockerConnectionControl(parent, dbc);
} else {
createDockerConnectionInfoControl(parent, dbc);
}
createImageNameControls(parent, dbc);
new ResourceNameControl() {
@Override
protected void layoutText(Text resourceNameText) {
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true, false).span(NUM_COLUMS - 1, 1).applyTo(resourceNameText);
}
}.doCreateControl(parent, dbc, model);
createSeparator(parent);
createPushToRegistrySettings(parent, dbc);
}
Aggregations