in org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/ui/ClasspathSetupEditor.java [66:136]
public ClasspathSetupEditor(Composite parent, int style, IProject project) {
super(parent, style);
setLayout(new GridLayout(2, false));
osgiAvailable = IvyPlugin.getDefault().isOsgiAvailable();
resolveInWorkspaceCheck = new Button(this, SWT.CHECK);
resolveInWorkspaceCheck.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
false, 2, 1));
resolveInWorkspaceCheck.setText("Resolve dependencies in workspace");
resolveInWorkspaceCheck
.setToolTipText("Will replace jars on the classpath with workspace projects");
transitiveResolveCheck = new Button(this, SWT.CHECK);
transitiveResolveCheck.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
false, 2, 1));
transitiveResolveCheck.setText("Resolve dependencies transitively");
transitiveResolveCheck
.setToolTipText("If unchecked, will resolve dependency with transitivity disabled regardless of the settings in the ivy.xml file");
readOSGiMetadataCheck = new Button(this, SWT.CHECK);
readOSGiMetadataCheck.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false,
2, 1));
readOSGiMetadataCheck.setText("Read and setup OSGi visibility metadata");
readOSGiMetadataCheck
.setToolTipText("Will setup access rules regarding OSGi metadata like Export-Package");
readOSGiMetadataCheck.setEnabled(osgiAvailable);
acceptedTypesLabel = new Label(this, SWT.NONE);
acceptedTypesLabel.setText("Accepted types:");
acceptedTypesText = new Text(this, SWT.SINGLE | SWT.BORDER);
acceptedTypesText.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
acceptedTypesText.setToolTipText(TOOLTIP_ACCEPTED_TYPES);
alphaOrderLabel = new Label(this, SWT.NONE);
alphaOrderLabel.setText("Order of the classpath entries:");
alphaOrderCheck = new Combo(this, SWT.READ_ONLY);
alphaOrderCheck.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
alphaOrderCheck.setToolTipText("Order of the artifacts in the classpath container");
alphaOrderCheck.add("From the ivy.xml");
alphaOrderCheck.add("Lexical");
Label label = new Label(this, SWT.NONE);
label.setText("Build the classpath with:");
label.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
Composite buttons = new Composite(this, SWT.NONE);
buttons.setLayout(new GridLayout(1, false));
GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1);
gridData.horizontalIndent = INDENT_BUTTONS;
buttons.setLayoutData(gridData);
selectCache = new Button(buttons, SWT.RADIO);
selectCache.setText("Ivy's cache");
selectRetrieve = new Button(buttons, SWT.RADIO);
selectRetrieve.setText("retrieved artifacts");
retrieveComposite = new RetrieveComposite(this, SWT.NONE, false, project);
gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1);
gridData.horizontalIndent = INDENT_RETRIEVE;
retrieveComposite.setLayoutData(gridData);
selectRetrieve.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
retrieveComposite.setEnabled(selectRetrieve.getSelection());
}
});
}