Skip to content

Commit 30481e7

Browse files
Christoph Läubrichlaeubi
authored andcommitted
Add Eclipse Activity Support for Cucumber features
1 parent 8edb938 commit 30481e7

File tree

2 files changed

+97
-2
lines changed

2 files changed

+97
-2
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ then you need to point Eclipse to the folder of version your are interested in.
8080

8181
The full option list can be found at [Cucumber-Options](https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/cucumber/api/CucumberOptions.java)
8282

83+
## Customizing Cucumber Features with Activity Groups
84+
85+
Cucumber Eclipse supports Eclipse Activity Groups, which allow you to selectively enable or disable certain plugin features to reduce UI clutter. You can control the visibility of:
86+
87+
- Preference pages
88+
- Property pages
89+
- Launch configurations
90+
- Console factory
91+
92+
To manage these features:
93+
1. Go to **Window → Preferences → General → Capabilities**
94+
2. Find the "Cucumber" category
95+
3. Check or uncheck the activities you want to enable or disable
96+
8397
## Build and install from source
8498

8599
To use the latest features, you can choose to build and install from source.

io.cucumber.eclipse.editor/plugin.xml

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
<extension
242242
point="org.eclipse.ui.console.consoleFactories">
243243
<consoleFactory
244+
id="io.cucumber.console"
244245
class="io.cucumber.eclipse.editor.console.CucumberConsoleFactory"
245246
icon="icons/cukes.gif"
246247
label="Cucumber Console">
@@ -277,7 +278,7 @@
277278
class="io.cucumber.eclipse.editor.launching.CucumberFeatureLaunchShortcut"
278279
description="Run this feature with cucumber-jvm"
279280
icon="icons/cukes.gif"
280-
id="io.cucumber.eclipse.editor.shortcut1"
281+
id="io.cucumber.eclipse.editor.launchShortcut"
281282
label="Cucumber"
282283
modes="run,debug,profile">
283284
<configurationType
@@ -390,5 +391,85 @@
390391
name="Cucumber">
391392
</page>
392393
</extension>
393-
394+
<!-- Eclipse Activity Support -->
395+
<extension
396+
point="org.eclipse.ui.activities">
397+
<category
398+
id="io.cucumber.eclipse.editor.category"
399+
name="Cucumber"
400+
description="Cucumber Editor for Eclipse">
401+
</category>
402+
403+
<!-- Preference Pages -->
404+
<activity
405+
id="io.cucumber.eclipse.editor.preferences"
406+
name="Cucumber Preferences"
407+
description="Show Cucumber preference pages">
408+
</activity>
409+
<defaultEnablement
410+
id="io.cucumber.eclipse.editor.preferences">
411+
</defaultEnablement>
412+
<categoryActivityBinding
413+
activityId="io.cucumber.eclipse.editor.preferences"
414+
categoryId="io.cucumber.eclipse.editor.category">
415+
</categoryActivityBinding>
416+
<activityPatternBinding
417+
activityId="io.cucumber.eclipse.editor.preferences"
418+
pattern="io.cucumber.eclipse.editor/cucumber.eclipse.editor.preferences.main">
419+
</activityPatternBinding>
420+
421+
<!-- Properties Pages -->
422+
<activity
423+
id="io.cucumber.eclipse.editor.properties"
424+
name="Cucumber Properties"
425+
description="Show Cucumber property pages">
426+
</activity>
427+
<defaultEnablement
428+
id="io.cucumber.eclipse.editor.properties">
429+
</defaultEnablement>
430+
<categoryActivityBinding
431+
activityId="io.cucumber.eclipse.editor.properties"
432+
categoryId="io.cucumber.eclipse.editor.category">
433+
</categoryActivityBinding>
434+
<activityPatternBinding
435+
activityId="io.cucumber.eclipse.editor.properties"
436+
pattern="io.cucumber.eclipse.editor/cucumber.eclipse.editor.properties.main">
437+
</activityPatternBinding>
438+
439+
<!-- Launch Shortcuts -->
440+
<activity
441+
id="io.cucumber.eclipse.editor.launch"
442+
name="Launch Shortcuts"
443+
description="Show Cucumber launch shortcuts">
444+
</activity>
445+
<defaultEnablement
446+
id="io.cucumber.eclipse.editor.launch">
447+
</defaultEnablement>
448+
<categoryActivityBinding
449+
activityId="io.cucumber.eclipse.editor.launch"
450+
categoryId="io.cucumber.eclipse.editor.category">
451+
</categoryActivityBinding>
452+
<activityPatternBinding
453+
activityId="io.cucumber.eclipse.editor.launch"
454+
pattern="io.cucumber.eclipse.editor/io.cucumber.eclipse.editor.launchShortcut">
455+
</activityPatternBinding>
456+
457+
<!-- Console -->
458+
<activity
459+
id="io.cucumber.eclipse.editor.console"
460+
name="Cucumber Console"
461+
description="Show Cucumber Console">
462+
</activity>
463+
<defaultEnablement
464+
id="io.cucumber.eclipse.editor.console">
465+
</defaultEnablement>
466+
<categoryActivityBinding
467+
activityId="io.cucumber.eclipse.editor.console"
468+
categoryId="io.cucumber.eclipse.editor.category">
469+
</categoryActivityBinding>
470+
<activityPatternBinding
471+
activityId="io.cucumber.eclipse.editor.console"
472+
pattern="io.cucumber.eclipse.editor/io.cucumber.console">
473+
</activityPatternBinding>
474+
</extension>
394475
</plugin>

0 commit comments

Comments
 (0)