use of org.talend.metadata.managment.ui.dialog.HadoopPropertiesDialog in project tbd-studio-se by Talend.
the class StandardHCInfoForm method addHadoopPropertiesFields.
private void addHadoopPropertiesFields() {
hadoopPropertiesComposite = new Composite(propertiesComposite, SWT.NONE);
GridLayout hadoopPropertiesLayout = new GridLayout(1, false);
hadoopPropertiesLayout.marginWidth = 0;
hadoopPropertiesLayout.marginHeight = 0;
hadoopPropertiesComposite.setLayout(hadoopPropertiesLayout);
hadoopPropertiesComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
propertiesDialog = new HadoopPropertiesDialog(getShell(), getHadoopProperties()) {
@Override
protected boolean isReadOnly() {
return !isEditable();
}
@Override
protected List<Map<String, Object>> getLatestInitProperties() {
return getHadoopProperties();
}
@Override
public void applyProperties(List<Map<String, Object>> properties) {
getConnection().setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesJsonStr(properties));
}
};
propertiesDialog.createPropertiesFields(hadoopPropertiesComposite);
}
use of org.talend.metadata.managment.ui.dialog.HadoopPropertiesDialog in project tbd-studio-se by Talend.
the class HDIInfoForm method addHadoopPropertiesFields.
private void addHadoopPropertiesFields() {
hadoopPropertiesComposite = new Composite(propertiesComposite, SWT.NONE);
GridLayout hadoopPropertiesLayout = new GridLayout(1, false);
hadoopPropertiesLayout.marginWidth = 0;
hadoopPropertiesLayout.marginHeight = 0;
hadoopPropertiesComposite.setLayout(hadoopPropertiesLayout);
hadoopPropertiesComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
propertiesDialog = new HadoopPropertiesDialog(getShell(), getHadoopProperties()) {
@Override
protected boolean isReadOnly() {
return !isEditable();
}
@Override
protected List<Map<String, Object>> getLatestInitProperties() {
return getHadoopProperties();
}
@Override
public void applyProperties(List<Map<String, Object>> properties) {
getConnection().setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesJsonStr(properties));
}
};
propertiesDialog.createPropertiesFields(hadoopPropertiesComposite);
}
use of org.talend.metadata.managment.ui.dialog.HadoopPropertiesDialog in project tbd-studio-se by Talend.
the class GoogleDataprocInfoForm method addHadoopPropertiesFields.
private void addHadoopPropertiesFields() {
hadoopPropertiesComposite = new Composite(propertiesComposite, SWT.NONE);
GridLayout hadoopPropertiesLayout = new GridLayout(1, false);
hadoopPropertiesLayout.marginWidth = 0;
hadoopPropertiesLayout.marginHeight = 0;
hadoopPropertiesComposite.setLayout(hadoopPropertiesLayout);
hadoopPropertiesComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
propertiesDialog = new HadoopPropertiesDialog(getShell(), getHadoopProperties()) {
@Override
protected boolean isReadOnly() {
return !isEditable();
}
@Override
protected List<Map<String, Object>> getLatestInitProperties() {
return getHadoopProperties();
}
@Override
public void applyProperties(List<Map<String, Object>> properties) {
getConnection().setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesJsonStr(properties));
}
};
propertiesDialog.createPropertiesFields(hadoopPropertiesComposite);
}
use of org.talend.metadata.managment.ui.dialog.HadoopPropertiesDialog in project tbd-studio-se by Talend.
the class DataBricksInfoForm method addHadoopPropertiesFields.
private void addHadoopPropertiesFields() {
hadoopPropertiesComposite = new Composite(propertiesComposite, SWT.NONE);
GridLayout hadoopPropertiesLayout = new GridLayout(1, false);
hadoopPropertiesLayout.marginWidth = 0;
hadoopPropertiesLayout.marginHeight = 0;
hadoopPropertiesComposite.setLayout(hadoopPropertiesLayout);
hadoopPropertiesComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
propertiesDialog = new HadoopPropertiesDialog(getShell(), getHadoopProperties()) {
@Override
protected boolean isReadOnly() {
return !isEditable();
}
@Override
protected List<Map<String, Object>> getLatestInitProperties() {
return getHadoopProperties();
}
@Override
public void applyProperties(List<Map<String, Object>> properties) {
getConnection().setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesJsonStr(properties));
}
};
propertiesDialog.createPropertiesFields(hadoopPropertiesComposite);
}
use of org.talend.metadata.managment.ui.dialog.HadoopPropertiesDialog in project tbd-studio-se by Talend.
the class AbstractHadoopSubForm method addHadoopPropertiesFields.
protected void addHadoopPropertiesFields() {
T connection = getConnection();
HadoopClusterConnection hcConnection = HCRepositoryUtil.getRelativeHadoopClusterConnection(connection);
String hadoopPropertiesOfCluster = StringUtils.trimToEmpty(hcConnection.getHadoopProperties());
List<Map<String, Object>> hadoopPropertiesListOfCluster = HadoopRepositoryUtil.getHadoopPropertiesList(hadoopPropertiesOfCluster);
propertiesDialog = new HadoopPropertiesDialog(getShell(), hadoopPropertiesListOfCluster, getHadoopProperties()) {
@Override
protected boolean isReadOnly() {
return !isEditable();
}
@Override
protected List<Map<String, Object>> getLatestInitProperties() {
return getHadoopProperties();
}
@Override
public void applyProperties(List<Map<String, Object>> properties) {
getConnection().setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesJsonStr(properties));
}
};
propertiesDialog.createPropertiesFields(this);
}
Aggregations