mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-03-28 14:56:28 +01:00

Add SWTBot to test that the Launch Configuration, when opened via the Launch Bar, displays a warning in the message area. The Launch Bar Launch Configuration is, confusingly, handled by 2 different classes depending on whether a new configuration is being created (NewLaunchConfigEditPage) or edited (LaunchBarLaunchConfigDialog). When using NewLaunchConfigEditPage, the existing LaunchConfigurationTabGroupViewer.getWarningMessage() mechanism is used. This was added to eclipse-platform in Bug 386673 (commit 231ef13). When using LaunchBarLaunchConfigDialog (when editing), the new getWarningMessage() mechanism, copied from the existing, is used. In both classes above, logic was added to update the message when a tab change occurs.
26 lines
998 B
XML
26 lines
998 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?eclipse version="3.4"?>
|
|
<plugin>
|
|
<extension
|
|
point="org.eclipse.debug.ui.launchConfigurationTabs">
|
|
<tab
|
|
class="org.eclipse.launchbar.ui.tests.internal.CustomLaunchConfigTab"
|
|
group="org.eclipse.pde.ui.launcher.WorkbenchLauncherTabGroup"
|
|
id="org.eclipse.launchbar.ui.tests.internal.MyCustomTab"
|
|
name="My Custom Tab">
|
|
<placement
|
|
after="org.eclipse.debug.ui.prototypeTab">
|
|
</placement>
|
|
</tab>
|
|
<!-- Test for Launch Bar Launch Configuration Warnings -->
|
|
<tab
|
|
class="org.eclipse.launchbar.ui.tests.internal.WarningLaunchConfigTab"
|
|
group="org.eclipse.pde.ui.launcher.WorkbenchLauncherTabGroup"
|
|
id="org.eclipse.launchbar.ui.tests.internal.WarningLaunchConfigTab"
|
|
name="Warning Tab">
|
|
<placement
|
|
after="my.custom.tab">
|
|
</placement>
|
|
</tab>
|
|
</extension>
|
|
</plugin>
|