Bug 234274 - [api] Launch Shell / Terminal commands menu placement and category
Summary: [api] Launch Shell / Terminal commands menu placement and category
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.0 RC3   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api, contributed
Depends on: 226550
Blocks:
  Show dependency tree
 
Reported: 2008-05-27 18:43 EDT by Martin Oberhuber CLA
Modified: 2011-05-25 07:24 EDT (History)
3 users (show)

See Also:
mober.at+eclipse: review+


Attachments
Screenshot of old context menu (6.04 KB, image/gif)
2008-05-27 18:51 EDT, Martin Oberhuber CLA
no flags Details
Screenshot of new context menu (7.68 KB, image/gif)
2008-05-27 18:52 EDT, Martin Oberhuber CLA
no flags Details
patch that fixes issue #2 (4.78 KB, patch)
2008-05-29 09:39 EDT, Anna Dushistova CLA
mober.at+eclipse: iplog+
mober.at+eclipse: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2008-05-27 18:43:23 EDT
From bug 226550: For the new "Launch Shell" and "Launch Terminal" actions, I have two requets:

(1) The new actions appear way down in the context menu of files displayed in
    the RSE view.
    They should appear one separator higher up in the menu. I'd think that the
    org.eclipse.ui.menus extension somehow allows for choosing menu placement.

(2) Choosing Window > Preferences > General > Keys, the Category for the new
    Commands is "Launch Shell" and "Terminal Commands" respectively, which is
    not what I'd expect.
    Category should better be "Remote" or "Remote Commands" or "RSE" for both.
Comment 1 Martin Oberhuber CLA 2008-05-27 18:51:44 EDT
Created attachment 102274 [details]
Screenshot of old context menu
Comment 2 Martin Oberhuber CLA 2008-05-27 18:52:22 EDT
Created attachment 102275 [details]
Screenshot of new context menu

Actually, the placement is not so different... it's the same menu group, just "before" the user actions & compile commands entries.
Comment 3 Anna Dushistova CLA 2008-05-29 09:39:10 EDT
Created attachment 102633 [details]
patch that fixes issue #2

I, Anna Dushistova, declare that I developed attached code from scratch,
without referencing any 3rd party materials except material licensed under the
EPL. I am authorized by my employer to make this contribution under the EPL.
Comment 4 Anna Dushistova CLA 2008-05-29 09:41:55 EDT
(In reply to comment #2)
> Actually, the placement is not so different... it's the same menu group, just
> "before" the user actions & compile commands entries.

I'm not quite sure I can control the placement to that extent--I guess it depends on plugin loading order. Maybe it would be better to create separate group for the commands?  

Comment 5 Martin Oberhuber CLA 2008-05-29 16:29:55 EDT
Hm, you have chosen to put the commands "Launch Shell" and "Launch Terminal" into Category "RSE". This category is what users see in the Preferences > General > Keys page as Category.

I like your decision, and I think that "RSE" is a good category name. Problem with it is, that it's in the .properties file to be translated, and the deadline for adding such translatable Strings has passed already. So I see three options here:

(a) Try to get special permission for new PII "RSE" to rse.ui/plugin.properties
(b) Re-use existing PII, either
    (b1) "Remote Systems" (%View.Category.RemoteSystems), or
    (b2) "Remote System Explorer" (%Creation.category.name)
(c) Do not apply the patch and keep status quo

I personally do not like (c) at all, and I like (a) slightly better than (b1)

Xuan, DaveD what do you think?
Comment 6 Anna Dushistova CLA 2008-05-29 16:41:07 EDT
Martin, I'm fine with "Remote Systems" too,
I just looked through all the existing command categories and decided that RSE would be more consistent.
 
(In reply to comment #5)
> I like your decision, and I think that "RSE" is a good category name. Problem
> with it is, that it's in the .properties file to be translated, and the
> deadline for adding such translatable Strings has passed already. So I see
> three options here:
> 
> (a) Try to get special permission for new PII "RSE" to rse.ui/plugin.properties
> (b) Re-use existing PII, either
>     (b1) "Remote Systems" (%View.Category.RemoteSystems), or

Comment 7 Xuan Chen CLA 2008-05-29 18:47:12 EDT
We passed the drop dead date of PII drop, and it is very hard to get any PII change in now.
Comment 8 Martin Oberhuber CLA 2008-05-30 15:07:41 EDT
Ok, for the "Command Category" I see two options:

(a) untranslated String "RSE"

(b) re-using translation "Remote Systems"
    from %View.Category.RemoteSystems

DaveD, what do you think? As a reminder, this is the Category name under which the commands "Launch Shell" and "Launch Terminal" will be shown in the Window > General > Keys Preference page.
Comment 9 David Dykstal CLA 2008-06-02 08:59:37 EDT
(In reply to comment #8)
> Ok, for the "Command Category" I see two options:
> 
> (a) untranslated String "RSE"
> 
> (b) re-using translation "Remote Systems"
>     from %View.Category.RemoteSystems
> 
> DaveD, what do you think? As a reminder, this is the Category name under which
> the commands "Launch Shell" and "Launch Terminal" will be shown in the Window >
> General > Keys Preference page.
> 

I prefer (b). I do not like translating acronyms and think we should avoid them where possible. They sometimes confuse translators.
Comment 10 Martin Oberhuber CLA 2008-06-02 17:42:36 EDT
Patch applied, re-using "Remote Systems" (%View.Category.RemoteSystems).

This is adding API because there is now a Command Category with ID "org.eclipse.rse.ui.commands.category" which is declared in RSE.UI and which all future Commands should be using.

Thanks for the excellent work and the patch.