get current file name in plugin

Having trouble installing Oxygen? Got a bug to report? Post it all here.
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

get current file name in plugin

Post 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;
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

Post by rparree »

Sorin,

Yes!, that would certainly help.

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

regards,

Raphael
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
rparree
Posts: 53
Joined: Tue Aug 23, 2005 12:00 pm

Post by rparree »

Sorin,

Great!

Again thanks for your help Sorin....

Raphael
Post Reply