|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
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
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
> 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
> 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
4. This should happen with #2 above.
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.
Powered by FUDForum
. Page generated in 0.03546 seconds