PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/PerspectiveManager.html

#
HTML | 359 lines | 304 code | 43 blank | 12 comment | 0 complexity | 8b8e1e57d6b20072bb9dfbf8690facbc 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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:46 GMT-08:00 2008 -->
  6. <TITLE>
  7. PerspectiveManager (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.PerspectiveManager class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PerspectiveManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/OptionPane.html" title="interface in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/PluginJAR.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../index.html?org/gjt/sp/jedit/PerspectiveManager.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="PerspectiveManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit</FONT>
  66. <BR>
  67. Class PerspectiveManager</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.PerspectiveManager</B>
  71. </PRE>
  72. <HR>
  73. <DL>
  74. <DT><PRE>public class <B>PerspectiveManager</B><DT>extends java.lang.Object</DL>
  75. </PRE>
  76. <P>
  77. Manages persistence of open buffers and views across jEdit sessions.
  78. <P>
  79. <P>
  80. <DL>
  81. <DT><B>Since:</B></DT>
  82. <DD>jEdit 4.2pre1</DD>
  83. </DL>
  84. <HR>
  85. <P>
  86. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  87. <A NAME="constructor_summary"><!-- --></A>
  88. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  89. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  90. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  91. <B>Constructor Summary</B></FONT></TH>
  92. </TR>
  93. <TR BGCOLOR="white" CLASS="TableRowColor">
  94. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#PerspectiveManager()">PerspectiveManager</A></B>()</CODE>
  95. <BR>
  96. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  97. </TR>
  98. </TABLE>
  99. &nbsp;
  100. <!-- ========== METHOD SUMMARY =========== -->
  101. <A NAME="method_summary"><!-- --></A>
  102. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  103. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  104. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  105. <B>Method Summary</B></FONT></TH>
  106. </TR>
  107. <TR BGCOLOR="white" CLASS="TableRowColor">
  108. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  109. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  110. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#isPerspectiveDirty()">isPerspectiveDirty</A></B>()</CODE>
  111. <BR>
  112. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We only autosave the perspective if it has changed, to avoid spinning
  113. up the disk on laptops.</TD>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  117. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  118. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#isPerspectiveEnabled()">isPerspectiveEnabled</A></B>()</CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We disable saving of the perspective while the 'close all' dialog is
  121. showing.</TD>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>static&nbsp;<A HREF="../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A></CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#loadPerspective(boolean)">loadPerspective</A></B>(boolean&nbsp;restoreFiles)</CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>static&nbsp;void</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#savePerspective(boolean)">savePerspective</A></B>(boolean&nbsp;autosave)</CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  139. <CODE>static&nbsp;void</CODE></FONT></TD>
  140. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#setPerspectiveDirty(boolean)">setPerspectiveDirty</A></B>(boolean&nbsp;dirty)</CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We only autosave the perspective if it has changed, to avoid spinning
  143. up the disk on laptops.</TD>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  147. <CODE>static&nbsp;void</CODE></FONT></TD>
  148. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/PerspectiveManager.html#setPerspectiveEnabled(boolean)">setPerspectiveEnabled</A></B>(boolean&nbsp;enabled)</CODE>
  149. <BR>
  150. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We disable saving of the perspective while the 'close all' dialog is
  151. showing.</TD>
  152. </TR>
  153. </TABLE>
  154. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  155. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  156. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  157. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  161. </TR>
  162. </TABLE>
  163. &nbsp;
  164. <P>
  165. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  166. <A NAME="constructor_detail"><!-- --></A>
  167. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  168. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  169. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  170. <B>Constructor Detail</B></FONT></TH>
  171. </TR>
  172. </TABLE>
  173. <A NAME="PerspectiveManager()"><!-- --></A><H3>
  174. PerspectiveManager</H3>
  175. <PRE>
  176. public <B>PerspectiveManager</B>()</PRE>
  177. <DL>
  178. </DL>
  179. <!-- ============ METHOD DETAIL ========== -->
  180. <A NAME="method_detail"><!-- --></A>
  181. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  182. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  183. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  184. <B>Method Detail</B></FONT></TH>
  185. </TR>
  186. </TABLE>
  187. <A NAME="isPerspectiveDirty()"><!-- --></A><H3>
  188. isPerspectiveDirty</H3>
  189. <PRE>
  190. public static boolean <B>isPerspectiveDirty</B>()</PRE>
  191. <DL>
  192. <DD>We only autosave the perspective if it has changed, to avoid spinning
  193. up the disk on laptops.
  194. <P>
  195. <DD><DL>
  196. <DT><B>Since:</B></DT>
  197. <DD>jEdit 4.2pre13</DD>
  198. </DL>
  199. </DD>
  200. </DL>
  201. <HR>
  202. <A NAME="setPerspectiveDirty(boolean)"><!-- --></A><H3>
  203. setPerspectiveDirty</H3>
  204. <PRE>
  205. public static void <B>setPerspectiveDirty</B>(boolean&nbsp;dirty)</PRE>
  206. <DL>
  207. <DD>We only autosave the perspective if it has changed, to avoid spinning
  208. up the disk on laptops.
  209. <P>
  210. <DD><DL>
  211. <DT><B>Since:</B></DT>
  212. <DD>jEdit 4.2pre13</DD>
  213. </DL>
  214. </DD>
  215. </DL>
  216. <HR>
  217. <A NAME="isPerspectiveEnabled()"><!-- --></A><H3>
  218. isPerspectiveEnabled</H3>
  219. <PRE>
  220. public static boolean <B>isPerspectiveEnabled</B>()</PRE>
  221. <DL>
  222. <DD>We disable saving of the perspective while the 'close all' dialog is
  223. showing.
  224. <P>
  225. <DD><DL>
  226. <DT><B>Since:</B></DT>
  227. <DD>jEdit 4.3pre2</DD>
  228. </DL>
  229. </DD>
  230. </DL>
  231. <HR>
  232. <A NAME="setPerspectiveEnabled(boolean)"><!-- --></A><H3>
  233. setPerspectiveEnabled</H3>
  234. <PRE>
  235. public static void <B>setPerspectiveEnabled</B>(boolean&nbsp;enabled)</PRE>
  236. <DL>
  237. <DD>We disable saving of the perspective while the 'close all' dialog is
  238. showing.
  239. <P>
  240. <DD><DL>
  241. <DT><B>Since:</B></DT>
  242. <DD>jEdit 4.3pre2</DD>
  243. </DL>
  244. </DD>
  245. </DL>
  246. <HR>
  247. <A NAME="loadPerspective(boolean)"><!-- --></A><H3>
  248. loadPerspective</H3>
  249. <PRE>
  250. public static <A HREF="../../../../org/gjt/sp/jedit/View.html" title="class in org.gjt.sp.jedit">View</A> <B>loadPerspective</B>(boolean&nbsp;restoreFiles)</PRE>
  251. <DL>
  252. <DD><DL>
  253. </DL>
  254. </DD>
  255. </DL>
  256. <HR>
  257. <A NAME="savePerspective(boolean)"><!-- --></A><H3>
  258. savePerspective</H3>
  259. <PRE>
  260. public static void <B>savePerspective</B>(boolean&nbsp;autosave)</PRE>
  261. <DL>
  262. <DD><DL>
  263. </DL>
  264. </DD>
  265. </DL>
  266. <!-- ========= END OF CLASS DATA ========= -->
  267. <HR>
  268. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  269. <A NAME="navbar_bottom"><!-- --></A>
  270. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  271. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  272. <TR>
  273. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  274. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  275. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  276. <TR ALIGN="center" VALIGN="top">
  277. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  278. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  279. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  280. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PerspectiveManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  281. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  282. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  283. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  284. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  285. </TR>
  286. </TABLE>
  287. </TD>
  288. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  289. </EM>
  290. </TD>
  291. </TR>
  292. <TR>
  293. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  294. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/OptionPane.html" title="interface in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  295. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/PluginJAR.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
  296. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  297. <A HREF="../../../../index.html?org/gjt/sp/jedit/PerspectiveManager.html" target="_top"><B>FRAMES</B></A> &nbsp;
  298. &nbsp;<A HREF="PerspectiveManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  299. &nbsp;
  300. <NOSCRIPT>
  301. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  302. </NOSCRIPT>
  303. </FONT></TD>
  304. </TR>
  305. <TR>
  306. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  307. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  308. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  309. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  310. </TR>
  311. </TABLE>
  312. <A NAME="skip-navbar_bottom"></A>
  313. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  314. <HR>
  315. </BODY>
  316. </HTML>