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