Bug 267845 - [Wizards] Allow import/export wizard shortcuts in perspective extensions
Summary: [Wizards] Allow import/export wizard shortcuts in perspective extensions
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-10 09:46 EDT by Grant Taylor CLA
Modified: 2014-12-22 10:12 EST (History)
7 users (show)

See Also:


Attachments
Patch v01 (71.02 KB, patch)
2009-12-01 13:00 EST, Prakash Rangaraj CLA
no flags Details | Diff
Screenshot (30.99 KB, image/png)
2009-12-01 13:02 EST, Prakash Rangaraj CLA
no flags Details
Patch v02 (79.41 KB, patch)
2009-12-03 03:35 EST, Prakash Rangaraj CLA
no flags Details | Diff
CPD Screenshot (89.76 KB, image/png)
2009-12-03 03:36 EST, Prakash Rangaraj CLA
no flags Details
Patch v03 (42.92 KB, patch)
2009-12-16 08:36 EST, Prakash Rangaraj CLA
no flags Details | Diff
Screenshot (21.87 KB, image/png)
2009-12-16 08:40 EST, Prakash Rangaraj CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Taylor CLA 2009-03-10 09:46:46 EDT
Build ID: 3.4.1

Steps To Reproduce:
It would be great if we could assign primary import/export wizards to a perspective.  When the user brings up the File menu from the main menu bar, the Import and Export options
would turn into cascading items.  The entries in the cascade would be the primary wizards for that perspective, and an "Other" item to go to the regular selection dialog.  This same scheme would be seen when right clicking in a
navigator type view.



More information:
Comment 1 Boris Bokowski CLA 2009-03-11 13:10:47 EDT
I like the idea. We are past the API freeze for 3.5 but we can look into this for 3.6.
Comment 2 Boris Bokowski CLA 2009-11-26 16:20:37 EST
Prakash is now responsible for watching bugs in the [Wizards] component area.
Comment 3 Prakash Rangaraj CLA 2009-12-01 13:00:29 EST
Created attachment 153502 [details]
Patch v01

First cut
Comment 4 Prakash Rangaraj CLA 2009-12-01 13:02:37 EST
Created attachment 153503 [details]
Screenshot

Sample of how it looks
Comment 5 Prakash Rangaraj CLA 2009-12-01 13:03:12 EST
Adding Boris to cc. Need his comments :-)
Comment 6 Boris Bokowski CLA 2009-12-01 14:51:40 EST
I like it. The question is how this would play if no primary import/export wizards have been defined - do we fall back to the current behaviour?

We should get some more comments from people like Susan and McQ.
Comment 7 Susan McCourt CLA 2009-12-01 17:44:02 EST
Looks nice.

(In reply to comment #6)
> I like it. The question is how this would play if no primary import/export
> wizards have been defined - do we fall back to the current behaviour?
> 
> We should get some more comments from people like Susan and McQ.

I would assume we fall back to the current behavior.

My only complaint is the same one I have for new wizards, show view, etc.  The scalability when everyone thinks their stuff is the most important.  I'm not suggesting we shouldn't do this, but just that we are careful/minimal in which items we promote to the Java perspective.  (I have 15 show view shortcuts and 13 new wizard shortcuts running the SDK + Mylyn).
Comment 8 Prakash Rangaraj CLA 2009-12-01 23:23:22 EST
Cc-ing Dani for his comments.


(In reply to comment #6)
> > The question is how this would play if no primary import/export
> > wizards have been defined - do we fall back to the current behaviour?
    
    We can make it to fall back to the older one. Right now it doesn't fall back. It just shows the Other... button. If we leave it this way, its little ugly and probably force the adopters to add the perspective extension ;-)
Comment 9 Dani Megert CLA 2009-12-02 03:55:09 EST
I like it as well but we should not overload the term "primary" here. For New wizards "primaryWizard" is part of the newWizards extension point and means that this wizard will always show up in the (Others) dialog. This is for products to configure the dialog. I think adding this in addition to what the attached patch does might be a big help for bug 268310.

>we are careful/minimal in which
>items we promote to the Java perspective. 
Sure, but it's not completely in our hands given we allow clients to extend this via prespectiveExtensions extension point. If we think that's an issue we could simply leave that one out but I think it would be unfair.

In case where there are no primary wizards we must show the current 'Export...'/'Import...' menu items as there are many upstream products with custom perspectives that won't have time to adopt this new feature.

Minor issue: 'Other...' misses the Ctrl+N mnemonic.
Comment 10 Prakash Rangaraj CLA 2009-12-02 05:32:16 EST
(In reply to comment #9)
> Minor issue: 'Other...' misses the Ctrl+N mnemonic.

    Ctrl+N is for the New command. Why should it be mapped for Export or Import? If you had any keybindings for these commands, it should show up in the Other... of the respective menu.
Comment 11 Dani Megert CLA 2009-12-02 05:39:47 EST
(In reply to comment #10)
> (In reply to comment #9)
> > Minor issue: 'Other...' misses the Ctrl+N mnemonic.
> 
>     Ctrl+N is for the New command. Why should it be mapped for Export or
> Import? If you had any keybindings for these commands, it should show up in the
> Other... of the respective menu.

Sorry, I was too fast. I only wanted to remind, that we should not forget the mnemonic but of course I can't tell from the picture whether it's there or not. I wrongly pasted the shortcut instead of 'O', which is the mnemonic.
Comment 12 Prakash Rangaraj CLA 2009-12-02 05:55:38 EST
(In reply to comment #11)
> Sorry, I was too fast. I only wanted to remind, that we should not forget the
> mnemonic but of course I can't tell from the picture whether it's there or not.
> I wrongly pasted the shortcut instead of 'O', which is the mnemonic.

    OK. I was confused of why should Ctrl+N be supported there :-) Although its not in the screenshot, if we have defined a keybinding for Export/Import in the preference page, it will show up there.
Comment 13 Susan McCourt CLA 2009-12-02 12:13:59 EST
(In reply to comment #9)
> >we are careful/minimal in which
> >items we promote to the Java perspective. 
> Sure, but it's not completely in our hands given we allow clients to extend
> this via prespectiveExtensions extension point. If we think that's an issue we
> could simply leave that one out but I think it would be unfair.

I wasn't proposing we leave it out, just that we don't go overboard in the places where we do have control (select carefully which SDK ones are primary), knowing that other plug-ins will certainly add to this list.
Comment 14 Prakash Rangaraj CLA 2009-12-03 03:35:10 EST
Created attachment 153702 [details]
Patch v02

Support added to the CustomizePerspectiveDialog
Comment 15 Prakash Rangaraj CLA 2009-12-03 03:36:28 EST
Created attachment 153703 [details]
CPD Screenshot
Comment 16 Paul Webster CLA 2009-12-03 08:02:50 EST
Prakash, we shouldn't create new (not New :-) wizard shortcut actions.  We already have commands that can open a specific import/export/new wizard, and we should update the CompoundContributions to use them and CommandContributionItems instead of NewWizardShortcutAction and 2 new actions.

PW
Comment 17 Prakash Rangaraj CLA 2009-12-16 08:36:39 EST
Created attachment 154555 [details]
Patch v03

Now using wizard handlers. And the implementation falls back to the old menu item, when the extension point is not used.
Comment 18 Prakash Rangaraj CLA 2009-12-16 08:40:28 EST
Created attachment 154556 [details]
Screenshot

Screenshot. Also show how the shortcuts are mapped.
Comment 19 Prakash Rangaraj CLA 2010-03-18 04:58:07 EDT
Later ...