Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Multiple branches / projects(Working with multiple branches / projects)
Multiple branches / projects [message #654857] Thu, 17 February 2011 13:08 Go to next message
Jan Sindberg is currently offline Jan SindbergFriend
Messages: 3
Registered: February 2011
Junior Member
While working on one or more new branches, I also have to be able to bugfix existing products.

I would like to be able to switch between these tasks, and have Eclipse view files for the task at focus, while hiding those belonging to another branch (It is not fun when you by accident make corrections in the right file at the wrong branch Sad )
I have tried creating different projects, but closing one project does not hide the files opened while working with that project. Also opening a new project does not hide files from other projects.

Is there a better way than creating multiple workspaces and changing workspace? Or is that the purpose of workspace?

There must be some documentation on best practices for this, I just haven't found it ?
Re: Multiple branches / projects [message #654919 is a reply to message #654857] Thu, 17 February 2011 15:46 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Check out the Mylyn plugin. It provides a task based view of the workspace. It remembers what files are associated with which tasks by maintaining a task context. As you switch between tasks, Mylyn will open/close files so that you only see what you have associated with a given task.

You can download Mylyn plugins from the Eclipse update site.
Re: Multiple branches / projects [message #655046 is a reply to message #654919] Fri, 18 February 2011 07:25 Go to previous messageGo to next message
Jan Sindberg is currently offline Jan SindbergFriend
Messages: 3
Registered: February 2011
Junior Member
I agree that it seems to do the trick Smile
When reading about it, it just sounded much more complicated, but in practice it works quite simple. (I am using local task-repository, our current task-tool is not supported)

Do you have any tips for when one should use different workspaces?

And is there any use for working sets when using mylyn?

[Updated on: Fri, 18 February 2011 07:26]

Report message to a moderator

Re: Multiple branches / projects [message #655332 is a reply to message #654857] Sat, 19 February 2011 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: coolsnoopy.gmx.net

Hi Jan,

to state it clearly:
* every branch of a (java) project is a new /different project in
eclipse, they have nothing to do with each other. Btw.: you will have to
change the project-name in .project if you want to have different
versions of the same project in one workspace: the project-name must be
unique. So e.g. change it from DEVEL-myProject to MAINT-1.0-myProject etc..

* if you work with lot's of projects it is good practice to seperate
them in different workspaces: one for devel, one for maint etc..
you can than launch eclipse 2 times with different workspaces.
Use the option to set a name in the titlebar of eclipse to avoid mixing
up things.

* in eclipse you can group projects using working-sets in the
project-explorer. simple but good to organize your projects

* if neccessary you can define depenencies: project B opens / closes if
project A is opened / closed. Myself does not use it, but kight be an idea.

* mylyn, mmhh... I tried it a few weeks, but it was to "noisy" and
didn't help me that way I needed it. I think it's no good tipp to use it.

* another option / idea: depending on the decoratos you have it might be
possible to color the filenames in the project-explorer-tree with
different colors. E.g. "blue" for devel-soource, brown for maint-soruce
etc..


Btw, I do not understand what you wanna say with:
<<<
but closing one project does not hide the files opened while working
with that project.
<<<
If you close a project, every source / editor in this project is closed.
If not, file a bug to eclipse!

Regards, Norbert

Am 17.02.2011 14:08, schrieb Jan Sindberg:
> While working on one or more new branches, I also have to be able to
> bugfix existing products.
>
> I would like to be able to switch between these tasks, and have Eclipse
> view files for the task at focus, while hiding those belonging to
> another branch (It is not fun when you by accident make corrections in
> the right file at the wrong branch :( )
> I have tried creating different projects, but closing one project does
> not hide the files opened while working with that project. Also opening
> a new project does not hide files from other projects.
>
> Is there a better way than creating multiple workspaces and changing
> workspace? Or is that the purpose of workspace?
>
> There must be some documentation on best practices for this, I just
> haven't found it ?
Re: Multiple branches / projects [message #657882 is a reply to message #655332] Fri, 04 March 2011 13:19 Go to previous messageGo to next message
Jan Sindberg is currently offline Jan SindbergFriend
Messages: 3
Registered: February 2011
Junior Member
Thanks for your long post.

Have been working with mylyn, because we found that Perforce have implemented a connection for mylyn, and we have our own Perforce-connection to our task-tool. It seems to work well for my needs.

Your tips for handling branches (projects) are worth knowing as well Smile Thanks
Re: Multiple branches / projects [message #657955 is a reply to message #657882] Fri, 04 March 2011 17:44 Go to previous message
Eclipse UserFriend
Originally posted by: coolsnoopy.gmx.net

You'r welcome, Jan.
Can't help concerning Perforce, cause I don't know it in pratice
(working with MKS)
Previous Topic:Internal browser fails for JSF - FireFox OK
Next Topic:Problem updating eclipse to 3.6.2 using update manager
Goto Forum:
  


Current Time: Wed Apr 24 23:19:47 GMT 2024

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

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

Back to the top