Re: Api to get path
Peter Nabbefeld <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter,
You could try
System.getProperty("netbeans.user") + "/config"
Kind regards
P.
Am 21.12.2016 um 05:14 schrieb Peter Cheung:
> Thanks, but the problem is : i need to get the location of the config
> directory, still finding API to do that. If hard code it to relative
> path, it could be wrong.
>
> thanks
>
> from Peter
>
>
>
> ------------------------------------------------------------------------
> *From:* Benno Markiewicz <[email protected]>
> *Sent:* Tuesday, December 20, 2016 11:58 PM
> *To:* dev
> *Subject:* [platform-dev] Re: Api to get path
>
> Create a backup of your configuration directory. And if NB is not
> recoverable then restore the backup
>
> Den 20 dec. 2016 09:42 skrev "Peter Cheung" <[email protected]
> <mailto:[email protected]>>:
>
> Hi
>
> I am developing a plugin to sign this file
> (/Users/peter/Library/Application
> Support/NetBeans/8.2/config/Toolbars/Standard.xml) to google drive.
> So in case netbeans completely crash (I tried many times) and after
> reinstall it, i can quickly restore my toolbar buttons. So is there
> any api to get the path of Standard.xml?
>
> thanks
>
> from Peter.
>