mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 458650 - NPE when creating a "C/C++ Remote Application" launch
config Change-Id: I72f48aa4fa7b46e0d5ba5e5e8f6e4877269ea7f5 Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
This commit is contained in:
parent
d95f95521e
commit
196d978624
2 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2014 PalmSource, Inc. and others.
|
||||
* Copyright (c) 2006, 2015 PalmSource, Inc. and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -224,8 +224,6 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
handleRemoteConnectionPropertiesSelected();
|
||||
}
|
||||
});
|
||||
|
||||
updateConnectionPulldown();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -698,7 +696,7 @@ public class RemoteCDSFMainTab extends CMainTab {
|
|||
|
||||
updateTargetProgFromConfig(config);
|
||||
updateSkipDownloadFromConfig(config);
|
||||
updateConnectionButtons();
|
||||
updateConnectionPulldown();
|
||||
isInitializing = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010, 2011 Nokia Corporation and others.
|
||||
* Copyright (c) 2010, 2015 Nokia Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -611,12 +611,15 @@ public abstract class CAbstractMainTab extends CLaunchConfigurationTab {
|
|||
*/
|
||||
protected void updateComboTooltip() {
|
||||
if (fBuildConfigCombo != null) {
|
||||
// fBuildConfigCombo might not be loaded when controls are created
|
||||
String configId = (String) fBuildConfigCombo.getData(Integer.toString(fBuildConfigCombo.getSelectionIndex()));
|
||||
String tooltip = EMPTY_STRING;
|
||||
if (configId.equals(AUTO_CONFIG)) {
|
||||
tooltip = LaunchMessages.CMainTab_Build_Config_Auto_tooltip;
|
||||
} else if (configId.equals(EMPTY_STRING)) {
|
||||
tooltip = LaunchMessages.CMainTab_Build_Config_Active_tooltip;
|
||||
if (configId != null) {
|
||||
if (configId.equals(AUTO_CONFIG)) {
|
||||
tooltip = LaunchMessages.CMainTab_Build_Config_Auto_tooltip;
|
||||
} else if (configId.equals(EMPTY_STRING)) {
|
||||
tooltip = LaunchMessages.CMainTab_Build_Config_Active_tooltip;
|
||||
}
|
||||
}
|
||||
fBuildConfigCombo.setToolTipText(tooltip);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue