Skip to main content



      Home
Home » Newcomers » Newcomers » Set a path in options referencing current workspace - possible?
Set a path in options referencing current workspace - possible? [message #647843] Sun, 09 January 2011 18:09 Go to next message
Eclipse UserFriend
Hello,

I have a workspace on a mobile disk, which I use on my laptop under Windows and Linux, and on my main computer under Windows.

I've been using Eclipse for quite a while but am not very familiar with the internals of it. So I don't really know where my settings are saved and stuff, but up to now this was no problem.

I'm using it mainly for LaTeX as of now, and well it uses a spell-checker with external (read: not included in the plugin directory) dictionaries. Now as the settings for the plugins are stored in the workspace as it seems, which creates a bit of trouble with the spell-checker. On Windows the dictionaries are in a different location from that under Linux apparently (no C: and stuff available under Linux).

The idea I came up with was putting the dictionaries in a folder of my portable workspace and set the path to the dictionaries to that folder. Of course the workspace has a different absolute path on every machine.

So finally the question: Is there a possibility to reference to the actual workspace in the options like %Workspace% or something similar, so that I could set the path to %Workspace%/dictionaries which would work out on every machine?
Re: Set a path in options referencing current workspace - possible? [message #647852 is a reply to message #647843] Mon, 10 January 2011 00:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: n.n.nnn

On Sun, 09 Jan 2011 18:09:46 -0500, effendiarsenal wrote:

> I have a workspace on a mobile disk, which I use on my laptop under
> Windows and Linux, and on my main computer under Windows.

You access the same physical workspace from both Linux and Windows?
In my opinion you shouldn't do that. You should use distinct workspaces
located on filesystems accessible from those OS's and check your
code into a source code repository and when in the respective OS; update
the local workspace from the repo.

> So finally the question: Is there a possibility to reference to the
> actual workspace in the options like %Workspace% or something similar,
> so that I could set the path to %Workspace%/dictionaries which would
> work out on every machine?

Not clear but I think you want to save your Preferences using File |
Export | General and Import into each OS dependent workspace.

I guess there are some commercial tools that help with this,
is it Pulse? Something like that.
Re: Set a path in options referencing current workspace - possible? [message #647854 is a reply to message #647843] Mon, 10 January 2011 00:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: n.n.nnn

On Sun, 09 Jan 2011 18:09:46 -0500, effendiarsenal wrote:

> I have a workspace on a mobile disk, which I use on my laptop under
> Windows and Linux, and on my main computer under Windows.

You access the same physical workspace from both Linux and Windows?
In my opinion you shouldn't do that. You should use distinct workspaces
located on filesystems accessible from those OS's and check your
code into a source code repository and when in the respective OS; update
the local workspace from the repo.

> So finally the question: Is there a possibility to reference to the
> actual workspace in the options like %Workspace% or something similar,
> so that I could set the path to %Workspace%/dictionaries which would
> work out on every machine?

Not clear but I think you want to save your Preferences using File |
Export | General and Import into each OS dependent workspace.

I guess there are some commercial tools that help with this,
is it Pulse? Something like that.
Re: Set a path in options referencing current workspace - possible? [message #647925 is a reply to message #647854] Mon, 10 January 2011 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Ah I knew that the suggestion for not using the same workspace was coming. Well honestly I don't see a real reason why not to, it works really fine except for this one issue with the dictionaries. And I don't always have a connection to my repositories, so checking this out is not possible at any time I need to work on my projects.

And well, no I'm not trying to save my Preferences.

So maybe I'll try to put it another way. I have installed TeXlipse, and this adds under Preferences a new section for TeXlipse.
In a subsection it asks for a directory where the dictionaries for the spell-checker are kept.

So it says: "Directory for main dictionaries:" and you put something like: "C:\Program Files (x86)\Miktex_Portable\dictionaries" into it.
Now this setting is saved in the workspace, and as you can imagine when I use it under Linux TeXlipse will fail to load any dictionary from "C:\Program Files (x86)\Miktex_Portable\dictionaries" as it is not existent.
Under Linux it may be /usr/local/dictionaries, which is of course not existent under Windows.

So well, available under both is my Workspace folder, it has a different path /media/usbstick/Workspace under Linux and U:\Workspace under Windows for example. But the structure beneath that is the same. So if I put a folder named "dictionaries" in the Workspace, I could set the path to the dictionaries to "%Workspace%/dictionaries" and that could be found on both systems. Now I don't know if it is possible and how to reference the Workspace directory in the preferences.
Re: Set a path in options referencing current workspace - possible? [message #648060 is a reply to message #647925] Mon, 10 January 2011 22:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: n.n.nnn

On Mon, 10 Jan 2011 08:44:00 -0500, Arsenal wrote:

> folder named "dictionaries" in the Workspace, I could set the path to
> the dictionaries to "%Workspace%/dictionaries" and that could be found
> on both systems. Now I don't know if it is possible and how to reference
> the Workspace directory in the preferences.

It could be problematic, try either a commercial solution like
www.poweredbypulse.com or to save a few bucks, create a network
share and make files like Preferences and User Dictionaries
available there for all your OS clients.

And, keep your OS workspaces separate and use version control to
safely keep code synchronized.
Re: Set a path in options referencing current workspace - possible? [message #649136 is a reply to message #648060] Mon, 17 January 2011 16:24 Go to previous message
Eclipse UserFriend
Great suggestions there, like I said, my network connection is not always available. So that is no solution...

But well if it isn't possible to use $WORKSPACE_LOC in options, then I'll have to change the directories manually everytime.
Previous Topic:Unable to load help contents in exporting feature of my rcp
Next Topic:No more Sun Java in Ubuntu, which Java to use with Eclipse?
Goto Forum:
  


Current Time: Tue Nov 11 09:00:18 EST 2025

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

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

Back to the top