Bug 128397 - [IDE] Inconsistency in the close / open all related projects
Summary: [IDE] Inconsistency in the close / open all related projects
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 141275 141668 182969 201981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-17 08:19 EST by Pascal Rapicault CLA
Modified: 2021-09-01 03:09 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2006-02-17 08:19:52 EST
In the same way that when I open a project I'm prompted to open related project, the normal close operation should prompt me to close the unrelated projects. This would remove the need for a "close unrelated projects" action.

Question: which criterias are used to decide which projects to open / close? Is there an extension point to let me plug my logic?
Comment 1 John Arthorne CLA 2006-02-21 16:34:35 EST
The problem is, "Close Project" and "Close Unrelated Projects" have opposite effect on the selected projects.  The first will close the selected projects, and the second will never close the selected projects.  It would be strange to have a preference that completely reverses the behaviour.

The equivalent of the open behaviour would be a prompt to "Close referenced projects" as part of the close command.

Answer: it uses project references.  Any plugin can add/remove project references, and this would effect the open/close behaviour (IProjectDescription#setReferencedProjects).
Comment 2 John Arthorne CLA 2006-03-08 13:40:11 EST
*** Bug 130343 has been marked as a duplicate of this bug. ***
Comment 3 Randy Hudson CLA 2006-03-08 15:34:40 EST
This bug seems to be about prompting the user when closing. My request was to support open related projects, by tracking dependencies on projects as they get closed.
Comment 4 Randy Hudson CLA 2006-03-09 10:35:33 EST
I wasn't implying that my bug wasn't a duplicate. I was just trying to preserve my comments. (I think) Pascal is making 2 points:

1) Why not open a dialog on "Close Project" like is done with "Open Project"? This would be consistent, and could remove clutter from an already ginormous popup menu.

2) What criteria is used to include additional project in the operation. I don't think I'm the only one who finds the current behavior strange.

The ultimate solution is to provide the folling:

when closing:
a) close downstream projects
b) close related project (up and down)

when opening:
a) open upstream projects
b) open related projects (up and down)
Comment 5 John Arthorne CLA 2006-05-15 09:58:50 EDT
*** Bug 141668 has been marked as a duplicate of this bug. ***
Comment 6 John Arthorne CLA 2006-06-05 14:54:29 EDT
*** Bug 141275 has been marked as a duplicate of this bug. ***
Comment 7 Claudio Nieder CLA 2006-07-05 18:16:46 EDT
(In reply to comment #6)
> *** Bug 141275 has been marked as a duplicate of this bug. ***

Looking at all comments it seems to me that diverse requests are now brought under this umbrella. What I fear now, seeing comment #4, that some solution might be produced, which adds too much steps to often used commands.

I think one should focus onto the functions usually needed. For this I tell you my needs and others interested in this bug can add to it their needs or confirm they are happy with this short selection:

- Open the selected Project together with all other projects required by this project. This prevents to get to a state I cannot build the selected project becase some required one is closed.

- Close all currently open project except the selected one and the ones needed by the selected project.

I myself could happily live with these two commands alone.

If you choose some solution which requires a dialog after selecting the close (unrelated) menu item, then please have a "[] remember my choice and don't ask again" checkbox allowing me to tailor the open and close (unrelated) to my desired behaviour after the first use.


Comment 8 Tod Creasey CLA 2007-06-20 13:07:30 EDT
*** Bug 182969 has been marked as a duplicate of this bug. ***
Comment 9 Walter Brunauer CLA 2007-06-21 02:18:35 EDT
That's what I did foresee, marking Bug #182969 as duplicate:-)

Nevertheless I want to stress out once again, so its not overseen: close project should behave exactly as open project. If one can open related projects of a project, one should be able to close related projects of a project just as well.
Comment 10 Max Gilead CLA 2007-06-21 02:24:14 EDT
If one can open related projects
of a project, one should be able to close related projects of a project just as
well... as long as they're not used by other projects. (note: check for projects that can be closed should be recursive)
Comment 11 Walter Brunauer CLA 2007-06-21 02:33:58 EDT
Exactly, Max. Thanks for making this clear.
Comment 12 Mike Henke CLA 2008-02-28 13:12:42 EST
duplicate bug 201981 , bug 170323 , bug 128397
Comment 13 Mike Henke CLA 2008-02-28 13:14:57 EST
duplicate bug 128543 - this is what i was actually going to put a ticket in for
Comment 14 Tod Creasey CLA 2008-02-28 13:20:23 EST
*** Bug 201981 has been marked as a duplicate of this bug. ***
Comment 15 Tod Creasey CLA 2008-02-28 13:21:57 EST
Bug 128543 is related but nit the same (it is asking for some different functionality)
Comment 16 Susan McCourt CLA 2009-07-15 12:07:12 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 17 Eclipse Webmaster CLA 2019-09-06 16:05:44 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.
Comment 18 Eclipse Genie CLA 2021-09-01 03:09:18 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.