Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 531498

Summary: Incorrect view placement in debug perspective (Photon)
Product: [Tools] Target Management Reporter: Daniel Wille <dwille>
Component: TerminalAssignee: dsdp.tm.core-inbox <tm.core-inbox>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: eclipse
Version: 4.4   
Target Milestone: 4.4   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/119217
https://git.eclipse.org/c/tm/org.eclipse.tm.terminal.git/commit/?id=121bc1f3ea828cf625634b25221ca1a8b3c73574
Whiteboard:
Bug Depends on: 464898    
Bug Blocks:    
Attachments:
Description Flags
Patch to correct bug mober.at+eclipse: iplog+

Description Daniel Wille CLA 2018-02-21 16:05:37 EST
Created attachment 272801 [details]
Patch to correct bug

Overview:
In Eclipse Photon M5 the TM Terminal view is appearing in a stack by itself, shoving some of the other views to the side in the debug perspective.


Steps to Reproduce:
Open the debug perspective in Photon M5.


Actual Results:
View does not stack with other views, but allocates screen real estate all to itself.

Additionally, the following is logged:
!ENTRY org.eclipse.ui 4 4 2018-02-21 15:55:10.780
!MESSAGE Referenced part does not exist yet: org.eclipse.ui.views.TaskList.


Expected Results:
View stacks with Console, Problems, Executables, Debug Shell views.


Solution:
I believe the extension point in org.eclipse.tm.terminal.view.ui plugin needs to be modified. I'm attaching a patch that corrects the issue. I used the PDE log as a reference (see http://git.eclipse.org/c/pde/eclipse.pde.ui.git/tree/ui/org.eclipse.ui.views.log/plugin.xml).
Comment 1 Martin Oberhuber CLA 2018-02-26 01:18:11 EST
Thanks for the report, and the contribution!

We'll need to be a bit careful with changing the "base view" that the Terminal is relative to, in order to avoid issues in other perspectives (where TaskList would exist but ConsoleView would not).

So first of all, I am wondering which change in Photon triggered the different behavior that you observe now. I could not find anything relevant in platform.debug.ui , do you have an idea where the relevant Photon change might be?
Comment 2 Martin Oberhuber CLA 2018-02-26 01:25:46 EST
Here is maybe a pointer: https://bugs.eclipse.org/bugs/show_bug.cgi?id=464898#c8
Comment 3 Martin Oberhuber CLA 2018-02-26 01:37:39 EST
OK, so it looks like the change in fact came in through bug 464898 in Photon M4, see
https://www.eclipse.org/eclipse/news/4.8/M4/#debug-perspective-changed

But I couldn't find a relevant commit in either debug.ui (which defines the debug perspective): https://git.eclipse.org/c/gerrit/platform/eclipse.platform.debug.git/tree/org.eclipse.debug.ui/plugin.xml

or platform.ui (which defines the TasksList view): https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.ide/plugin.xml

I'll ask on bug 464898 for committers of the original Photon change to help...
Comment 4 Daniel Wille CLA 2018-02-26 12:06:30 EST
Yeah, I assumed this was due to the debug perspective having its layout changed, and I’m assuming the task list view used to be there by default.

I wasn’t sure which other view it should be relative to, which is why I looked up what the PDE log view does. I suppose a few others could be checked to see what others are using.
Comment 5 Martin Oberhuber CLA 2018-03-07 02:30:32 EST
Hi Daniel,

I have double-checked that the "Console" view has already been in the Debug perspective in Eclipse 3.8, so I am good applying your patch unmodified - I think it's the best solution.

Unfortunately, I cannot commit the patch while preserving your Author information in Git (Eclipse servers disallow this). Could you, ideally, make your contribution through Gerrit? https://wiki.eclipse.org/Gerrit

TIA,
Martin
Comment 6 Eclipse Genie CLA 2018-03-12 07:12:45 EDT
New Gerrit change created: https://git.eclipse.org/r/119217
Comment 8 Martin Oberhuber CLA 2018-03-12 07:20:51 EDT
Resolved for 4.4 (Photon).