explanation.setText("The url where your ivyconf file can be found. \n"
+ "Leave empty to reference the default ivy configuration.");
new Label(fieldParent, SWT.NONE).setLayoutData(new GridData(GridData.FILL,
GridData.BEGINNING, false, false, 3, 1)); // space
BooleanFieldEditor doR = new BooleanFieldEditor(PreferenceConstants.DO_RETRIEVE,
"Do a retrieve after resolve", fieldParent) {
protected void createControl(final Composite parent) {
super.createControl(parent);
final Button b = getChangeControl(parent);
b.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
_pattern.setEnabled(b.getSelection(), parent);
}
});
}
};
_pattern = new StringFieldEditor(PreferenceConstants.RETRIEVE_PATTERN, "Pattern",
fieldParent);
_pattern.setEnabled(getPreferenceStore().getBoolean(PreferenceConstants.DO_RETRIEVE),
fieldParent);
addField(doR);
addField(_pattern);
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation
.setText("Pattern example: lib/[conf]/[artifact].[ext]\n"
+ "To copy artifacts in folder named lib without revision by folder named like configurations");
new Label(fieldParent, SWT.NONE).setLayoutData(new GridData(GridData.FILL,
GridData.BEGINNING, false, false, 3, 1)); // space
addField(new StringFieldEditor(PreferenceConstants.ACCEPTED_TYPES, "Accepted types",
fieldParent));
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation
.setText("Comma separated list of artifact types to use in IvyDE Managed Dependencies Library\n"
+ "Example: jar, zip");
addField(new StringFieldEditor(PreferenceConstants.SOURCES_TYPES, "Sources types",
fieldParent));
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation.setText("Comma separated list of artifact types to be used as sources. \n"
+ "Example: source, src");
addField(new StringFieldEditor(PreferenceConstants.SOURCES_SUFFIXES, "Sources suffixes",
fieldParent));
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation.setText("Comma separated list of suffixes to match sources and artifacts. \n"
+ "Example: -source, -src");
addField(new StringFieldEditor(PreferenceConstants.JAVADOC_TYPES, "Javadoc types",
fieldParent));
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation.setText("Comma separated list of artifact types to be used as javadoc. \n"
+ "Example: javadoc");
addField(new StringFieldEditor(PreferenceConstants.JAVADOC_SUFFIXES, "Javadoc suffixes",
fieldParent));
new Label(fieldParent, SWT.NONE); // space
explanation = new Label(fieldParent, SWT.NONE);
explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2,
1));
explanation.setText("Comma separated list of suffixes to match javadocs and artifacts. \n"
+ "Example: -javadoc, -doc");
spacer = new Label(fieldParent, SWT.NONE);
spacerData = new GridData();
spacerData.horizontalSpan = 3;
spacer.setLayoutData(spacerData);
BooleanFieldEditor alphaOrder = new BooleanFieldEditor(
PreferenceConstants.ALPHABETICAL_ORDER,
"Order alphabetically the artifacts in the classpath container", fieldParent);
addField(alphaOrder);
spacer = new Label(fieldParent, SWT.NONE);