Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » finding the base directory for RCP app
finding the base directory for RCP app [message #464924] Thu, 01 December 2005 15:34 Go to next message
steve lane is currently offline steve laneFriend
Messages: 24
Registered: July 2009
Junior Member
Hi,

I have an installed RCP product. Id need to write a temporary file and
would ideally like to place it in the workspace directory eclipse creates
under your project when you build the product. I dont however know in
advance under what base directory the deployment team will install my app.
I tried using a relative path for the filename but im trying to start XL
with the file and it wants the full pathname - how can i find out on the
fly where my app is installed so i can supply the full pathname of the
workspace directory ?

thanks,

steve.
Re: finding the base directory for RCP app [message #464946 is a reply to message #464924] Thu, 01 December 2005 16:21 Go to previous message
Gail Jakubowski is currently offline Gail JakubowskiFriend
Messages: 36
Registered: July 2009
Member
IPath workspace = Platform.getLocation();
File file = new File(workspace.toString())
String fullPath = file.getAbsolutePath();

"steve lane" <steve.x.lane@jpmchase.com> wrote in message
news:1afb7617ce742d9146bd107e55d6873c$1@www.eclipse.org...
>
> Hi,
>
> I have an installed RCP product. Id need to write a temporary file and
> would ideally like to place it in the workspace directory eclipse creates
> under your project when you build the product. I dont however know in
> advance under what base directory the deployment team will install my app.
> I tried using a relative path for the filename but im trying to start XL
> with the file and it wants the full pathname - how can i find out on the
> fly where my app is installed so i can supply the full pathname of the
> workspace directory ?
>
> thanks,
>
> steve.
>
Previous Topic:TreeViewer get filtered children
Next Topic:Table Column Width
Goto Forum:
  


Current Time: Mon Dec 09 08:36:02 GMT 2024

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

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

Back to the top