Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] RE: Property Files: Where to store if they should be hidden from the user?

 Chad,

I have found the most useful option to be a suitable plugin's 'state
location' accessed via getStateLocation() as per this snippet of code:

    private static final IPath getPreferenceFilePath( String filePrefix ) {
        String fileName = filePrefix + PROPERTIES_FILE_SUFFIX;
        IPath statePath = PluginX.getDefault().getStateLocation();
        return statePath.append( fileName );

Cheers,

Mike E.
Mike Evans, Incremental Ltd.

-----Original Message-----
From: pde-dev-admin@xxxxxxxxxxx [mailto:pde-dev-admin@xxxxxxxxxxx] On Behalf
Of pde-dev-request@xxxxxxxxxxx
Sent: 13 May 2004 17:00
To: pde-dev@xxxxxxxxxxx
Subject: pde-dev digest, Vol 1 #140 - 1 msg

Send pde-dev mailing list submissions to
	pde-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	http://dev.eclipse.org/mailman/listinfo/pde-dev
or, via email, send a message with subject or body 'help' to
	pde-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
	pde-dev-admin@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific than
"Re: Contents of pde-dev digest..."


Today's Topics:

   1. Property Files: Where to store if they should be hidden from the user?
(cebarne2@xxxxxxxxxxxxxxxxxxx)

--__--__--

Message: 1
From: <cebarne2@xxxxxxxxxxxxxxxxxxx>
To: pde-dev@xxxxxxxxxxx
Date: Thu, 13 May 2004 07:53:37 -0500
Subject: [pde-dev] Property Files: Where to store if they should be hidden
from the user?
Reply-To: pde-dev@xxxxxxxxxxx





Greetings.

In our plug-in development, we would like to maintain property files.  That
is, XML files that store the properties/preferences for a given plug-in.
In many cases, we want these files to be persistent to the user's workspace,
but not visible within any particular project.  Is there any location under
the workspace that is safe to store files created by the plug-in?

Already, the Eclipse platform creates the .metadata folder.  However, I am
weary to use this folder, since it is controlled by some other entity and I
am not convinced artifacts I put in it will still be there tomorrow.
Perhaps we can create our own ".metadata2" folder in the workspace?  Can we
be certain this folder will not be clobbered by any internal Eclipse
mechanism?

Thank You,

Chad Barnes
Rockwell Collins, Inc.



--__--__--

_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/pde-dev


End of pde-dev Digest





Back to the top