| Summary: | Eclemma menus/toolbars/coverage not working in 4.1 | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | John Arthorne <john.arthorne> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | pwebster, remy.suen |
| Version: | unspecified | ||
| Target Milestone: | 4.1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 336824, 337127 | ||
| Bug Blocks: | |||
|
Description
John Arthorne
(In reply to comment #0) > - Menu and toolbar contributions for Eclemma code coverage are missing. The toolbar should have a contribution and the 'Run' menu doesn't appear to be populated. > The > only action/command that works is the editor context menu, from which I can > open the Coverage Configurations menu I get the 'Coverage As' submenu in the context menu of the 'Package Explorer' view and in editors. I did notice that expanding this submenu pretty much hung my Eclipse for a couple of seconds. This doesn't happen in 3.x. Perhaps the bundle has already been loaded on startup in 3.x. John, did you get this hang? > - Highlighting of coverage results in the editor is missing. I.e., if you run a > coverage test, then click a file in the Coverage view, it normally colours the > file with red/green to indicate coverage results. This colouring does not > appear at all in 4.1 M5. Not clear to me why this is broken. Perhaps they are using background colour checks or something and the colour calculation is off. (In reply to comment #1) > (In reply to comment #0) > > - Menu and toolbar contributions for Eclemma code coverage are missing. > > The toolbar should have a contribution and the 'Run' menu doesn't appear to be > populated. In 3.x we have special code to extend the perspective with actionSet perspectiveExtensions. Thread [Thread-2] (Suspended (breakpoint at line 1631 in Perspective)) Perspective.getPerspectiveExtensionActionSets() line: 1631 Perspective.restoreState() line: 1500 WorkbenchPage.restoreState(IMemento, IPerspectiveDescriptor) line: 3259 WorkbenchWindow.restoreState(IMemento, IPerspectiveDescriptor) line: 2225 Workbench.doRestoreState(IMemento, MultiStatus) line: 3683 Workbench.access$34(Workbench, IMemento, MultiStatus) line: 3625 Workbench$60.run() line: 2325 Workbench.runStartupWithProgress(int, Runnable) line: 2022 Workbench.restoreState(IMemento) line: 2323 Workbench.access$31(Workbench, IMemento) line: 2294 Workbench$54.run() line: 2140 SafeRunner.run(ISafeRunnable) line: 42 Workbench.restoreState() line: 2084 WorkbenchConfigurer.restoreState() line: 183 WorkbenchAdvisor$1.run() line: 781 (In reply to comment #2) > In 3.x we have special code to extend the perspective with actionSet > perspectiveExtensions. > > Thread [Thread-2] (Suspended (breakpoint at line 1631 in Perspective)) > Perspective.getPerspectiveExtensionActionSets() line: 1631 > Perspective.restoreState() line: 1500 This code allows newly added actionSets (through perspectiveExtensions or always-on) to be merged into an already open perspective. In theory, resetting your perspective in 4.1 should make the menus/toolbars appear. PW (In reply to comment #3) > In theory, resetting your perspective in 4.1 should make the menus/toolbars > appear. Sadly, this theory didn't seem to work. Deleting the deltas.xml did the trick though. Just to be clear, the editor still doesn't highlight stuff. (In reply to comment #4) > (In reply to comment #3) > > In theory, resetting your perspective in 4.1 should make the menus/toolbars > > appear. > > Sadly, this theory didn't seem to work. The cause has been identified and is being tracked by bug 336824. (In reply to comment #1) > I get the 'Coverage As' submenu in the context menu of the 'Package Explorer' > view and in editors. I did notice that expanding this submenu pretty much hung > my Eclipse for a couple of seconds. This doesn't happen in 3.x. Perhaps the > bundle has already been loaded on startup in 3.x. John, did you get this hang? No, I didn't get this hang. I just restarted and tried it again, and it seemed to come up quickly. I thought the code coverage problem might be related to some issues with background colours or something so I changed my 4.1 theme to the classic theme but the problem persisted. Code coverage works for me too now with I20110501-0200. Thanks for testing EclEmma for us, John. |