Bug 378849 - [CPD] CustomizePerspectiveDialog no longer shows actionSet details
Summary: [CPD] CustomizePerspectiveDialog no longer shows actionSet details
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: 4.5 M5   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard: candidate43
Keywords:
: 413657 456998 (view as bug list)
Depends on:
Blocks: 420956
  Show dependency tree
 
Reported: 2012-05-08 10:47 EDT by Paul Webster CLA
Modified: 2015-02-08 05:29 EST (History)
15 users (show)

See Also:


Attachments
TreeItem creation log for 3.x CPD (41.54 KB, text/plain)
2014-04-23 17:15 EDT, Erik Chou CLA
no flags Details
TreeItem creation log for 4.x CPD (33.45 KB, text/plain)
2014-04-23 17:15 EDT, Erik Chou CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2012-05-08 10:47:34 EDT
When selecting an actionSet on the "Command Groups Availability" tab, the menubar details and toolbar details are empty.

Caused by the changes for bug bug 319704, the CustomizePerspectiveDialog now needs to revert its code that dealt with actionSets.

PW
Comment 1 Paul Webster CLA 2012-08-15 13:44:56 EDT

*** This bug has been marked as a duplicate of bug 378845 ***
Comment 2 Paul Webster CLA 2012-08-22 14:51:41 EDT
Even with the actionSet code resurrected, using the workbench model to generate the toolbar visibility and menu visibility tree seems to only show up Command Group availability paths if the actionSets have already been turned on.

We should be generating the CPD model and making sure it is filled in to allow all of the contributions to be available for scraping.

PW
Comment 3 Markus Keller CLA 2012-10-23 15:01:34 EDT
This dialog is still completely broken in master.

E.g. when I enable the Git command group and then close and reopen the dialog, I still cannot configure the Git menu; and the command groups tab also doesn't show the menu items.

And the tool bar tab shows command names that are not visible anywhere. It should show the tooltip contents, as in 3.8.
Comment 4 Markus Keller CLA 2013-02-21 14:02:34 EST
See also bug 383569.
Comment 5 Stefan Schöf CLA 2013-08-23 07:49:03 EDT
The "Customize Perspective" feature is still severely broken in Kepler (tested on both a freshly installed "Eclipse Standard" and "Eclipse Java" (both with build id 20130614-0229), compared to Indigo.

E.g. select "Window/Customize Perspective" with the standard "Java" perspective active, go to "Menu Visibility".
On "Eclipse Standard" there are no "Source" and "Refactor" items at all.
On "Eclipse Java" they are available, but "greyed out". If you try to select them, you get e.g. a '"Source" cannot be made visible because it is in the unavailable "null" command Group.' dialog. Almost the same message appears if you "hover over" the items with the mouse.

Other entries in ""Menu Visibility" are missing many sub-entries, e.g. for "Navigate" entries "Open Type Hierarchy", "Open Call Hierarchy", "Open Hyperlink" etc. etc. are absent, so one cannot hide those menu items.

On "Command Groups Availability" the column "Menubar details" is completely empty (for all entries).
Comment 6 Erik Chou CLA 2014-04-04 18:19:02 EDT
The initialization of the Customize Perspective Dialog appears to behave identically in 3.8 and 4.x. However, I noticed that in the event handler added with actionSetsViewer.addSelectionChangedListener(), there were contribution items that were present in 3.8 that were missing in 4.x for certain actionSets (Breakpoints, Editor Navigation, etc.).

The next step is to figure out where the contribution items are being added to the actionSets and see if that piece of code is working correctly.
Comment 7 Erik Chou CLA 2014-04-23 17:15:29 EDT
Created attachment 242252 [details]
TreeItem creation log for 3.x CPD
Comment 8 Erik Chou CLA 2014-04-23 17:15:49 EDT
Created attachment 242253 [details]
TreeItem creation log for 4.x CPD
Comment 9 Paul Webster CLA 2014-05-02 12:49:40 EDT
I've pushed up a new changeSet, based on the one you created at https://git.eclipse.org/r/#/c/25821

Please pull down the latest changeset before you start work today.

Most of the work was to get the customizeActionBars menu and coolbar processed in a similar way to a read workbench window.  I've expanded on your work in org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog.loadMenuAndToolbarStructure() to make sure that we fill in and use the customizeActionBars menu and coolbar/model in the CPD.

Some good news.  More icons show up in the toolbar side in the CommandGroupAvailability page.  Also, if you hide something (like the menu>File>Print item) and then try to show it, you no longer get that error message about the command group being unavailable.

2 problems that need investigating:

1) on the Toolbar page, the basic items in File seem to be missing, like save, save all, and print.  Could you investigate if they are being processed?

2) The actionSet Convert Line Delimiters appears in the command group page, but no menu structure appears.  It seems like Convert Line Delimiters To> submenu doesn't appear in the MMenu structure.  In theory it should be filled in from the actionSets + a reconcileManagerToModel call.  Please investigate.

PW
Comment 10 Andrey Loskutov CLA 2014-12-26 13:38:10 EST
(In reply to Paul Webster from comment #9)
> I've pushed up a new changeSet, based on the one you created at
> https://git.eclipse.org/r/#/c/25821
> 
> Please pull down the latest changeset before you start work today.
> 
> Most of the work was to get the customizeActionBars menu and coolbar
> processed in a similar way to a read workbench window.  I've expanded on
> your work in
> org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog.
> loadMenuAndToolbarStructure() to make sure that we fill in and use the
> customizeActionBars menu and coolbar/model in the CPD.
> 
> Some good news.  More icons show up in the toolbar side in the
> CommandGroupAvailability page.  Also, if you hide something (like the
> menu>File>Print item) and then try to show it, you no longer get that error
> message about the command group being unavailable.
> 
> 2 problems that need investigating:
> 
> 1) on the Toolbar page, the basic items in File seem to be missing, like
> save, save all, and print.  Could you investigate if they are being
> processed?

I'm following on your patch and have now the state with those buttons.

> 2) The actionSet Convert Line Delimiters appears in the command group page,
> but no menu structure appears.  It seems like Convert Line Delimiters To>
> submenu doesn't appear in the MMenu structure.  In theory it should be
> filled in from the actionSets + a reconcileManagerToModel call.  Please
> investigate.

This is on my list, I'm debugging it right now.

Beside this: good news: the patch https://git.eclipse.org/r/25565 applied on head allows us to see Search and Refactor menus, along with other action set based menu contributions (see bug 391430 comment 50).
Comment 11 Andrey Loskutov CLA 2014-12-28 14:37:00 EST
Please review my patches: bug 420956 comment 11.
Comment 12 Paul Webster CLA 2015-01-05 10:15:15 EST
Thanks Andrey.  I'll try to get to it on Monday Jan 12th.

PW
Comment 13 Lars Vogel CLA 2015-01-05 10:26:03 EST
(In reply to Paul Webster from comment #12)
> Thanks Andrey.  I'll try to get to it on Monday Jan 12th.

I started looking at Andreys patch series and hope that I can merge a few of the easier ones of that you can focus on Monday on the heavier ones.
Comment 14 Lars Vogel CLA 2015-01-21 07:49:06 EST
*** Bug 456998 has been marked as a duplicate of this bug. ***
Comment 15 Andrey Loskutov CLA 2015-02-07 18:07:38 EST
Fixed with patches for bug 420956 in 4.5 M5 (action set details are now shown in CPD). Feel free to reopen if I missed something.
Comment 16 Andrey Loskutov CLA 2015-02-07 18:42:08 EST
*** Bug 413657 has been marked as a duplicate of this bug. ***