File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
plugin/src/de/anbos/eclipse/easyshell/plugin/preferences Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -223,14 +223,11 @@ private void createTableViewer(Composite parent) {
223
223
// contentProvider
224
224
tableViewer .setInput (CommandDataStore .instance ());
225
225
226
- // Layout the viewer
227
- GridData gridData = new GridData ();
228
- gridData .verticalAlignment = GridData . FILL ;
226
+ // Layout the table viewer
227
+ GridData gridData = new GridData (GridData . FILL_BOTH );
228
+ gridData .heightHint = table . getItemHeight () * 20 ;
229
229
gridData .horizontalSpan = 2 ;
230
- gridData .grabExcessHorizontalSpace = true ;
231
- gridData .grabExcessVerticalSpace = true ;
232
- gridData .horizontalAlignment = GridData .FILL ;
233
- tableViewer .getControl ().setLayoutData (gridData );
230
+ table .setLayoutData (gridData );
234
231
235
232
tableViewer .addDoubleClickListener (new IDoubleClickListener () {
236
233
@ Override
Original file line number Diff line number Diff line change @@ -211,14 +211,11 @@ private void createTableViewer(Composite parent) {
211
211
// contentProvider
212
212
tableViewer .setInput (MenuDataStore .instance ());
213
213
214
- // Layout the viewer
215
- GridData gridData = new GridData ();
216
- gridData .verticalAlignment = GridData . FILL ;
214
+ // Layout the table viewer
215
+ GridData gridData = new GridData (GridData . FILL_BOTH );
216
+ gridData .heightHint = table . getItemHeight () * 20 ;
217
217
gridData .horizontalSpan = 2 ;
218
- gridData .grabExcessHorizontalSpace = true ;
219
- gridData .grabExcessVerticalSpace = true ;
220
- gridData .horizontalAlignment = GridData .FILL ;
221
- tableViewer .getControl ().setLayoutData (gridData );
218
+ table .setLayoutData (gridData );
222
219
223
220
tableViewer .addDoubleClickListener (new IDoubleClickListener () {
224
221
@ Override
You can’t perform that action at this time.
0 commit comments