Bug 170948 - [GlobalActions] Problems view does not show project's problems after opening a project in new window
Summary: [GlobalActions] Problems view does not show project's problems after opening ...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-18 12:17 EST by Sergey Bushkov CLA
Modified: 2019-09-06 16:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Bushkov CLA 2007-01-18 12:17:16 EST
Go to Problems view, change filter to "any element in the same project", click on a project (markers for its files are shown in the Problems view). Use "Open in New Window" on the project. Project is opened in new window, but no problems are shown in the Problems view.

Problems appear if any resource was selected in the Package Explorer view.

The selection is empty after project was opened in New Window. We have similar view which content depends on the selected project, and it has the same problem with "Open in New Window" scenario. Is it possible to change initial selection, e.g. select the project by default?
Comment 1 Paul Webster CLA 2007-01-18 12:35:12 EST
I don't think so.  The new workbench window contains a completely new set of views ... i.e. the package explorer in one window doesn't know about the package explorer in the other window.

PW
Comment 2 Sergey Bushkov CLA 2007-01-18 12:50:27 EST
Well, the new Package explorer does not know about others, but it knows that it is opened on certain project.
Comment 3 Paul Webster CLA 2007-01-18 13:45:46 EST
A newly opened package explorer does not have a current selection.

PW
Comment 4 Paul Webster CLA 2007-01-18 13:49:01 EST
Oh, I see what you mean ... it opens drilled down to the project that was select, but has no selection.

Moving to JDT for comment.

PW
Comment 5 Sergey Bushkov CLA 2007-01-18 13:58:14 EST
BTW, the Navigator view has the same behaviour; potentially - CDT has similar views, etc. Not only the Package Explorer.
Comment 6 Paul Webster CLA 2007-01-18 14:11:45 EST
The current action opens a new window with the current perspective id and sets the page input to the project - OpenInNewWindowAction

Later,
PW
Comment 7 Sergey Bushkov CLA 2007-01-18 14:56:37 EST
This means that when the Problems view is being created, it can use the page.getInput() method and show problems accordingly. (if selection is empty).

Just tested it with my view - this approach works. Not sure if there are no side effects.

Are there reasons why the Problems view does not use the page input?
Comment 8 Paul Webster CLA 2007-04-05 19:05:41 EDT
Assigning to component owner
PW
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:19:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.