Bug 128700 - [ActivityMgmt] Action sets not checked against activities
Summary: [ActivityMgmt] Action sets not checked against activities
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 13:33 EST by Nick Edgar CLA
Modified: 2019-09-06 15:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2006-02-20 13:33:18 EST
3.2 M5

I defined the following extension to try to hide the working set action set.

<extension
	point="org.eclipse.ui.activities">
	<activity
		name="Filtering by Working Set"
		description="Allow working sets to be configured for workbench windows."
		id="org.eclipse.workingSets"/>
	<activityPatternBinding
		activityId="org.eclipse.workingSets"
		pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.WorkingSetActionSet"/>
</extension>

However, the action still shows up.  The action set is hidden, however, from the perspective customization dialog.

If I change the pattern binding to the following, it hides the action OK.
pattern="org\.eclipse\.ui\.ide/selectWorkingSets"/>

Expectation:
- I should be able to target action sets themselves with activities, in addition to the actions within action sets.
- If an action set is filtered out due to disabled activities, so are all its actions (whether they match activities or not).
Comment 1 Nick Edgar CLA 2006-02-20 13:37:10 EST
Workaround is to target both the action set and its actions in the bindings:

	<activity
		name="Filtering by Working Set"
		description="Allow working sets to be configured for workbench windows."
		id="org.eclipse.workingSets"/>
	<activityPatternBinding
		activityId="org.eclipse.workingSets"
		pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.WorkingSetActionSet"/>
	<activityPatternBinding
		activityId="org.eclipse.workingSets"
		pattern="org\.eclipse\.ui\.ide/selectWorkingSets"/>
Comment 2 Kim Horne CLA 2006-02-20 13:46:22 EST
This is working as intended but will consider at a later time.
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:34:46 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.