Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to Import preferences without using the "File > Import" feature?
How to Import preferences without using the "File > Import" feature? [message #1123538] Wed, 02 October 2013 17:20 Go to next message
Aaron Sharp is currently offline Aaron SharpFriend
Messages: 1
Registered: October 2013
Junior Member
Hello Eclipse Experts,

I am trying to create an installer for my 8-12 year-old students that installs Eclipse on their computers and already had certain settings in place.

Because the students are so young, I want to minimize the amount of work they need to do in order to set up their Eclipse workspace at home the same way we use it in class.

We are using Eclipse Kepler.

The settings I'm interested in presetting are:
1. Hierarchical view instead of Flat Package Presentation
2. New File association for .png files to open with Gimp rather than default
3. Initial "recent" Workspace to be set to a particular folder on their desktop
4. Show Line Numbers
5. Folding enabled

Is there a way to set these as defaults when the student first opens Eclipse?
If so, where are these files located?

Thanks in advance!
Re: How to Import preferences without using the "File > Import" feature? [message #1123677 is a reply to message #1123538] Wed, 02 October 2013 20:28 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/2/2013 11:28 AM, Aaron Sharp wrote:
> Hello Eclipse Experts,
> I am trying to create an installer for my 8-12 year-old students that
> installs Eclipse on their computers and already had certain settings in
> place.
> Because the students are so young, I want to minimize the amount of work
> they need to do in order to set up their Eclipse workspace at home the
> same way we use it in class.
> We are using Eclipse Kepler.
>
> The settings I'm interested in presetting are:
> 1. Hierarchical view instead of Flat Package Presentation
> 2. New File association for .png files to open with Gimp rather
> than default
> 3. Initial "recent" Workspace to be set to a particular folder on
> their desktop
> 4. Show Line Numbers
> 5. Folding enabled
>
> Is there a way to set these as defaults when the student first opens
> Eclipse?
> If so, where are these files located?
> Thanks in advance!

There might be more clever ways to do this, however, one way that comes
to mind is to set this all up on one machine, then zip the whole thing
(Eclipse and the workspace) and distribute it, however, workspaces are
not typically portable between computer hosts. You could try creating a
blank workspace and porting it, but I'm not sure you'll get much more
than layout (so, maybe you won't get #2, #4, #5 and, of course, #1).

1. For this I think you have to create the project and distribute it,
but the students will have to learn to import it into their workspace,
which isn't portable. Projects are typically portable as long as you
haven't tied them to one host by making bad choices when you configure
Build Path. (Choosing paths outside the project for JARs.)

2. With Eclipse installed somewhere, like the one you're using, do File
-> Export... -> General -> Preferences (an XML file you save). The
students will have to learn to import this file.

3. There is a default for this offered by Eclipse when launched until
one is actually chosen (and the checkbox clicked). It will probably be
pretty appropriate. On Linux, this is /home/username/workspace. On
Windows (don't do Windows anymore myself), it's probably
C:\Users\username\workspace.

4. This should happen with #2 above.

5. Ibid.

Someone else might know a better approach for having tried it. If you do
try some of this and reach any conclusions, you might report back. It
will be helpful the next time someone asks.

Hope this helps get you started.
Previous Topic:Menu item constantly disabled
Next Topic:Trouble creating new Synchronized Project from old Git repository
Goto Forum:
  


Current Time: Thu Apr 18 08:24:06 GMT 2024

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

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

Back to the top