PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
HTML | 627 lines | 544 code | 69 blank | 14 comment | 0 complexity | c8458bc0cc6a99a7ada0083a9be9a48d 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. Mode (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.Mode 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/Mode.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/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/OperatingSystem.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/Mode.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="Mode.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 Mode</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.Mode</B>
  71. </PRE>
  72. <HR>
  73. <DL>
  74. <DT><PRE>public class <B>Mode</B><DT>extends java.lang.Object</DL>
  75. </PRE>
  76. <P>
  77. An edit mode defines specific settings for editing some type of file.
  78. One instance of this class is created for each supported edit mode.
  79. <P>
  80. <P>
  81. <HR>
  82. <P>
  83. <!-- =========== FIELD SUMMARY =========== -->
  84. <A NAME="field_summary"><!-- --></A>
  85. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  86. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  87. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  88. <B>Field Summary</B></FONT></TH>
  89. </TR>
  90. <TR BGCOLOR="white" CLASS="TableRowColor">
  91. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  92. <CODE>protected &nbsp;<A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A></CODE></FONT></TD>
  93. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#marker">marker</A></B></CODE>
  94. <BR>
  95. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  96. </TR>
  97. <TR BGCOLOR="white" CLASS="TableRowColor">
  98. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  99. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  100. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#name">name</A></B></CODE>
  101. <BR>
  102. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  106. <CODE>protected &nbsp;java.util.Map&lt;java.lang.String,java.lang.Object&gt;</CODE></FONT></TD>
  107. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#props">props</A></B></CODE>
  108. <BR>
  109. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  110. </TR>
  111. </TABLE>
  112. &nbsp;
  113. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  114. <A NAME="constructor_summary"><!-- --></A>
  115. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  116. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  117. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  118. <B>Constructor Summary</B></FONT></TH>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#Mode(java.lang.String)">Mode</A></B>(java.lang.String&nbsp;name)</CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new edit mode.</TD>
  124. </TR>
  125. </TABLE>
  126. &nbsp;
  127. <!-- ========== METHOD SUMMARY =========== -->
  128. <A NAME="method_summary"><!-- --></A>
  129. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  130. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  131. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  132. <B>Method Summary</B></FONT></TH>
  133. </TR>
  134. <TR BGCOLOR="white" CLASS="TableRowColor">
  135. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  136. <CODE>&nbsp;boolean</CODE></FONT></TD>
  137. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#accept(java.lang.String, java.lang.String)">accept</A></B>(java.lang.String&nbsp;fileName,
  138. java.lang.String&nbsp;firstLine)</CODE>
  139. <BR>
  140. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the edit mode is suitable for editing the specified
  141. file.</TD>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  145. <CODE>&nbsp;boolean</CODE></FONT></TD>
  146. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getBooleanProperty(java.lang.String)">getBooleanProperty</A></B>(java.lang.String&nbsp;key)</CODE>
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of a boolean property.</TD>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  152. <CODE>&nbsp;boolean</CODE></FONT></TD>
  153. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getIgnoreWhitespace()">getIgnoreWhitespace</A></B>()</CODE>
  154. <BR>
  155. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  156. </TR>
  157. <TR BGCOLOR="white" CLASS="TableRowColor">
  158. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  159. <CODE>&nbsp;java.util.List&lt;<A HREF="../../../../org/gjt/sp/jedit/indent/IndentRule.html" title="interface in org.gjt.sp.jedit.indent">IndentRule</A>&gt;</CODE></FONT></TD>
  160. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getIndentRules()">getIndentRules</A></B>()</CODE>
  161. <BR>
  162. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  163. </TR>
  164. <TR BGCOLOR="white" CLASS="TableRowColor">
  165. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  166. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  167. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getName()">getName</A></B>()</CODE>
  168. <BR>
  169. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the internal name of this edit mode.</TD>
  170. </TR>
  171. <TR BGCOLOR="white" CLASS="TableRowColor">
  172. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  173. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  174. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String&nbsp;key)</CODE>
  175. <BR>
  176. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a mode property.</TD>
  177. </TR>
  178. <TR BGCOLOR="white" CLASS="TableRowColor">
  179. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  180. <CODE>&nbsp;<A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A></CODE></FONT></TD>
  181. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getTokenMarker()">getTokenMarker</A></B>()</CODE>
  182. <BR>
  183. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the token marker for this mode.</TD>
  184. </TR>
  185. <TR BGCOLOR="white" CLASS="TableRowColor">
  186. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  187. <CODE>&nbsp;void</CODE></FONT></TD>
  188. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#init()">init</A></B>()</CODE>
  189. <BR>
  190. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes the edit mode.</TD>
  191. </TR>
  192. <TR BGCOLOR="white" CLASS="TableRowColor">
  193. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  194. <CODE>&nbsp;boolean</CODE></FONT></TD>
  195. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#isElectricKey(char)">isElectricKey</A></B>(char&nbsp;ch)</CODE>
  196. <BR>
  197. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  198. </TR>
  199. <TR BGCOLOR="white" CLASS="TableRowColor">
  200. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  201. <CODE>&nbsp;void</CODE></FONT></TD>
  202. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#loadIfNecessary()">loadIfNecessary</A></B>()</CODE>
  203. <BR>
  204. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads the mode from disk if it hasn't been loaded already.</TD>
  205. </TR>
  206. <TR BGCOLOR="white" CLASS="TableRowColor">
  207. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  208. <CODE>&nbsp;void</CODE></FONT></TD>
  209. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#setProperties(java.util.Map)">setProperties</A></B>(java.util.Map&nbsp;props)</CODE>
  210. <BR>
  211. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should only be called by <code>XModeHandler</code>.</TD>
  212. </TR>
  213. <TR BGCOLOR="white" CLASS="TableRowColor">
  214. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  215. <CODE>&nbsp;void</CODE></FONT></TD>
  216. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String&nbsp;key,
  217. java.lang.Object&nbsp;value)</CODE>
  218. <BR>
  219. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a mode property.</TD>
  220. </TR>
  221. <TR BGCOLOR="white" CLASS="TableRowColor">
  222. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  223. <CODE>&nbsp;void</CODE></FONT></TD>
  224. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#setTokenMarker(org.gjt.sp.jedit.syntax.TokenMarker)">setTokenMarker</A></B>(<A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A>&nbsp;marker)</CODE>
  225. <BR>
  226. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the token marker for this mode.</TD>
  227. </TR>
  228. <TR BGCOLOR="white" CLASS="TableRowColor">
  229. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  230. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  231. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#toString()">toString</A></B>()</CODE>
  232. <BR>
  233. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this edit mode.</TD>
  234. </TR>
  235. <TR BGCOLOR="white" CLASS="TableRowColor">
  236. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  237. <CODE>&nbsp;void</CODE></FONT></TD>
  238. <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/Mode.html#unsetProperty(java.lang.String)">unsetProperty</A></B>(java.lang.String&nbsp;key)</CODE>
  239. <BR>
  240. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unsets a mode property.</TD>
  241. </TR>
  242. </TABLE>
  243. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  244. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  245. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  246. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  247. </TR>
  248. <TR BGCOLOR="white" CLASS="TableRowColor">
  249. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  250. </TR>
  251. </TABLE>
  252. &nbsp;
  253. <P>
  254. <!-- ============ FIELD DETAIL =========== -->
  255. <A NAME="field_detail"><!-- --></A>
  256. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  257. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  258. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  259. <B>Field Detail</B></FONT></TH>
  260. </TR>
  261. </TABLE>
  262. <A NAME="name"><!-- --></A><H3>
  263. name</H3>
  264. <PRE>
  265. protected java.lang.String <B>name</B></PRE>
  266. <DL>
  267. <DL>
  268. </DL>
  269. </DL>
  270. <HR>
  271. <A NAME="props"><!-- --></A><H3>
  272. props</H3>
  273. <PRE>
  274. protected java.util.Map&lt;java.lang.String,java.lang.Object&gt; <B>props</B></PRE>
  275. <DL>
  276. <DL>
  277. </DL>
  278. </DL>
  279. <HR>
  280. <A NAME="marker"><!-- --></A><H3>
  281. marker</H3>
  282. <PRE>
  283. protected <A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A> <B>marker</B></PRE>
  284. <DL>
  285. <DL>
  286. </DL>
  287. </DL>
  288. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  289. <A NAME="constructor_detail"><!-- --></A>
  290. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  291. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  292. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  293. <B>Constructor Detail</B></FONT></TH>
  294. </TR>
  295. </TABLE>
  296. <A NAME="Mode(java.lang.String)"><!-- --></A><H3>
  297. Mode</H3>
  298. <PRE>
  299. public <B>Mode</B>(java.lang.String&nbsp;name)</PRE>
  300. <DL>
  301. <DD>Creates a new edit mode.
  302. <P>
  303. <DL>
  304. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name used in mode listings and to query mode
  305. properties<DT><B>See Also:</B><DD><A HREF="../../../../org/gjt/sp/jedit/Mode.html#getProperty(java.lang.String)"><CODE>getProperty(String)</CODE></A></DL>
  306. </DL>
  307. <!-- ============ METHOD DETAIL ========== -->
  308. <A NAME="method_detail"><!-- --></A>
  309. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  310. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  311. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  312. <B>Method Detail</B></FONT></TH>
  313. </TR>
  314. </TABLE>
  315. <A NAME="init()"><!-- --></A><H3>
  316. init</H3>
  317. <PRE>
  318. public void <B>init</B>()</PRE>
  319. <DL>
  320. <DD>Initializes the edit mode. Should be called after all properties
  321. are loaded and set.
  322. <P>
  323. <DD><DL>
  324. </DL>
  325. </DD>
  326. </DL>
  327. <HR>
  328. <A NAME="getTokenMarker()"><!-- --></A><H3>
  329. getTokenMarker</H3>
  330. <PRE>
  331. public <A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A> <B>getTokenMarker</B>()</PRE>
  332. <DL>
  333. <DD>Returns the token marker for this mode.
  334. <P>
  335. <DD><DL>
  336. </DL>
  337. </DD>
  338. </DL>
  339. <HR>
  340. <A NAME="setTokenMarker(org.gjt.sp.jedit.syntax.TokenMarker)"><!-- --></A><H3>
  341. setTokenMarker</H3>
  342. <PRE>
  343. public void <B>setTokenMarker</B>(<A HREF="../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A>&nbsp;marker)</PRE>
  344. <DL>
  345. <DD>Sets the token marker for this mode.
  346. <P>
  347. <DD><DL>
  348. <DT><B>Parameters:</B><DD><CODE>marker</CODE> - The new token marker</DL>
  349. </DD>
  350. </DL>
  351. <HR>
  352. <A NAME="loadIfNecessary()"><!-- --></A><H3>
  353. loadIfNecessary</H3>
  354. <PRE>
  355. public void <B>loadIfNecessary</B>()</PRE>
  356. <DL>
  357. <DD>Loads the mode from disk if it hasn't been loaded already.
  358. <P>
  359. <DD><DL>
  360. <DT><B>Since:</B></DT>
  361. <DD>jEdit 2.5pre3</DD>
  362. </DL>
  363. </DD>
  364. </DL>
  365. <HR>
  366. <A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
  367. getProperty</H3>
  368. <PRE>
  369. public java.lang.Object <B>getProperty</B>(java.lang.String&nbsp;key)</PRE>
  370. <DL>
  371. <DD>Returns a mode property.
  372. <P>
  373. <DD><DL>
  374. <DT><B>Parameters:</B><DD><CODE>key</CODE> - The property name<DT><B>Since:</B></DT>
  375. <DD>jEdit 2.2pre1</DD>
  376. </DL>
  377. </DD>
  378. </DL>
  379. <HR>
  380. <A NAME="getBooleanProperty(java.lang.String)"><!-- --></A><H3>
  381. getBooleanProperty</H3>
  382. <PRE>
  383. public boolean <B>getBooleanProperty</B>(java.lang.String&nbsp;key)</PRE>
  384. <DL>
  385. <DD>Returns the value of a boolean property.
  386. <P>
  387. <DD><DL>
  388. <DT><B>Parameters:</B><DD><CODE>key</CODE> - The property name<DT><B>Since:</B></DT>
  389. <DD>jEdit 2.5pre3</DD>
  390. </DL>
  391. </DD>
  392. </DL>
  393. <HR>
  394. <A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>
  395. setProperty</H3>
  396. <PRE>
  397. public void <B>setProperty</B>(java.lang.String&nbsp;key,
  398. java.lang.Object&nbsp;value)</PRE>
  399. <DL>
  400. <DD>Sets a mode property.
  401. <P>
  402. <DD><DL>
  403. <DT><B>Parameters:</B><DD><CODE>key</CODE> - The property name<DD><CODE>value</CODE> - The property value</DL>
  404. </DD>
  405. </DL>
  406. <HR>
  407. <A NAME="unsetProperty(java.lang.String)"><!-- --></A><H3>
  408. unsetProperty</H3>
  409. <PRE>
  410. public void <B>unsetProperty</B>(java.lang.String&nbsp;key)</PRE>
  411. <DL>
  412. <DD>Unsets a mode property.
  413. <P>
  414. <DD><DL>
  415. <DT><B>Parameters:</B><DD><CODE>key</CODE> - The property name<DT><B>Since:</B></DT>
  416. <DD>jEdit 3.2pre3</DD>
  417. </DL>
  418. </DD>
  419. </DL>
  420. <HR>
  421. <A NAME="setProperties(java.util.Map)"><!-- --></A><H3>
  422. setProperties</H3>
  423. <PRE>
  424. public void <B>setProperties</B>(java.util.Map&nbsp;props)</PRE>
  425. <DL>
  426. <DD>Should only be called by <code>XModeHandler</code>.
  427. <P>
  428. <DD><DL>
  429. <DT><B>Since:</B></DT>
  430. <DD>jEdit 4.0pre3</DD>
  431. </DL>
  432. </DD>
  433. </DL>
  434. <HR>
  435. <A NAME="accept(java.lang.String, java.lang.String)"><!-- --></A><H3>
  436. accept</H3>
  437. <PRE>
  438. public boolean <B>accept</B>(java.lang.String&nbsp;fileName,
  439. java.lang.String&nbsp;firstLine)</PRE>
  440. <DL>
  441. <DD>Returns if the edit mode is suitable for editing the specified
  442. file. The buffer name and first line is checked against the
  443. file name and first line globs, respectively.
  444. <P>
  445. <DD><DL>
  446. <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - The buffer's name<DD><CODE>firstLine</CODE> - The first line of the buffer<DT><B>Since:</B></DT>
  447. <DD>jEdit 3.2pre3</DD>
  448. </DL>
  449. </DD>
  450. </DL>
  451. <HR>
  452. <A NAME="getName()"><!-- --></A><H3>
  453. getName</H3>
  454. <PRE>
  455. public java.lang.String <B>getName</B>()</PRE>
  456. <DL>
  457. <DD>Returns the internal name of this edit mode.
  458. <P>
  459. <DD><DL>
  460. </DL>
  461. </DD>
  462. </DL>
  463. <HR>
  464. <A NAME="toString()"><!-- --></A><H3>
  465. toString</H3>
  466. <PRE>
  467. public java.lang.String <B>toString</B>()</PRE>
  468. <DL>
  469. <DD>Returns a string representation of this edit mode.
  470. <P>
  471. <DD><DL>
  472. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  473. </DD>
  474. <DD><DL>
  475. </DL>
  476. </DD>
  477. </DL>
  478. <HR>
  479. <A NAME="getIgnoreWhitespace()"><!-- --></A><H3>
  480. getIgnoreWhitespace</H3>
  481. <PRE>
  482. public boolean <B>getIgnoreWhitespace</B>()</PRE>
  483. <DL>
  484. <DD><DL>
  485. </DL>
  486. </DD>
  487. </DL>
  488. <HR>
  489. <A NAME="getIndentRules()"><!-- --></A><H3>
  490. getIndentRules</H3>
  491. <PRE>
  492. public java.util.List&lt;<A HREF="../../../../org/gjt/sp/jedit/indent/IndentRule.html" title="interface in org.gjt.sp.jedit.indent">IndentRule</A>&gt; <B>getIndentRules</B>()</PRE>
  493. <DL>
  494. <DD><DL>
  495. </DL>
  496. </DD>
  497. </DL>
  498. <HR>
  499. <A NAME="isElectricKey(char)"><!-- --></A><H3>
  500. isElectricKey</H3>
  501. <PRE>
  502. public boolean <B>isElectricKey</B>(char&nbsp;ch)</PRE>
  503. <DL>
  504. <DD><DL>
  505. </DL>
  506. </DD>
  507. </DL>
  508. <!-- ========= END OF CLASS DATA ========= -->
  509. <HR>
  510. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  511. <A NAME="navbar_bottom"><!-- --></A>
  512. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  513. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  514. <TR>
  515. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  516. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  517. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  518. <TR ALIGN="center" VALIGN="top">
  519. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  520. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  521. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  522. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Mode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  523. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  524. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  525. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  526. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  527. </TR>
  528. </TABLE>
  529. </TD>
  530. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  531. </EM>
  532. </TD>
  533. </TR>
  534. <TR>
  535. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  536. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>&nbsp;
  537. &nbsp;<A HREF="../../../../org/gjt/sp/jedit/OperatingSystem.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
  538. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  539. <A HREF="../../../../index.html?org/gjt/sp/jedit/Mode.html" target="_top"><B>FRAMES</B></A> &nbsp;
  540. &nbsp;<A HREF="Mode.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  541. &nbsp;
  542. <NOSCRIPT>
  543. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  544. </NOSCRIPT>
  545. </FONT></TD>
  546. </TR>
  547. <TR>
  548. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  549. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  550. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  551. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  552. </TR>
  553. </TABLE>
  554. <A NAME="skip-navbar_bottom"></A>
  555. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  556. <HR>
  557. </BODY>
  558. </HTML>