Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Close Projects after import
Close Projects after import [message #1823736] Wed, 01 April 2020 06:20 Go to next message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

is it possible to close specific projects after importing them into the workspace?

Reason is: We have some reactor projects which are needed rarly, however should be in the workspace. If they are open, all launch configs in our projects are shown multiple times in the launch dialog.

I have seen "Close Project" in the commands table, however I don't know how to trigger a command (or if the table is even used for that, might only be for setting key bindings).

thanks in advance
Hannes
Re: Close Projects after import [message #1823741 is a reply to message #1823736] Wed, 01 April 2020 07:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
No, there is no task to close projects.

Is there some overlap of actual underlying file system folders between the folder structure of these projects you want closed versus the projects that you want opened? I.e., what causes the duplication of launchers?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Close Projects after import [message #1823742 is a reply to message #1823741] Wed, 01 April 2020 07:54 Go to previous messageGo to next message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Yes its a maven structure with different modules:

The workspace looks like this:

test
--- pom.xml
--- test1WithLauncher

test1WithLauncher
--- pom.xml


So the launcher will be found in 2 projects and therefore listed twice. I think the launch dilaog needs a fix and filter duplicated entries with the same duplicated path, but as long as this is not working the solution was, closing the test reactor project and only open it manually if we need to add a new test project.



[Updated on: Wed, 01 April 2020 07:55]

Report message to a moderator

Re: Close Projects after import [message #1823746 is a reply to message #1823742] Wed, 01 April 2020 09:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
I could suggest something that uses a feature most people aren't aware exists. Assuming you have the .project files in an SCM (Git?), you could add a filter to the .project to not show the nested contents (e.g., subprojects) in the workspace tree representation. You can do this via the context menu Properties... on the project and then go to Resource -> Resource Filters. For example, on all the Oomph projects we have an "Exclude all" filter that applies to "Folders" and uses "Project Relative Path" "matches" "target". This ensures that when we run the local Maven/Tycho build that all the "target" folders are not visible in the resource tree; that avoids all kinds of duplicates avoids that search files searches contents you really don't want to see because they're all derived. Looking at this properties dialog, it looks like you could even use this to hide just the *.launch files...




Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Close Projects after import [message #1823747 is a reply to message #1823746] Wed, 01 April 2020 09:10 Go to previous message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Thanks Ed, that solved the problem.
Previous Topic:Use eclipse.user.password in github project model.
Next Topic:Properties-view cell focus very slow in 4.15
Goto Forum:
  


Current Time: Thu Mar 28 17:09:45 GMT 2024

Powered by FUDForum. Page generated in 0.01950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top