[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Cdt-launch-inbox] [Bug 160016] New: Inconsistence in CreateLaunchConfigurationAction
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=160016
Product/Component: CDT / cdt-launch
Summary: Inconsistence in CreateLaunchConfigurationAction
Product: CDT
Version: 3.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P3
Component: cdt-launch
AssignedTo: cdt-launch-inbox@xxxxxxxxxxx
ReportedBy: achapiro@xxxxxxx
See
protected void performAction() {
....
try {
ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(LaunchConfigurationsMessages.CreateLaunchConfigurationAction_New_configuration_2));
ILaunchConfigurationTabGroup tabGroup =
LaunchConfigurationPresentationManager.getDefault().getTabGroup(wc.getType(),
getMode());
// this only works because this action is only present when the
dialog is open
ILaunchConfigurationDialog dialog =
LaunchConfigurationsDialog.getCurrentlyVisibleLaunchConfigurationDialog();
tabGroup.createTabs(dialog, dialog.getMode());
ILaunchConfigurationTab[] tabs = tabGroup.getTabs();
for (int i = 0; i < tabs.length; i++) {
ILaunchConfigurationTab tab = tabs[i];
tab.setLaunchConfigurationDialog(dialog);
}
tabGroup.setDefaults(wc);
...
The last call sets ICDTLaunchConfigurationConstants.ATTR_PLATFORM to "*" .
Before that it's been not initialized yet. However, some tabs initialization
methods try to use this value which now is the name of the host OS (for
example, for me it is "win32"), which is usually wrong and leads to some
unexpected problems (see for examle CMainTabs.setDefault(...), invocation of
getContext).
--
Configure bugzilla e-mail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.