| Summary: | [ActivityMgmt] Enabling activity through core expression overrides pattern binding, causing exception | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Christian Sell <c.sell> | ||||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Paul Webster <pwebster> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 4.0 | ||||||||
| Target Milestone: | 3.7 M5 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Christian Sell
I have to correct myself: the problem appears when the activity is enabled/disabled through an <enabledWhen> subelement in plugin.xml. Only in that case, the WorkbenchActivityHelper#restrictUseOf mtethod returns true, leading to the described phenomenon the essence of the problem seems to be that enablement of activities through core expressions (i.e., in plugin.xml) does not work well Created attachment 186220 [details]
null guard v01
Suggested fix: If a view descriptor is not returned, that view doesn't exist. We can count it as filtered.
PW
Created attachment 186296 [details]
null guard v02
Provides more accurate behaviour. if the view is restricted, it returns. If the view is null because it is not defined, it still writes out the error.
PW
Released to HEAD PW In I20110124-1800 PW |