Java Extensions - project directory

Oxygen general issues.
jwalker
Posts: 10
Joined: Thu Aug 09, 2012 3:27 pm

Java Extensions - project directory

Post by jwalker »

In a WorkspaceAccessPluginExtension, how can you get the directory of the current project that is opened?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Java Extensions - project directory

Post by Radu »

Hi,

You could try to use the API:

Code: Select all

ro.sync.exml.workspace.api.util.UtilAccess.expandEditorVariables(String, URL)
like:

Code: Select all

pluginWorkspaceAccess.getUtilAccess().expandEditorVariables("${pd}", null);
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jwalker
Posts: 10
Joined: Thu Aug 09, 2012 3:27 pm

Re: Java Extensions - project directory

Post by jwalker »

That is exactly what I needed. Thanks!
Post Reply