History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-2821
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Zhuravlev
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

OpenAPI: UsageGroupingRules are applied even when their actions aren't available

Created: 03 Aug 05 20:29   Updated: 16 Oct 07 00:14
Component/s: Plugin Support. API
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,436
Severity: High


 Description  « Hide
That's an API limitation because the UsageGroupProvider.getActiveRules() doesn't have the same context available that createGroupingActions() has. The default-rules provided by UsageGroupProviderImpl create a different set of Actions based on the UsageViewPresentation, but returns all Rules based on its current settings.

Possible solution:

Get rid of UsageGroupProvider.createGroupingActions(), change the getActiveRules()-parameters to (UsageView[, Project]) and

A: move the Action-creation into UsageGroupingRule.createAction()
or
B: introduce a new method UsageGroupProvider.createActionForRule(UsageGroupingRule)

See the full discussion here: http://www.intellij.net/forums/thread.jsp?forum=23&thread=155452&tstart=0&trange=15#4898636



 All   Comments   Work Log   Change History      Sort Order:
Sascha Weinreuter - 27 Oct 05 18:46
Can someone please acknowledge this or, if it's not a bug or not intended to fix, give an explanation why? Thanks.