Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is it possible to access the current workspace name and set this to a variable?(Multiple workspaces needing to be uniquely identified by name at run time.)
Is it possible to access the current workspace name and set this to a variable? [message #540066] Mon, 14 June 2010 18:24 Go to next message
Sarah  is currently offline Sarah Friend
Messages: 2
Registered: June 2010
Junior Member
I am creating multiple workspaces for a project, and I need a way to determine which is which, so I want a variable that can get into eclipse's current workspace name and set this to a simple String.

Any help is appreciated.

Thank you.
Re: Is it possible to access the current workspace name and set this to a variable? [message #540090 is a reply to message #540066] Mon, 14 June 2010 20:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you can set it as a preference in Preferences>General>Workspace (at
least in 3.6).

If you can't set a preference on the command line [1] then you would
have to set the preference after you start your workspace.

[1]
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/reference/misc/runtime-options.html

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Is it possible to access the current workspace name and set this to a variable? [message #540341 is a reply to message #540090] Tue, 15 June 2010 17:56 Go to previous message
Sarah  is currently offline Sarah Friend
Messages: 2
Registered: June 2010
Junior Member
That doesn't really help me. See, I am created multiple workspace through the command line, and so if I set that in the master workspace before copying the master workspace, all of the workspace variables will point to the same path - which i need to get around.
Previous Topic:AbstractTextEditor: how to refresh the whole document partition
Next Topic:Who should create the inner editor part in a multi editor?
Goto Forum:
  


Current Time: Thu Apr 25 03:38:08 GMT 2024

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

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

Back to the top