Page 1 of 1

get current file name in plugin

Posted: Thu Feb 16, 2006 8:56 am
by rparree
Hi,

I need to obtain the current filename in a plugin. My plugin implements SelectionPluginExtension. I don't see any way of obtaining the current file name.

Is it possible?

tx.,

Raphae;

Posted: Thu Feb 16, 2006 11:51 am
by sorin_ristache
Hello Raphae,

Please tell us more details about what you need to do in your plugin in order to see how it would be best supported in the <oXygen/> standalone distribution.

Regards,
Sorin

Posted: Mon Feb 20, 2006 8:47 am
by rparree
Sorin,

My requirements are really (our-)environment specific. To make authoring of our documents easier I have implemented a few plugins. Two of these would be easier in use if they would be able to obtain the current's file directory.

(these are plugins that insert certain elements, using for example using a JFileChooser).

Now they go to some common root using a -D flag.

Cheers,

Raphael

Posted: Mon Feb 20, 2006 1:33 pm
by sorin_ristache
Hello,

We can make available the URL of the edited file, as it is displayed in the <oXygen/> status bar, by adding a method getDocumentURL() returning a URL to the SelectionPluginContext interface. Would it be helpful ?

Regards,
Sorin

Posted: Mon Feb 20, 2006 1:40 pm
by rparree
Sorin,

Yes!, that would certainly help.

Great thanks for the help, how/when will this be available?

regards,

Raphael

Posted: Mon Feb 20, 2006 6:00 pm
by sorin_ristache
We implemented the method in SelectionPluginContext and it will be available in the release of version 7.1, in a short time.

Regards,
Sorin

Posted: Mon Feb 20, 2006 9:22 pm
by rparree
Sorin,

Great!

Again thanks for your help Sorin....

Raphael