Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,23 @@ public boolean performOk() {
@Override
protected Control createContents(Composite composite) {
noDefaultAndApplyButton();
GridData gData = new GridData(GridData.FILL_BOTH);
gData.heightHint = 650;
gData.widthHint = 460;
GridLayout layout = new GridLayout();

Composite innerContainer = new Composite(composite, SWT.NONE);
GridLayout innerLayout = new GridLayout();
innerLayout.numColumns = 2;
innerContainer.setLayout(innerLayout);
innerContainer.setLayout(new GridLayout(2, false));
innerContainer.setLayoutData(new GridData(GridData.FILL_BOTH));

// Create table
tableViewer = new TableViewer(innerContainer,
SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);
Table table = tableViewer.getTable();
table.setHeaderVisible(true);
table.setLinesVisible(true);
tableViewer.getControl().setLayoutData(gData);
tableViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));
String[] columnNames = new String[] { ConfMngtMessages.nexusPreferencePageID,
ConfMngtMessages.nexusPreferencePageURL, ConfMngtMessages.nexusPreferencePageRELEASE,
ConfMngtMessages.nexusPreferencePageSNAPSHOTS };

int[] columnWidth = new int[] { 70, 250, 73, 75 };
int[] columnWidth = new int[] { 70, 250, 73, 90 };
int[] columnAlignments = new int[] { SWT.LEFT, SWT.LEFT, SWT.CENTER, SWT.CENTER };

for (int i = 0; i < columnNames.length; i++) {
Expand All @@ -176,7 +171,7 @@ protected Control createContents(Composite composite) {

Composite buttons = new Composite(innerContainer, SWT.NONE);
buttons.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
layout = new GridLayout();
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
buttons.setLayout(layout);
Expand Down
Loading