Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Shared eclipse settings for a team
Shared eclipse settings for a team [message #334714] Wed, 25 February 2009 13:57 Go to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
Hello,

I would like to create a shared eclipse setting for a team of developers
that are moving to Eclipse.

I would like to make the experience as easy and uniform as possible.

After digging around the help and news groups, I found solutions for
shared eclipse installation with the set of needed plugins.

I also found that the .project and .classpath are enough for the project
information (dependencies info) so this will be under version control
(clearcase) with the code.

What I couldn't find is a way to share workspace settings (preferences)
like Code style, Errors and Warnings, ...

I saw that there is an Export/Import mechanism for most of those settings,
but each one separately, and I see that some of the settings can be made
on the project level so can be checked in with the project.

But the problem is that we will have lots of workspaces for the different
branches we work on, and each workspace will have more than one project,
so it will not be convenient to ask the users to import all the settings
one by one in each workspace, nor it will be practical to have the same
settings duplicated in each project.

I think that this is a common problem, and I hope that a solution exists
for it.

I am looking for one of the following:
1 - A way to headlessly export and import those settings from the
workspace, so I can include it in a script users run when setting the
workspace for the first time.

Or

2- A single Export/Import action from the GUI that will import all the
settings.

Another question, is there a way to create the workspace and add projects
to it programmatically.

The projects will be checked in a single directory in clearcase, so I can
create a script that invokes eclipse and create the workspace if it is not
there and add those projects to it. That is not essential, but it will be
nice to have as the import action from the gui is very easy to use.

Thanks in advance for your help.

Best regards,
Mamado.


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334722 is a reply to message #334714] Wed, 25 February 2009 14:19 Go to previous messageGo to next message
J.-P. Pellet is currently offline J.-P. PelletFriend
Messages: 71
Registered: July 2009
Member
> What I couldn't find is a way to share workspace settings (preferences)
> like Code style, Errors and Warnings, ...

I way to share the same errors and warnings on the compiler is to turn
on project-specific settings for all shared projects. But logically,
this makes you lose the ability to quickly enable a new warning for all
shared projects, for instance, since you'd have to repeat the operation
for each project AFAIK.

Cheers,
J.-P.
Re: Shared eclipse settings for a team [message #334764 is a reply to message #334722] Thu, 26 February 2009 14:18 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
>> What I couldn't find is a way to share workspace settings (preferences)
>> like Code style, Errors and Warnings, ...

> I way to share the same errors and warnings on the compiler is to turn
> on project-specific settings for all shared projects. But logically,
> this makes you lose the ability to quickly enable a new warning for all
> shared projects, for instance, since you'd have to repeat the operation
> for each project AFAIK.

I agree with you, and one way we thought of is to have a designated
"master" project, and have script duplicate that info in all projects, but
I think this is an overkill.

I think that this should be a feature in Eclipse (if it is not already
available in some plugin), am I asking for too much :-)

Thanks,
Mamado


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334819 is a reply to message #334764] Mon, 02 March 2009 07:42 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
>>> What I couldn't find is a way to share workspace settings (preferences)
>>> like Code style, Errors and Warnings, ...

>> I way to share the same errors and warnings on the compiler is to turn
>> on project-specific settings for all shared projects. But logically,
>> this makes you lose the ability to quickly enable a new warning for all
>> shared projects, for instance, since you'd have to repeat the operation
>> for each project AFAIK.

> I agree with you, and one way we thought of is to have a designated
> "master" project, and have script duplicate that info in all projects, but
> I think this is an overkill.

> I think that this should be a feature in Eclipse (if it is not already
> available in some plugin), am I asking for too much :-)


Is this true? There is no way to share settings with users via version
control except by using project specific settings and duplicate the
settings for all projects in the workspace?

Thanks,
Mamado.


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334826 is a reply to message #334819] Mon, 02 March 2009 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/2/2009 2:42 AM, Mamado wrote:
>>>> What I couldn't find is a way to share workspace settings
>>>> (preferences) like Code style, Errors and Warnings, ...
>
>>> I way to share the same errors and warnings on the compiler is to
>>> turn on project-specific settings for all shared projects. But
>>> logically, this makes you lose the ability to quickly enable a new
>>> warning for all shared projects, for instance, since you'd have to
>>> repeat the operation for each project AFAIK.
>
>> I agree with you, and one way we thought of is to have a designated
>> "master" project, and have script duplicate that info in all projects,
>> but I think this is an overkill.
>
>> I think that this should be a feature in Eclipse (if it is not already
>> available in some plugin), am I asking for too much :-)
>
>
> Is this true? There is no way to share settings with users via version
> control except by using project specific settings and duplicate the
> settings for all projects in the workspace?

There is no "simple" way, no. Remember that Preferences are
workspace-specific and workspaces are NOT designed to be shared. Not to
mention the fact that many people work using several different
workspaces and you would not want them all to have the same preferences.
I think the right path to take if you feel the pain of duplicating
settings into many different projects is to get that specific issue
addressed, rather than trying to convince people that sharing workspace
preferences is "the right thing" (because it simply isn't "the right
thing" for many users).

Eric
Re: Shared eclipse settings for a team [message #334834 is a reply to message #334826] Mon, 02 March 2009 17:07 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
> There is no "simple" way, no. Remember that Preferences are
> workspace-specific and workspaces are NOT designed to be shared. Not to
> mention the fact that many people work using several different
> workspaces and you would not want them all to have the same preferences.
> I think the right path to take if you feel the pain of duplicating
> settings into many different projects is to get that specific issue
> addressed, rather than trying to convince people that sharing workspace
> preferences is "the right thing" (because it simply isn't "the right
> thing" for many users).

> Eric

Thanks a lot Eric for the clarification, I wasn't trying to say that
sharing workspace settings is the "right" thing to do or not, I was just
highlighting a pain I feel in using Eclipse.

I feel that some settings that are currently workspace-specific should be
either allowed to be easily shared or at least allowed to be moved to user
global settings.

I saw that some other people share the same pain, and at this link
http://eclipse.dzone.com/news/create-new-eclipse-workspace-w Tomas Kramer
has a suggestion to have a script that creates the new workspace and copy
some specific settings from the old workspace to the new workspace.

This solution can help reducing the pain, but I still think that Eclipse
should provide more support in sharing settings between different
workspaces and different developers working in a uniform environment.

Thanks again,
Mamado.


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334842 is a reply to message #334834] Mon, 02 March 2009 19:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/2/2009 12:07 PM, Mamado wrote:
> This solution can help reducing the pain, but I still think that Eclipse
> should provide more support in sharing settings between different
> workspaces and different developers working in a uniform environment.

Well, be more specific. Besides project-specific settings and easy
export/import of workspace preferences, both of which are already
provided, what else would you like to have it do?
Think about and formulate your answer to that question and enter it as
an enhancement request into Bugzilla. Be specific.

Eric
Re: Shared eclipse settings for a team [message #334860 is a reply to message #334842] Wed, 04 March 2009 07:37 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
> Well, be more specific. Besides project-specific settings and easy
> export/import of workspace preferences, both of which are already
> provided, what else would you like to have it do?
> Think about and formulate your answer to that question and enter it as
> an enhancement request into Bugzilla. Be specific.

I am sorry for not being specific from the beginning, I wanted to describe
the background behind my request, to be specific now:

I want an easy way to share specific workspace settings that are machine
independent across a team.

The best option that suites my need is:
Separate workspace settings into two groups, a shareable one, and a
user/machine specific one, and make it easy to put this shareable set
under version control.

A workaround is to have a "single" export/import preferences action, and
allow that action to run in batch mode, to be able to create/update new
workspace automatically with the preferred settings.

Shall I file this enhancement on eclipse.platform?


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334861 is a reply to message #334860] Wed, 04 March 2009 08:19 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

On Wed, 4 Mar 2009 07:37:28 +0000 (UTC), mamado+eclipse@gmail.com
(Mamado ) wrote:


>
>Shall I file this enhancement on eclipse.platform?

There has been some discussion on a similar topic in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=143457
Maybe you can use it as a starter.


Achim
--
Achim Lörke

Eclipse-Stammtisch in the Braunschweig, Germany area:
http://www.bredex.de/de/news/events.html


Achim Lörke

Re: Shared eclipse settings for a team [message #334872 is a reply to message #334860] Thu, 05 March 2009 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

I still don't see how any solution for sharing workspace settings is as
good as just using project-specific settings (if we ignore for a minute
the problem of keeping may projects' settings in sync with each other*).
I think it is obvious that relying on workspace settings is not
reliable. At any time the user can change his workspace settings and
there is no way for anyone else to know about that (or for the user to
even know that he did something "wrong"). However, with project-specific
settings that are checked in to version control, if someone makes a
change *everyone sees it (and those things can be locked down so that
only certain people can commit such changes).
Furthermore, it is naive to assume that all projects that might be in
the same workspace at any one time will require identical settings. It
is quite common IME for different projects to have different choices for
settings, something that using only workspace-wide settings does not
support at all.

* Now, as I've said earlier, I think it would be an interesting path to
explore the idea of some tool support for keeping settings of multiple
projects in sync with each other. I recognize that this is a bit of a
pain right now and I'd bet there are some good ideas for how such a tool
would work. If you enter or find a bug report about that, please post
the number here as I would like to follow that discussion.

Eric


On 3/4/2009 2:37 AM, Mamado wrote:
>
>> Well, be more specific. Besides project-specific settings and easy
>> export/import of workspace preferences, both of which are already
>> provided, what else would you like to have it do?
>> Think about and formulate your answer to that question and enter it as
>> an enhancement request into Bugzilla. Be specific.
>
> I am sorry for not being specific from the beginning, I wanted to
> describe the background behind my request, to be specific now:
>
> I want an easy way to share specific workspace settings that are machine
> independent across a team.
>
> The best option that suites my need is:
> Separate workspace settings into two groups, a shareable one, and a
> user/machine specific one, and make it easy to put this shareable set
> under version control.
>
> A workaround is to have a "single" export/import preferences action, and
> allow that action to run in batch mode, to be able to create/update new
> workspace automatically with the preferred settings.
>
> Shall I file this enhancement on eclipse.platform?
>
Re: Shared eclipse settings for a team [message #334876 is a reply to message #334872] Thu, 05 March 2009 16:39 Go to previous messageGo to next message
Mohamed Hussein is currently offline Mohamed HusseinFriend
Messages: 76
Registered: July 2009
Member
Eric Rizzo wrote:

> I still don't see how any solution for sharing workspace settings is as
> good as just using project-specific settings (if we ignore for a minute
> the problem of keeping may projects' settings in sync with each other*).
> I think it is obvious that relying on workspace settings is not
> reliable. At any time the user can change his workspace settings and
> there is no way for anyone else to know about that (or for the user to
> even know that he did something "wrong"). However, with project-specific
> settings that are checked in to version control, if someone makes a
> change *everyone sees it (and those things can be locked down so that
> only certain people can commit such changes).
> Furthermore, it is naive to assume that all projects that might be in
> the same workspace at any one time will require identical settings. It
> is quite common IME for different projects to have different choices for
> settings, something that using only workspace-wide settings does not
> support at all.

> * Now, as I've said earlier, I think it would be an interesting path to
> explore the idea of some tool support for keeping settings of multiple
> projects in sync with each other. I recognize that this is a bit of a
> pain right now and I'd bet there are some good ideas for how such a tool
> would work. If you enter or find a bug report about that, please post
> the number here as I would like to follow that discussion.


Hello Eric,

I agree with you that Project settings is the best approach, but the pain
is huge, especially when number of projects increase.

I think one solution might be to have settings profiles and in the project
you select which setting profile to use, and you have the ability to
further customize the profile, and those settings profiles should be
version controlled as well.

Another solution is to have a tool that physically duplicate the settings
among projects, but I believe this looks more like a workaround than a
solution.

I really appreciate your input and suggestions. I am still new to Eclipse,
and I am learning a lot from your input and everyone else in those lovely
forums.

Thanks again,
Mamado.


Best Regards,
Mohamed.
Re: Shared eclipse settings for a team [message #334885 is a reply to message #334876] Fri, 06 March 2009 14:57 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/5/2009 11:39 AM, Mamado wrote:
> Eric Rizzo wrote:
>> * Now, as I've said earlier, I think it would be an interesting path
>> to explore the idea of some tool support for keeping settings of
>> multiple projects in sync with each other. I recognize that this is a
>> bit of a pain right now and I'd bet there are some good ideas for how
>> such a tool would work. If you enter or find a bug report about that,
>> please post the number here as I would like to follow that discussion.
>
>
> Hello Eric,
>
> I agree with you that Project settings is the best approach, but the
> pain is huge, especially when number of projects increase.
>
> I think one solution might be to have settings profiles and in the
> project you select which setting profile to use, and you have the
> ability to further customize the profile, and those settings profiles
> should be version controlled as well.

I like that idea of settings profiles.
I just found these two bug reports that are discussing this topic; I
suggest you add yourself to the CC list and/or add whatever comments you
can contribute.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=163543
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194414

Eric
Previous Topic:Get extension point from plugin..
Next Topic:unconnected sockets not implemented
Goto Forum:
  


Current Time: Thu Dec 26 21:03:51 GMT 2024

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

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

Back to the top