PageRenderTime 60ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/users-guide/plugin-tips-plugin-data.html

#
HTML | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | e504618b850acbc6e0f244749bf0bb63 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Storing plugin data</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit 4.3 User's Guide"><link rel="up" href="plugin-tips.html" title="Chapter 19. Plugin Tips and Techniques"><link rel="prev" href="plugin-tips-non-java-libraries.html" title="Bundling Additional Non-Java Libraries"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Storing plugin data</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="plugin-tips-non-java-libraries.html">Prev</a> </td><th width="60%" align="center">Chapter 19. Plugin Tips and Techniques</th><td width="20%" align="right"> </td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="plugin-tips-plugin-data"></a>Storing plugin data</h2></div></div></div><p>If your plugin needs to create files and store data in the
  2. filesystem, you should use the <code class="methodname">getPluginHome()</code>
  3. API of the <code class="classname">EditPlugin</code> class. To signal that you
  4. use the plugin home API you have to set the
  5. <code class="filename">plugin.<em class="replaceable"><code>class
  6. name</code></em>.usePluginHome</code> property to
  7. <code class="constant">true</code>. Even if your plugin doesn't create any files,
  8. you should set the property to <code class="constant">true</code>, so that e. g.
  9. the plugin manager knows that there is actually no data in favor of not
  10. knowing if there is any data and thus displaying that it doesn't know
  11. the data size. See the documentation for the <a class="ulink" href="../api/org/gjt/sp/jedit/EditPlugin.html" target="_top"><code class="classname">EditPlugin</code></a>
  12. class for details.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plugin-tips-non-java-libraries.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="plugin-tips.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">Bundling Additional Non-Java Libraries </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>