Bug 5591 - Debug perspective missing view shortcuts
Summary: Debug perspective missing view shortcuts
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-06 15:00 EST by Nick Edgar CLA
Modified: 2001-11-09 09:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-11-06 15:00:46 EST
Build 20011105.

The debug perspective's shortcuts on the Perspective / Show View menu do not 
include several of the views included in the debug perspective by default.
For example, I closed the properties view, then wanted to get it back.
I had to go to Perspective / Show View / Other... / Basic / Properties
instead of just Perspective / Show View / Properties.
Other ones missing: Display, Outline.

Also, the order in the menu should be the same as shown in the perspective.
For example, currently Variables appears after Inspector in the menu.
Comment 1 Darin Swanson CLA 2001-11-06 17:28:30 EST
Fixed all but the DisplayView.

Nick, can you please help out with the Display view?
It is supplied by the org.eclipse.jdt.ui plugin.  Is there a way to
get this view to be shown in the Debug perspective show view menu?
Comment 2 Nick Edgar CLA 2001-11-07 11:40:48 EST
Check out the doc for the org.eclipse.ui.perspectiveExtensions extension point.
JDT UI should be able to do something like:

    <extension point="org.eclipse.ui.perspectiveExtensions"> 
        <perspectiveExtension 
            targetID="org.eclipse.debug.ui.DebugPerspective"> 
            <viewShortcut id="org.eclipse.jdt.debug.ui.DisplayView"/> 
        </perspectiveExtension> 
    </extension> 

In fact, they already have a perspectiveExtension to the DebugPerspective to 
add the Display view.  They just need to add the viewShortcut element.

(Note the doc is misleading, it uses the term "viewAction", but I believe it 
should be "viewShortcut")
Comment 3 Darin Swanson CLA 2001-11-07 12:38:48 EST
Fixed. Please verify.
Comment 4 Darin Wright CLA 2001-11-07 13:34:33 EST
The Display view is not in the correct order in the view menu - it should be 
after the Inspector. However, not sure if this is fixable, as the view is 
contributed by another plug-in.
Comment 5 Darin Wright CLA 2001-11-07 14:58:26 EST
Verified. No way to improve ordering of Display View currently.
Comment 6 Unknown User CLA 2001-11-09 09:17:26 EST
Is it true that "the order in the menu should be the same as shown in the 
perspective"?  If so, then the order of the menu will change whenever you move 
a view.  This may cause disorientation.  

If I want to open a view, and it is visible in the window, I'll just click on 
the window.  If I don't know where it is in the window, and we order the view 
by position, the user must do a linear search for the view, as the view is 
really random to the user.  Perhaps an alphabetical ordering is better?

Perhaps we should implement an MRU algorithm to avoid the Other problem...

In any case, this issue is important but probably won't be delt with for a 
couple of weeks.