| Set a path in options referencing current workspace - possible? [message #647843] |
Sun, 09 January 2011 18:09  |
Eclipse User |
|
|
|
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 #647925 is a reply to message #647854] |
Mon, 10 January 2011 08:43   |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.33982 seconds