use of org.eclipse.egit.ui.internal.components.RemoteSelectionCombo.SelectionType in project egit by eclipse.
the class RepositorySelectionPage method createRemotePanel.
private void createRemotePanel(final Composite parent) {
remoteButton = new Button(parent, SWT.RADIO);
remoteButton.setText(UIText.RepositorySelectionPage_configuredRemoteChoice + // $NON-NLS-1$
":");
remoteButton.setSelection(true);
remotePanel = new Composite(parent, SWT.NULL);
remotePanel.setLayout(new GridLayout());
final GridData gd = new GridData();
gd.grabExcessHorizontalSpace = true;
gd.horizontalAlignment = SWT.FILL;
remotePanel.setLayoutData(gd);
SelectionType selectionType = sourceSelection ? SelectionType.FETCH : SelectionType.PUSH;
remoteCombo = new RemoteSelectionCombo(remotePanel, SWT.NULL, selectionType);
remoteConfig = remoteCombo.setItems(configuredRemotes);
remoteCombo.addRemoteSelectionListener(new IRemoteSelectionListener() {
@Override
public void remoteSelected(RemoteConfig rc) {
remoteConfig = rc;
checkPage();
}
});
}
Aggregations