Skip to content

Commit

Permalink
Make Select Configurations Dialog resizable
Browse files Browse the repository at this point in the history
Fixes #240
  • Loading branch information
jonahgraham committed Jan 18, 2023
1 parent 3feeedf commit 7bcef26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/org.eclipse.cdt.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.ui; singleton:=true
Bundle-Version: 8.0.0.qualifier
Bundle-Version: 8.0.100.qualifier
Bundle-Activator: org.eclipse.cdt.ui.CUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.jface.viewers.CheckStateChangedEvent;
import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.jface.viewers.ICheckStateListener;
Expand All @@ -28,7 +30,6 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
Expand Down Expand Up @@ -63,6 +64,11 @@ public ConfigMultiSelectionDialog(Shell parentShell) {
super(parentShell);
}

@Override
protected boolean isResizable() {
return true;
}

@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
Expand All @@ -87,13 +93,13 @@ protected Control createContents(Composite parent) {
protected Control createDialogArea(Composite parent) {
Composite composite = new Composite(parent, SWT.NULL);
composite.setFont(parent.getFont());
composite.setLayout(new GridLayout(1, true));
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
composite.setLayout(GridLayoutFactory.fillDefaults().margins(5, 5).create());
composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());

// Create the current config table
table = new Table(composite,
SWT.CHECK | SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL | SWT.FULL_SELECTION);
table.setLayoutData(new GridData(GridData.FILL));
table.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
table.setHeaderVisible(true);
table.setLinesVisible(true);

Expand Down

0 comments on commit 7bcef26

Please sign in to comment.