_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);
spacerData = new GridData();
spacerData.horizontalSpan = 3;
spacer.setLayoutData(spacerData);
spacer = new Label(fieldParent, SWT.NONE);
spacerData = new GridData();
spacerData.horizontalSpan = 3;
spacer.setLayoutData(spacerData);
spacer.setText("Editor information");
spacer = new Label(fieldParent, SWT.SEPARATOR | SWT.HORIZONTAL);
spacer.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
addField(new StringFieldEditor(PreferenceConstants.ORGANISATION, "&Organisation:",
fieldParent));
addField(new StringFieldEditor(PreferenceConstants.ORGANISATION_URL, "Organisation &URL:",
fieldParent));
}