mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
Bug 440393 - Add update mechanisms to force UI updates for activeTarget
and activeLaunchDescriptor. Change-Id: Idef23b3e8adc4cc2a580bb052ac364824c088023 Signed-off-by: Jonathan Williams <jonwilliams@qnx.com> Reviewed-on: https://git.eclipse.org/r/30465 Reviewed-by: Doug Schaefer <dschaefer@qnx.com> Tested-by: Doug Schaefer <dschaefer@qnx.com>
This commit is contained in:
parent
d82e3738e1
commit
cb5eeb1a5d
2 changed files with 17 additions and 0 deletions
|
@ -24,6 +24,8 @@ public interface ILaunchBarManager extends IAdaptable {
|
|||
|
||||
void setActiveLaunchDescriptor(ILaunchDescriptor configDesc) throws CoreException;
|
||||
|
||||
void updateLaunchDescriptor(ILaunchDescriptor configDesc) throws CoreException;
|
||||
|
||||
ILaunchMode[] getLaunchModes() throws CoreException;
|
||||
|
||||
ILaunchMode getActiveLaunchMode() throws CoreException;
|
||||
|
@ -38,6 +40,8 @@ public interface ILaunchBarManager extends IAdaptable {
|
|||
|
||||
void setActiveLaunchTarget(ILaunchTarget target) throws CoreException;
|
||||
|
||||
void updateLaunchTarget(ILaunchTarget target) throws CoreException;
|
||||
|
||||
ILaunchConfigurationType getLaunchConfigurationType(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException;
|
||||
|
||||
ILaunchConfiguration getLaunchConfiguration(ILaunchDescriptor descriptor, ILaunchTarget target) throws CoreException;
|
||||
|
|
|
@ -390,6 +390,13 @@ public class LaunchBarManager extends PlatformObject implements ILaunchBarManage
|
|||
return InstanceScope.INSTANCE.getNode(Activator.PLUGIN_ID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLaunchDescriptor(ILaunchDescriptor configDesc) {
|
||||
for (Listener listener : listeners) {
|
||||
listener.activeConfigurationDescriptorChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ILaunchMode[] getLaunchModes() throws CoreException {
|
||||
ILaunchConfigurationType configType = getLaunchConfigurationType(activeLaunchDesc, activeLaunchTarget);
|
||||
|
@ -503,6 +510,12 @@ public class LaunchBarManager extends PlatformObject implements ILaunchBarManage
|
|||
PREF_ACTIVE_LAUNCH_TARGET, target.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLaunchTarget(ILaunchTarget target) {
|
||||
for (Listener listener : listeners)
|
||||
listener.activeLaunchTargetChanged();
|
||||
}
|
||||
|
||||
protected ILaunchTarget getDeafultLaunchTarget() {
|
||||
ILaunchTarget target = null;
|
||||
ILaunchTarget[] targets = getLaunchTargets();
|
||||
|
|
Loading…
Add table
Reference in a new issue