1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 22:05:44 +02:00

Bug 406162 - A text field is added to the LLVM preference page after

adding an include directory

Remove the Text control. It doesn't look like it was being used in any
way.

Change-Id: Ib9266678c1211309979b96c2e8cda6087c759254
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14532
This commit is contained in:
Marc-Andre Laperle 2013-07-13 17:43:54 -04:00
parent d23faeeed1
commit ad080ac26c

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2010-2013 Nokia Siemens Networks Oyj, Finland. * Copyright (c) 2010, 2013 Nokia Siemens Networks Oyj, Finland and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -13,11 +13,9 @@ package org.eclipse.cdt.managedbuilder.llvm.ui.preferences;
import org.eclipse.cdt.managedbuilder.llvm.ui.LlvmEnvironmentVariableSupplier; import org.eclipse.cdt.managedbuilder.llvm.ui.LlvmEnvironmentVariableSupplier;
import org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil; import org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog; import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.List; import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;
/** /**
* New implementation of LlvmListEditor. * New implementation of LlvmListEditor.
@ -44,8 +42,6 @@ public class IncludePathListEditor extends LlvmListEditor {
*/ */
protected String getNewInputObject() { protected String getNewInputObject() {
DirectoryDialog dlg = new DirectoryDialog(getShell()); DirectoryDialog dlg = new DirectoryDialog(getShell());
final Text text = new Text(getShell(), SWT.BORDER);
dlg.setFilterPath(text.getText());
dlg.setText(Messages.IncludePathListEditor_0); dlg.setText(Messages.IncludePathListEditor_0);
dlg.setMessage(Messages.IncludePathListEditor_1); dlg.setMessage(Messages.IncludePathListEditor_1);
String dir = dlg.open(); String dir = dlg.open();