1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

launch bar: "launch" button name in LC edit dialog

- use same name as in LaunchConfigurationDialog, i.e. Run, Debug, etc.

Change-Id: I497ff5c7913c47e3cfeb736557a3c8e90040d2ef
This commit is contained in:
Alena Laskavaia 2015-05-05 11:19:25 -04:00
parent 3e548fced4
commit 03ab4beaf8

View file

@ -85,7 +85,8 @@ public class LaunchConfigurationEditDialog extends LaunchConfigurationProperties
createButton(leftButtonComp, DELETE_ID, Messages.LaunchConfigurationEditDialog_0, false);
createButton(leftButtonComp, DUPLICATE_ID, Messages.LaunchConfigurationEditDialog_1, false);
createButton(leftButtonComp, LAUNCH_ID, Messages.LaunchConfigurationEditDialog_2, false);
// launch button text same as in eclipse LaunchConfigurationDialog - mode name
createButton(leftButtonComp, LAUNCH_ID, getLaunchButtonText(), false);
Composite mainButtonComp = new Composite(composite, SWT.NONE);
layout = new GridLayout();
@ -103,6 +104,10 @@ public class LaunchConfigurationEditDialog extends LaunchConfigurationProperties
return composite;
}
protected String getLaunchButtonText() {
return DebugPlugin.getDefault().getLaunchManager().getLaunchMode(getMode()).getLabel();
}
@Override
protected void createButtonsForButtonBar(Composite parent) {
// Do nothing since we now have the buttons created above.