use of org.eclipse.jdt.internal.ui.refactoring.ChangeParametersControl in project xtext-xtend by eclipse.
the class ExtractMethodUserInputPage method createParameterControl.
protected void createParameterControl(Composite result) {
if (!refactoring.getParameterInfos().isEmpty()) {
ChangeParametersControl cp = new ChangeParametersControl(result, SWT.NONE, "Parameters", new IParameterListChangeListener() {
@Override
public void parameterChanged(ParameterInfo parameter) {
parameterModified();
}
@Override
public void parameterListChanged() {
parameterModified();
}
@Override
public void parameterAdded(ParameterInfo parameter) {
updatePreview();
}
}, ChangeParametersControl.Mode.EXTRACT_METHOD);
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.horizontalSpan = 2;
cp.setLayoutData(gridData);
cp.setInput(refactoring.getParameterInfos());
}
}
Aggregations