mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Fix for 178673 by Jason Montoyo, CDT does not compile against platform 3.3 M6
This commit is contained in:
parent
35357e4366
commit
dcfbb03147
1 changed files with 7 additions and 9 deletions
|
@ -18,12 +18,11 @@ import org.eclipse.core.resources.IProject;
|
|||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.content.IContentTypeManager;
|
||||
import org.eclipse.jface.layout.TableColumnAdapter;
|
||||
import org.eclipse.jface.layout.TableColumnLayout;
|
||||
import org.eclipse.jface.preference.PreferencePage;
|
||||
import org.eclipse.jface.viewers.ColumnWeightData;
|
||||
import org.eclipse.jface.window.Window;
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.layout.FillLayout;
|
||||
import org.eclipse.swt.layout.GridData;
|
||||
import org.eclipse.swt.layout.GridLayout;
|
||||
import org.eclipse.swt.widgets.Button;
|
||||
|
@ -87,9 +86,8 @@ public class ProjectLanguageMappingPropertyPage extends PropertyPage {
|
|||
|
||||
Composite tableParent = new Composite(composite, SWT.NONE);
|
||||
tableParent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
|
||||
tableParent.setLayout(new FillLayout());
|
||||
|
||||
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
|
||||
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION);
|
||||
fTable.setHeaderVisible(true);
|
||||
fTable.setLinesVisible(true);
|
||||
|
||||
|
@ -101,12 +99,12 @@ public class ProjectLanguageMappingPropertyPage extends PropertyPage {
|
|||
languageColumn
|
||||
.setText(PreferencesMessages.ProjectLanguagesPropertyPage_languageColumn);
|
||||
|
||||
TableColumnAdapter columnAdapter = new TableColumnAdapter(fTable);
|
||||
columnAdapter.addColumnData(new ColumnWeightData(1,
|
||||
TableColumnLayout layout = new TableColumnLayout();
|
||||
layout.setColumnData(contentTypeColumn, new ColumnWeightData(1,
|
||||
MINIMUM_COLUMN_WIDTH, true));
|
||||
columnAdapter.addColumnData(new ColumnWeightData(1,
|
||||
layout.setColumnData(languageColumn, new ColumnWeightData(1,
|
||||
MINIMUM_COLUMN_WIDTH, true));
|
||||
tableParent.addControlListener(columnAdapter);
|
||||
tableParent.setLayout(layout);
|
||||
|
||||
Composite buttons = new Composite(composite, SWT.NONE);
|
||||
buttons.setLayout(new GridLayout());
|
||||
|
|
Loading…
Add table
Reference in a new issue