mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
fixed bug with project list empty in launch config when C ui plugin was not loaded
This commit is contained in:
parent
7dcd5eaebe
commit
7bd90bdbd0
4 changed files with 9 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-03-19 David Inglis
|
||||
Fixed bug with not showing C Project lists with the launch config, when C UI Plugins was not
|
||||
created yet.
|
||||
|
||||
2003-03-18 Alain Magloire
|
||||
|
||||
* plugin.xml
|
||||
|
|
|
@ -14,6 +14,7 @@ import org.eclipse.cdt.debug.core.ICDebugConfiguration;
|
|||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.cdt.launch.AbstractCLaunchDelegate;
|
||||
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
|
||||
import org.eclipse.cdt.ui.CElementLabelProvider;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IAdaptable;
|
||||
|
@ -38,7 +39,6 @@ import org.eclipse.jface.viewers.LabelProvider;
|
|||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.IEditorPart;
|
||||
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
|
||||
import org.eclipse.ui.model.WorkbenchLabelProvider;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -254,7 +254,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
|
|||
* @return the selected binary or <code>null</code> if none.
|
||||
*/
|
||||
protected IBinary chooseBinary(List binList, String mode) {
|
||||
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new WorkbenchLabelProvider());
|
||||
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), new CElementLabelProvider());
|
||||
dialog.setElements(binList.toArray());
|
||||
dialog.setTitle("C Local Application"); //$NON-NLS-1$
|
||||
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
|
||||
|
|
|
@ -53,7 +53,6 @@ public class CEnvironmentTab extends CLaunchConfigurationTab {
|
|||
|
||||
protected Properties fElements;
|
||||
|
||||
private Composite fControl;
|
||||
protected TableViewer fVariableList;
|
||||
protected Button fBtnNew;
|
||||
protected Button fBtnEdit;
|
||||
|
|
|
@ -18,6 +18,7 @@ import org.eclipse.cdt.core.model.ICProject;
|
|||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.launch.internal.ui.LaunchImages;
|
||||
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
|
||||
import org.eclipse.cdt.ui.CElementLabelProvider;
|
||||
import org.eclipse.core.boot.BootLoader;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
|
@ -39,7 +40,6 @@ import org.eclipse.swt.widgets.Composite;
|
|||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.dialogs.ElementListSelectionDialog;
|
||||
import org.eclipse.ui.model.WorkbenchLabelProvider;
|
||||
|
||||
/**
|
||||
* A launch configuration tab that displays and edits project and
|
||||
|
@ -197,7 +197,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
}
|
||||
|
||||
IBinary[] executables = getBinaryFiles(getCProject());
|
||||
ILabelProvider labelProvider = new WorkbenchLabelProvider();
|
||||
ILabelProvider labelProvider = new CElementLabelProvider();
|
||||
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
|
||||
dialog.setElements(executables);
|
||||
dialog.setMessage("Choose a &program to run");
|
||||
|
@ -243,7 +243,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
ICProject[] projects;
|
||||
projects = getCProjects();
|
||||
|
||||
ILabelProvider labelProvider = new WorkbenchLabelProvider();
|
||||
ILabelProvider labelProvider = new CElementLabelProvider();
|
||||
ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
|
||||
dialog.setTitle("Project Selection");
|
||||
dialog.setMessage("Choose a &project to constrain the search for a program");
|
||||
|
|
Loading…
Add table
Reference in a new issue