@@ -154,7 +154,7 @@ public void testGetMergedBundleMap_mixedPluginsFromWorkspaceWithAutomaticAddAndT
154
154
155
155
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
156
156
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0" , "plugin.b" ));
157
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
157
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
158
158
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*2.0.0" , "plugin.c" ));
159
159
wc .setAttribute (IPDELauncherConstants .SELECTED_TARGET_BUNDLES ,
160
160
Set .of ("plugin.x*2.0.0" , "plugin.x*3.0.0" , "plugin.y" ));
@@ -371,7 +371,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_noDisabledPlug
371
371
372
372
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
373
373
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0" ));
374
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
374
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
375
375
};
376
376
377
377
Set <BundleLocationDescriptor > expectedBundles = Set .of ( //
@@ -394,7 +394,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_singleVersionP
394
394
395
395
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
396
396
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0" ));
397
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
397
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
398
398
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.c" ));
399
399
};
400
400
@@ -417,7 +417,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_singleVersionP
417
417
418
418
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
419
419
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0" ));
420
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
420
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
421
421
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.c*1.0.0" ));
422
422
};
423
423
@@ -447,7 +447,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_multiVersionPl
447
447
448
448
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
449
449
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0" ));
450
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
450
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
451
451
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES ,
452
452
Set .of ("plugin.a*2.0.0" , "plugin.a*4.0.0" ));
453
453
};
@@ -471,7 +471,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_multiVersionPl
471
471
472
472
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
473
473
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ());
474
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
474
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
475
475
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES ,
476
476
Set .of ("plugin.a*1.0.0" , "plugin.a*3.0.0" ));
477
477
};
@@ -494,7 +494,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_multiVersionPl
494
494
495
495
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
496
496
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*2.0.0" ));
497
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
497
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
498
498
wc .setAttribute (IPDELauncherConstants .DESELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a" ));
499
499
};
500
500
@@ -516,7 +516,7 @@ public void testGetMergedBundleMap_automaticAddedWorkspacePlugins_sameMMMVersion
516
516
517
517
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
518
518
wc .setAttribute (IPDELauncherConstants .SELECTED_WORKSPACE_BUNDLES , Set .of ("plugin.a*1.0.0.202111250056" ));
519
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
519
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
520
520
};
521
521
522
522
Set <BundleLocationDescriptor > expectedBundles = Set .of ( //
@@ -777,7 +777,7 @@ public void testGetMergedBundleMap_workspacePluginAddedAutomaticallyAndTargetPlu
777
777
bundle ("plugin.b" , "1.0.1" ));
778
778
779
779
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
780
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
780
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
781
781
wc .setAttribute (IPDELauncherConstants .SELECTED_TARGET_BUNDLES , Set .of ("plugin.a" , "plugin.b*1.0.1" ));
782
782
};
783
783
@@ -799,7 +799,7 @@ public void testGetMergedBundleMap_workspacePluginAddedAutomaticallyAndTargetPlu
799
799
bundle ("plugin.a" , "1.0.0.202111102345" ));
800
800
801
801
Consumer <ILaunchConfigurationWorkingCopy > launchConfigSetup = wc -> {
802
- wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , true );
802
+ wc .removeAttribute (IPDELauncherConstants .AUTOMATIC_ADD );
803
803
wc .setAttribute (IPDELauncherConstants .SELECTED_TARGET_BUNDLES , Set .of ("plugin.a*1.0.0.202111102345" ));
804
804
};
805
805
@@ -1044,7 +1044,7 @@ private static ILaunchConfigurationWorkingCopy createPluginLaunchConfig(String n
1044
1044
ILaunchConfigurationType type = launchManager .getLaunchConfigurationType ("org.eclipse.pde.ui.RuntimeWorkbench" );
1045
1045
ILaunchConfigurationWorkingCopy wc = type .newInstance (null , name );
1046
1046
wc .setAttribute (IPDELauncherConstants .AUTOMATIC_ADD , false );
1047
- wc .setAttribute (IPDELauncherConstants .USE_CUSTOM_FEATURES , false );
1047
+ wc .removeAttribute (IPDELauncherConstants .USE_CUSTOM_FEATURES );
1048
1048
wc .setAttribute (IPDELauncherConstants .USE_DEFAULT , false );
1049
1049
return wc ;
1050
1050
}
0 commit comments